/* Cloud Security Scanner - Custom Styles */

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --success-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --danger-gradient: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
    --warning-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

body {
    background-color: #f8f9fa;
    min-height: 100vh;
}

/* Navbar styling */
.navbar {
    background: var(--primary-gradient) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.3rem;
}

/* Card styling */
.card {
    border: none;
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
}

.card-header {
    border-radius: 12px 12px 0 0 !important;
    font-weight: 500;
}

/* Provider buttons */
.btn-check:checked + .btn-outline-warning {
    background: linear-gradient(135deg, #ff9a00 0%, #ff6d00 100%);
    border-color: #ff9a00;
    color: white;
}

.btn-check:checked + .btn-outline-info {
    background: linear-gradient(135deg, #0078d4 0%, #00bcf2 100%);
    border-color: #0078d4;
    color: white;
}

.btn-check:checked + .btn-outline-danger {
    background: linear-gradient(135deg, #ea4335 0%, #fbbc05 100%);
    border-color: #ea4335;
    color: white;
}

/* Primary button */
.btn-primary {
    background: var(--primary-gradient);
    border: none;
    font-weight: 500;
    padding: 12px 24px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-primary:disabled {
    background: #ccc;
    transform: none;
    box-shadow: none;
}

/* Progress bar */
.progress {
    border-radius: 20px;
    background-color: #e9ecef;
    overflow: hidden;
}

.progress-bar {
    background: var(--primary-gradient);
    font-weight: 500;
    transition: width 0.5s ease;
}

/* Stats cards */
#summary-stats .card {
    border-radius: 8px;
    transition: transform 0.2s;
}

#summary-stats .card:hover {
    transform: scale(1.05);
}

#summary-stats .card h3 {
    font-weight: 700;
}

/* Report list items */
.report-item {
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 8px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    cursor: pointer;
    transition: all 0.2s;
}

.report-item:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.report-item .report-name {
    font-weight: 500;
    color: #333;
}

.report-item .report-meta {
    font-size: 0.85rem;
    color: #666;
}

/* Form styling */
.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

/* Welcome card */
#welcome-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

#welcome-card i.bi-shield-check {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Spinner */
.spinner-border {
    width: 2rem;
    height: 2rem;
}

/* Alert styling */
.alert {
    border-radius: 8px;
    border: none;
}

/* Footer */
.footer {
    border-top: 1px solid #e9ecef;
}

/* Download buttons */
#download-buttons .btn {
    font-size: 0.9rem;
}

/* Provider config sections */
.provider-config {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* Status card states */
.status-running {
    animation: borderPulse 1.5s infinite;
}

@keyframes borderPulse {
    0% { box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(13, 110, 253, 0); }
    100% { box-shadow: 0 0 0 0 rgba(13, 110, 253, 0); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .btn-group {
        flex-direction: column;
    }

    .btn-group .btn {
        border-radius: 0.375rem !important;
        margin-bottom: 5px;
    }

    #summary-stats .col {
        margin-bottom: 10px;
    }

    #download-buttons {
        flex-direction: column;
    }

    #download-buttons .btn {
        margin-bottom: 5px;
    }
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Success checkmark animation */
.checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: #4bb71b;
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px #4bb71b;
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

@keyframes fill {
    100% { box-shadow: inset 0px 0px 0px 30px #4bb71b; }
}

@keyframes scale {
    0%, 100% { transform: none; }
    50% { transform: scale3d(1.1, 1.1, 1); }
}
