/* ==========================
   MINIMAL CORPORATE TECH THEME
   Based on demo-minimal-corporate.html
   ========================== */

/* CSS Variables */
:root {
    /* Primary Colors - Minimal Corporate Tech */
    --primary-blue: #0071e3;
    --primary-blue-hover: #0077ed;
    --primary-blue-light: rgba(0, 113, 227, 0.1);
    
    /* Text Colors */
    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
    --text-white: #ffffff;
    
    /* Background Colors */
    --bg-white: #ffffff;
    --bg-light: #f5f5f7;
    --bg-card: #fbfbfd;
    
    /* Border Colors */
    --border-light: rgba(0, 0, 0, 0.05);
    --border-medium: #d2d2d7;
    
    /* Shadows */
    --shadow-sm: 0 2px 20px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 16px rgba(0, 113, 227, 0.3);
    --shadow-lg: 0 30px 60px rgba(0, 0, 0, 0.08);
    
    /* Animation */
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    line-height: 1.6;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg-white);
    min-height: 100vh;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container and layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    min-height: 100vh;
}

/* Navigation - Minimal Corporate Style */
.top-nav {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    padding: 1.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.top-nav.scrolled {
    box-shadow: var(--shadow-sm);
}

.nav-brand a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-brand a:hover {
    color: var(--primary-blue-hover);
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 400;
    padding: 0.5rem 0;
    transition: all 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-blue);
}

.nav-link.active {
    color: var(--primary-blue);
    font-weight: 500;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-blue);
}

/* Page Header */
.page-header {
    text-align: center;
    padding: 6rem 4rem 3rem;
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
}

.page-header h1 {
    font-size: 4rem;
    font-weight: 200;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.page-header h1 .highlight {
    font-weight: 800;
    color: var(--primary-blue);
}

.page-header p {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-secondary);
}

/* Main Card */
.main-card {
    background: var(--bg-white);
    border-radius: 24px;
    padding: 3rem;
    margin: 2rem 4rem;
    box-shadow: var(--shadow-lg);
}

/* Progress Stepper - Minimal Style */
.progress-stepper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 16px;
}

.step {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-light);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: var(--primary-blue);
    color: var(--text-white);
    box-shadow: var(--shadow-md);
}

.step.completed .step-number {
    background: var(--primary-blue-light);
    color: var(--primary-blue);
}

.step-info {
    flex: 1;
}

.step-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.step-description {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.step-connector {
    flex: 0 0 40px;
    height: 2px;
    background: var(--border-medium);
    margin: 0 0.5rem;
}

.step.active ~ .step-connector,
.step.completed ~ .step-connector {
    background: var(--primary-blue);
}

/* Form Sections */
.form-section {
    margin-bottom: 2rem;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.form-section:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.section-header-inline {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.section-badge {
    background: var(--primary-blue);
    color: var(--text-white);
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-title-inline {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

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

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    border: 1px solid var(--border-medium);
    border-radius: 12px;
    background: var(--bg-white);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px var(--primary-blue-light);
}

.form-control::placeholder {
    color: var(--text-secondary);
}

/* Buttons - Minimal Corporate Style */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    border: none;
    border-radius: 980px;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--text-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--primary-blue-hover);
    box-shadow: 0 8px 24px rgba(0, 113, 227, 0.4);
    transform: scale(1.02);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: #e8e8ed;
}

.btn-outline {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-outline:hover {
    background: var(--primary-blue-light);
}

/* Upload Zone */
.upload-zone {
    padding: 4rem;
    border: 2px dashed var(--border-medium);
    border-radius: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-white);
}

.upload-zone:hover {
    border-color: var(--primary-blue);
    background: rgba(0, 113, 227, 0.02);
}

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

.upload-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.upload-zone:hover .upload-icon {
    transform: scale(1.1);
}

.upload-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.upload-description {
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-secondary);
}

/* File Upload Input */
input[type="file"] {
    display: none;
}

.file-upload-label {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary-blue);
    color: var(--text-white);
    border-radius: 980px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-label:hover {
    background: var(--primary-blue-hover);
    transform: translateY(-2px);
}

/* Stats Section */
.stats {
    display: flex;
    justify-content: center;
    gap: 6rem;
    padding: 4rem;
    background: var(--bg-white);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.feature-card {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 24px;
    transition: all 0.4s var(--transition-smooth);
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-blue);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-description {
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Searchable Select - Minimal Style */
.searchable-select-container {
    position: relative;
}

.searchable-select-input {
        width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    border: 1px solid var(--border-medium);
    border-radius: 12px;
    background: var(--bg-white);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.searchable-select-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px var(--primary-blue-light);
}

.searchable-select-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: var(--bg-white);
    border: 1px solid var(--border-medium);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
}

.searchable-select-option {
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--border-light);
}

.searchable-select-option:last-child {
    border-bottom: none;
}

.searchable-select-option:hover {
    background: var(--bg-card);
    color: var(--primary-blue);
}

.searchable-select-option.selected {
    background: var(--primary-blue-light);
    color: var(--primary-blue);
    font-weight: 600;
}

/* Alert Messages */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-info {
    background: var(--primary-blue-light);
    color: #1e3a8a;
    border: 1px solid rgba(0, 113, 227, 0.2);
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-light);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Progress Bar */
.progress-bar {
    height: 8px;
    background: var(--bg-light);
    border-radius: 4px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-blue-hover));
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
    opacity: 0;
    transform: translateY(20px);
    }
    to {
    opacity: 1;
    transform: translateY(0);
    }
}

.slide-in {
    animation: slideIn 0.4s var(--transition-smooth);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .top-nav {
        padding: 1.5rem 2rem;
    }
    
    .main-card {
        margin: 2rem;
        padding: 2rem;
    }
    
    .page-header {
        padding: 4rem 2rem 2rem;
    }
    
    .page-header h1 {
        font-size: 3rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .top-nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
    font-size: 1rem;
    }
    
    .progress-stepper {
        flex-direction: column;
        gap: 1rem;
    }
    
    .step-connector {
        width: 2px;
        height: 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .stats {
        flex-direction: column;
        gap: 2rem;
    }
}

/* Print Styles */
/* Footer */
.footer {
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 4rem;
    border-top: 1px solid var(--border-medium);
    background: var(--bg-light);
}

.footer p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
}

/* Print styles */
@media print {
    .top-nav,
    .btn,
    .upload-zone {
        display: none;
    }
    
    body {
    background: white;
    }
    
    .main-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
