/* Professional RFP Assistant Styles */

:root {
    --primary-blue: #2B5CE6;
    --dark-blue: #1b1b34;
    --light-blue: #f0f4ff;
    --success-green: #28a745;
    --warning-orange: #fd7e14;
    --error-red: #dc3545;
    --text-dark: #2d3748;
    --text-muted: #718096;
    --border-light: #e2e8f0;
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Global Styles */
* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background: #f8fafc;
    color: var(--text-dark);
    line-height: 1.6;
}


/* Navigation */
.modern-nav {
    background: white !important;
    box-shadow: var(--shadow-soft);
    border-bottom: 1px solid var(--border-light);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-blue) !important;
}

.modern-nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.modern-nav-link:hover,
.modern-nav-link.active {
    background: var(--light-blue);
    color: var(--primary-blue) !important;
}

/* Alerts */
.modern-alert {
    border: none;
    border-radius: 4px;
    border-left: 4px solid;
    font-size: 0.875rem;
}

.alert-info {
    border-left-color: var(--primary-blue);
}

.alert-success {
    border-left-color: var(--success-green);
}

.alert-warning {
    border-left-color: var(--warning-orange);
}

.alert-danger {
    border-left-color: var(--error-red);
}

/* Cards */
.modern-card {
    background: white;
    border-radius: 6px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-light);
    overflow: hidden;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.modern-card:hover {
    box-shadow: var(--shadow-medium);
}

.card-header-modern {
    background: var(--primary-blue);
    color: white;
    padding: 0.75rem 1rem;
    border: none;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.card-header-info {
    background: #f1f3f4;
    color: var(--text-dark);
}

/* Buttons */
.btn-primary-modern {
    background: var(--primary-blue);
    border: none;
    border-radius: 4px;
    padding: 0.625rem 1.25rem;
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: var(--shadow-soft);
    transition: all 0.2s ease;
    color: white;
}

.btn-primary-modern:hover {
    background: #3367d6;
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
    color: white;
}

.btn-outline-primary-modern {
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
    background: transparent;
    border-radius: 4px;
    padding: 0.625rem 1.25rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.btn-outline-primary-modern:hover {
    background: var(--primary-blue);
    color: white;
}

/* Stats Cards */
.stats-card {
    background: white;
    border-radius: 6px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    height: 100%;
}

.stats-card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.stats-icon {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
}

.stats-label {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Tables */
.table-modern {
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.table-modern th {
    background: #f1f3f4;
    border: none;
    font-weight: 600;
    color: var(--text-dark);
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-modern td {
    border: none;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-light);
}

.table-modern tbody tr:hover {
    background: #f8fafc;
}

/* Status Badges */
.status-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-completed {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-progress {
    background: #cce7ff;
    color: #0056b3;
    border: 1px solid #9fdbff;
}

.status-queued {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Form Styling */
.form-control,
.form-select {
    border: 1px solid var(--border-light);
    border-radius: 4px;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
}

.section-header:first-child {
    margin-top: 0;
}

.section-title {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin: 0;
    margin-right: 1rem;
    white-space: nowrap;
}

.section-divider {
    flex: 1;
    height: 1px;
    background: var(--border-light);
}

.section-hint {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-left: 1rem;
    white-space: nowrap;
}

/* Quick Actions */
.quick-action {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.2s ease;
    text-decoration: none;
    color: var(--text-dark);
    display: block;
    position: relative;
}

.quick-action::before {
    content: 'ACTION';
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    font-size: 0.625rem;
    font-weight: 700;
    color: var(--text-muted);
    opacity: 0.6;
    letter-spacing: 1px;
}

.quick-action:hover {
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-soft);
    text-decoration: none;
    color: var(--primary-blue);
}

.quick-action i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

/* Info Boxes */
.info-box {
    background: #f0f9ff;
    border: 1px solid #bfdbfe;
    border-left: 4px solid var(--primary-blue);
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.info-box h6 {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.info-box-success {
    background: #f0fdf4;
    border-left-color: var(--success-green);
}

.info-box-success h6 {
    color: var(--success-green);
}

/* Wizard Styles */
.wizard-progress {
    padding: 1rem 0;
}

.wizard-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-bottom: 1rem;
}

.wizard-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #e5e7eb;
    z-index: 1;
    transform: translateY(-50%);
}

.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    background: white;
    padding: 0 1rem;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.step-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
}

.wizard-step.active .step-circle {
    background: var(--primary-blue);
    color: white;
}

.wizard-step.active .step-label {
    color: var(--primary-blue);
}

.wizard-step.completed .step-circle {
    background: var(--success-green);
    color: white;
}

.wizard-step.completed .step-circle::before {
    content: '✓';
    font-size: 0.875rem;
}

.wizard-step.completed .step-label {
    color: var(--success-green);
}

.wizard-content {
    display: none;
}

.wizard-content.active {
    display: block;
}

/* Upload Zone Styles */
.upload-zone {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    background: #f9fafb;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-zone:hover {
    border-color: var(--primary-blue);
    background: #f0f4ff;
}

.upload-zone.drag-over {
    border-color: var(--primary-blue);
    background: #f0f4ff;
    transform: scale(1.02);
}

.upload-zone.file-selected {
    border-color: var(--success-green);
    background: #f0fff4;
}

.upload-content {
    transition: all 0.3s ease;
}

/* Status progress bars */
.status-bar {
    display: flex;
    height: 16px;
    border-radius: 999px;
    background: #e9ecef;
    overflow: hidden;
}

.status-bar-sm {
    height: 10px;
    border-radius: 6px;
}

.status-bar-xs {
    height: 8px;
    border-radius: 4px;
}

.status-bar-segment {
    height: 100%;
    transition: width 0.3s ease;
}

.status-empty {
    background-color: #ced4da;
}

.status-ai {
    background-color: var(--primary-blue);
}

.status-approved {
    background-color: var(--success-green);
}

/* Responsive Design */
@media (max-width: 768px) {
    .stats-number {
        font-size: 2rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .section-divider {
        width: 100%;
    }
    
    .section-hint {
        margin-left: 0;
    }
    
    /* Responsive wizard steps */
    .wizard-steps {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .wizard-steps::before {
        display: none;
    }
    
    .step-label {
        font-size: 0.75rem;
    }
    
    .step-circle {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }
}
