/* Color palette from Figma */
:root {
    --primary-blue: #4285F4;
    --primary-blue-hover: #3367D6;
    --background: #F5F7FA;
    --text-dark: #333333;
    --text-gray: #666666;
    --text-light: #999999;
    --white: #FFFFFF;
    --error: #D93025;
    --success: #1E8E3E;
    --border: #E0E0E0;

    /* Dashboard specific colors */
    --card-blue: #4285F4;
    --card-green: #34A853;
    --card-purple: #9C27B0;
    --card-orange: #FF6D00;
    --status-draft: #95A5A6;
    --status-in-progress: #3498DB;
    --status-submitted: #9B59B6;
    --status-approved: #27AE60;
    --status-rejected: #E74C3C;
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --card-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--background);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

/* Auth Container */
.auth-container {
    width: 100%;
    max-width: 450px;
}

.auth-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.signup-card {
    max-width: 500px;
}

.auth-header {
    text-align: center;
    padding: 2rem 2rem 0.5rem;
    background: linear-gradient(to bottom, #f8f9fa, var(--white));
}

.logo {
    margin: 0 auto 0.75rem;
}

.auth-header h1 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0;
}

.subtitle {
    font-size: 0.875rem;
    color: var(--text-gray);
}

/* Modern Language Switcher in Card */
.language-switcher-modern {
    margin-top: 1rem;
}

.language-options {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
}

.language-btn {
    padding: 0.4rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-gray);
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    min-width: 48px;
}

.language-btn:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    background: rgba(66, 133, 244, 0.05);
}

.language-btn.active {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
    box-shadow: 0 2px 4px rgba(66, 133, 244, 0.2);
}

.language-btn.active:hover {
    background: var(--primary-blue-hover);
    border-color: var(--primary-blue-hover);
}

/* Form Container */
.auth-form-container {
    padding: 0.75rem 2rem 2rem;
}

.auth-form-container h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.form-description {
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-bottom: 1.25rem;
}

/* Form Styles */
.auth-form {
    margin-top: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.375rem;
}

.form-input,
input[type="text"],
input[type="email"],
input[type="password"],
select {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: all 0.2s;
    font-family: inherit;
}

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

.field-error {
    display: block;
    font-size: 0.8125rem;
    color: var(--error);
    margin-top: 0.375rem;
}

.field-help {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-light);
    margin-top: 0.375rem;
}

.field-help-success {
    color: var(--success);
}

.field-help-error {
    color: var(--error);
}

.form-input.field-success,
input.field-success {
    border-color: var(--success);
}

.form-input.field-success:focus,
input.field-success:focus {
    border-color: var(--success);
    box-shadow: 0 0 0 3px rgba(30, 142, 62, 0.1);
}

.form-input.field-error,
input.field-error {
    border-color: var(--error);
}

.form-input.field-error:focus,
input.field-error:focus {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(217, 48, 37, 0.1);
}

.error-message {
    padding: 0.75rem 1rem;
    background: #FEE;
    border: 1px solid #FCC;
    border-radius: 6px;
    color: var(--error);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.error-message ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Buttons */
.btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    justify-content: center;
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
    margin-top: 0.25rem;
}

.btn-primary:hover {
    background: var(--primary-blue-hover);
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
}

.btn-primary:active {
    transform: translateY(1px);
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.25rem;
}

.forgot-password {
    font-size: 0.875rem;
    color: var(--primary-blue);
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* Auth Footer */
.auth-footer {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

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

.auth-footer a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    padding: 1rem 1.5rem;
    text-align: center;
    font-size: 0.8125rem;
    color: var(--text-light);
}

.language-switcher {
    margin-top: 1rem;
}

.language-switcher select {
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--white);
    color: var(--text-dark);
    cursor: pointer;
}

/* Error Page (404, 500, etc.) */
.error-container {
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.error-content {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 3rem 2rem;
}

.error-animation {
    margin-bottom: 2rem;
}

.error-number {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    font-size: 6rem;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1;
}

.error-number .four {
    animation: bounce 2s ease-in-out infinite;
}

.error-number .four:last-child {
    animation-delay: 0.2s;
}

.error-number .zero {
    width: 6rem;
    height: 6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.error-number .zero svg {
    width: 100%;
    height: 100%;
    animation: rotate 3s linear infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

.error-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.error-description {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

.error-actions {
    margin-bottom: 2rem;
}

.btn-large {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 200px;
}

.error-suggestions {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.suggestions-title {
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.suggestions-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.suggestions-list li a {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: all 0.2s;
}

.suggestions-list li a:hover {
    text-decoration: underline;
    color: var(--primary-blue-hover);
}

/* Responsive */
@media (max-width: 640px) {
    .page-wrapper {
        padding: 1rem;
    }

    .auth-header {
        padding: 1.5rem 1rem 0.5rem;
    }

    .auth-form-container {
        padding: 0.5rem 1.5rem 1.5rem;
    }

    .auth-header h1 {
        font-size: 1.125rem;
    }

    .form-group {
        margin-bottom: 0.875rem;
    }

    .error-content {
        padding: 2rem 1.5rem;
    }

    .error-number {
        font-size: 4rem;
        gap: 0.5rem;
    }

    .error-number .zero {
        width: 4rem;
        height: 4rem;
    }

    .error-title {
        font-size: 1.5rem;
    }

    .error-description {
        font-size: 0.9375rem;
    }

    .btn-large {
        width: 100%;
    }

    .suggestions-list {
        gap: 0.625rem;
    }
}

/* ========================================
   DASHBOARD STYLES - FIGMA DESIGN
   ======================================== */

/* Dashboard Wrapper with Sidebar */
.dashboard-layout-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100vw;
    background: var(--background);
    margin: 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

/* Override page-wrapper for dashboard pages */
.page-wrapper:has(.dashboard-layout-wrapper) {
    padding: 0;
    display: block;
    align-items: stretch;
    justify-content: stretch;
}

/* Left Sidebar */
.dashboard-sidebar {
    width: 260px;
    background: var(--white);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
}

.sidebar-header {
    padding: 1.5rem 1.25rem;
    border-bottom: 1px solid var(--border);
    height: 76px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

.sidebar-logo h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin: 0 0 0.25rem 0;
}

.sidebar-subtitle {
    font-size: 0.75rem;
    color: var(--text-light);
    margin: 0;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: rgba(66, 133, 244, 0.05);
    color: var(--primary-blue);
}

.nav-item.active {
    background: rgba(66, 133, 244, 0.1);
    color: var(--primary-blue);
    border-left-color: var(--primary-blue);
    font-weight: 500;
}

.nav-item svg {
    flex-shrink: 0;
}

.sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border);
}

.organization-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--background);
    border-radius: 8px;
}

.org-icon {
    font-size: 1.5rem;
}

.org-info {
    flex: 1;
}

.org-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
}

.org-period {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Main Wrapper (right of sidebar) */
.dashboard-main-wrapper {
    margin-left: 260px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Top Header */
.dashboard-top-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 260px;
    right: 0;
    height: 76px;
    box-sizing: border-box;
    z-index: 50;
}

.header-left {
    padding-left: 2rem;
}

.header-right {
    padding-right: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* Test Mode Banner with Marquee Animation */
.test-mode-banner {
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
    border-radius: 6px;
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    overflow: hidden;
    width: 100%;
}

.marquee {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.marquee-text {
    display: inline-block;
    white-space: nowrap;
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
    animation: marquee 15s linear infinite;
    padding-left: 100%;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Pause animation on hover */
.test-mode-banner:hover .marquee-text {
    animation-play-state: paused;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-blue);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.user-name {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.2;
    white-space: nowrap;
}

.user-action {
    font-size: 0.8125rem;
    color: var(--text-light);
    text-decoration: none;
    line-height: 1;
}

.user-action:hover {
    color: var(--primary-blue);
}

/* Logout button styled as link */
.logout-button {
    font-size: 0.8125rem;
    color: var(--text-light);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
}

.logout-button:hover {
    color: var(--primary-blue);
}

/* Dashboard Language Switcher */
.dashboard-language-switcher {
    position: relative;
}

.language-selector {
    position: relative;
}

.language-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    color: var(--text-dark);
    font-size: 0.875rem;
    font-weight: 500;
}

.language-toggle:hover {
    border-color: var(--primary-blue);
    background: rgba(66, 133, 244, 0.05);
}

.language-toggle svg:first-child {
    color: var(--text-gray);
}

.current-language {
    color: var(--text-dark);
    font-weight: 600;
    min-width: 20px;
}

.language-toggle .chevron {
    color: var(--text-gray);
    transition: transform 0.2s ease;
}

.language-toggle:hover .chevron {
    color: var(--primary-blue);
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
    overflow: hidden;
}

.language-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    text-align: left;
    position: relative;
}

.language-option:hover {
    background: rgba(66, 133, 244, 0.05);
}

.language-option.active {
    background: rgba(66, 133, 244, 0.08);
}

.language-option:not(:last-child) {
    border-bottom: 1px solid var(--border);
}

.language-flag {
    font-size: 1.25rem;
    line-height: 1;
}

.language-name {
    flex: 1;
    font-size: 0.9375rem;
    color: var(--text-dark);
    font-weight: 500;
}

.language-option.active .language-name {
    color: var(--primary-blue);
    font-weight: 600;
}

.check-icon {
    color: var(--primary-blue);
    flex-shrink: 0;
}

/* Main Content Area */
.dashboard-main-content {
    flex: 1;
    padding: 0;
    margin-top: 76px;
    overflow-y: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Full-width content for forms */
.dashboard-main-content .form-container {
    padding: 2rem;
    width: 100%;
}

.dashboard-main-content .form-card {
    width: 100%;
}

/* Welcome Section */
.dashboard-welcome-section {
    margin-bottom: 2rem;
}

.welcome-greeting {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.5rem 0;
}

.welcome-description {
    font-size: 1rem;
    color: var(--text-gray);
    margin: 0;
}

/* Statistics Cards - Figma Design */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s;
}

.stat-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-1px);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-card.stat-blue .stat-icon {
    background: rgba(66, 133, 244, 0.1);
    color: var(--card-blue);
}

.stat-card.stat-green .stat-icon {
    background: rgba(52, 168, 83, 0.1);
    color: var(--card-green);
}

.stat-card.stat-purple .stat-icon {
    background: rgba(156, 39, 176, 0.1);
    color: var(--card-purple);
}

.stat-card.stat-orange .stat-icon {
    background: rgba(255, 109, 0, 0.1);
    color: var(--card-orange);
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--text-gray);
    margin-bottom: 0.125rem;
}

.stat-suffix {
    font-size: 0.75rem;
    color: var(--text-light);
}

.stat-change {
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    flex-shrink: 0;
}

.stat-change.positive {
    color: var(--status-approved);
    background: rgba(39, 174, 96, 0.1);
}

.stat-change.neutral {
    color: var(--text-light);
    background: rgba(149, 165, 166, 0.1);
}

/* Section Styling */
.quick-actions-section {
    margin-bottom: 2rem;
}

.section-heading {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.view-all-link {
    font-size: 0.875rem;
    color: var(--primary-blue);
    text-decoration: none;
}

.view-all-link:hover {
    text-decoration: underline;
}

/* Quick Actions */
.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.action-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    transition: all 0.2s;
    cursor: pointer;
}

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

.action-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.action-card.action-blue .action-icon {
    background: rgba(66, 133, 244, 0.1);
    color: var(--card-blue);
}

.action-card.action-green .action-icon {
    background: rgba(52, 168, 83, 0.1);
    color: var(--card-green);
}

.action-card.action-purple .action-icon {
    background: rgba(156, 39, 176, 0.1);
    color: var(--card-purple);
}

.action-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 0.5rem 0;
}

.action-description {
    font-size: 0.875rem;
    color: var(--text-gray);
    line-height: 1.5;
    margin: 0;
}

/* Two Column Layout */
.two-column-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Documents Section */
.documents-section,
.activity-section {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
}

.documents-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.document-item {
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.2s;
}

.document-item:hover {
    border-color: var(--primary-blue);
    background: rgba(66, 133, 244, 0.02);
}

.document-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.document-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.document-status {
    font-size: 0.75rem;
    padding: 0.25rem 0.625rem;
    border-radius: 12px;
    font-weight: 500;
}

.document-status.status-draft {
    background: rgba(149, 165, 166, 0.1);
    color: var(--status-draft);
}

.document-status.status-in-progress {
    background: rgba(52, 152, 219, 0.1);
    color: var(--status-in-progress);
}

.document-status.status-submitted {
    background: rgba(155, 89, 182, 0.1);
    color: var(--status-submitted);
}

.document-meta {
    font-size: 0.8125rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.document-info {
    color: var(--text-gray);
}

/* Progress Bar */
.document-progress,
.progress-bar-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: #E0E0E0;
    border-radius: 3px;
    overflow: hidden;
}

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

.progress-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-dark);
    min-width: 38px;
    text-align: right;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8125rem;
    font-weight: 500;
}

.status-badge.draft {
    background: rgba(149, 165, 166, 0.1);
    color: var(--status-draft);
}

.status-badge.in-progress {
    background: rgba(52, 152, 219, 0.1);
    color: var(--status-in-progress);
}

.status-badge.submitted {
    background: rgba(155, 89, 182, 0.1);
    color: var(--status-submitted);
}

.status-badge.approved {
    background: rgba(39, 174, 96, 0.1);
    color: var(--status-approved);
}

.status-badge.rejected {
    background: rgba(231, 76, 60, 0.1);
    color: var(--status-rejected);
}

/* Activity Timeline */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.activity-item-wrapper {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.activity-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 0.375rem;
}

.activity-indicator.activity-blue {
    background: var(--card-blue);
}

.activity-indicator.activity-green {
    background: var(--card-green);
}

.activity-indicator.activity-purple {
    background: var(--card-purple);
}

.activity-indicator.activity-success {
    background: var(--status-approved);
}

.activity-indicator.activity-error {
    background: var(--status-rejected);
}

.activity-indicator.activity-gray {
    background: var(--status-draft);
}

.activity-details {
    flex: 1;
}

.activity-text {
    font-size: 0.875rem;
    color: var(--text-dark);
    margin: 0 0 0.25rem 0;
    line-height: 1.5;
}

.activity-timestamp {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Empty Message */
.empty-message {
    padding: 2rem;
    text-align: center;
}

.empty-message p {
    color: var(--text-gray);
    font-size: 0.875rem;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .two-column-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .dashboard-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }

    .dashboard-sidebar.open {
        transform: translateX(0);
    }

    .dashboard-main-wrapper {
        margin-left: 0;
    }

    .dashboard-top-header {
        left: 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dashboard-top-header {
        padding: 1rem 1.5rem;
    }

    .header-center {
        max-width: 300px;
        padding: 0 0.5rem;
    }

    .test-mode-banner {
        padding: 0.4rem 0.75rem;
    }

    .marquee-text {
        font-size: 0.8rem;
    }

    .header-right {
        gap: 1rem;
    }

    .page-title {
        font-size: 1.25rem;
    }

    .dashboard-main-content {
        padding: 0;
    }

    .dashboard-main-content .form-container {
        padding: 1rem;
    }

    .welcome-greeting {
        font-size: 1.5rem;
    }

    .stats-grid,
    .actions-grid {
        grid-template-columns: 1fr;
    }

    .language-toggle {
        padding: 0.4rem 0.75rem;
        font-size: 0.8125rem;
    }

    .language-dropdown {
        min-width: 180px;
    }
}

@media (max-width: 640px) {
    .dashboard-top-header {
        height: auto;
        min-height: 60px;
        padding: 0.75rem 1rem;
        flex-wrap: wrap;
    }

    .header-left {
        padding-left: 0;
        order: 1;
    }

    .header-center {
        order: 3;
        width: 100%;
        max-width: 100%;
        padding: 0.5rem 0 0 0;
    }

    .test-mode-banner {
        padding: 0.3rem 0.5rem;
    }

    .marquee-text {
        font-size: 0.75rem;
    }

    .header-right {
        padding-right: 0;
        gap: 0.75rem;
        order: 2;
    }

    .user-avatar {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }

    .user-name {
        font-size: 0.8125rem;
    }

    .logout-button {
        font-size: 0.75rem;
    }

    .language-toggle {
        padding: 0.375rem 0.625rem;
        font-size: 0.75rem;
    }

    .current-language {
        min-width: 18px;
    }

    .dashboard-main-content {
        padding: 0;
        margin-top: 60px;
    }

    .dashboard-main-content .form-container {
        padding: 0.75rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }
}

/* Form Container and Card for Create Syllabus */
.form-container {
    width: 100%;
    padding: 0;
}

.form-card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.form-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(to bottom, #f8f9fa, var(--white));
}

.form-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.form-header p {
    color: var(--text-gray);
    font-size: 0.8125rem;
    margin: 0;
}

/* Multi-step progress indicator */
.step-indicator {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: relative;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 2.25rem;
    left: 2rem;
    right: 2rem;
    height: 2px;
    background: var(--border);
    z-index: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-light);
    transition: all 0.3s;
}

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

.step.completed .step-number {
    background: var(--success);
    border-color: var(--success);
    color: var(--white);
}

.step-label {
    font-size: 0.75rem;
    color: var(--text-gray);
    text-align: center;
    font-weight: 500;
}

.step.active .step-label {
    color: var(--primary-blue);
    font-weight: 600;
}

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

.syllabus-form {
    padding: 2rem;
}

.form-section {
    margin-bottom: 2rem;
}

.form-section:last-of-type {
    margin-bottom: 0;
}

.section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-blue);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-row.cols-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.form-row.cols-4 {
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

.syllabus-form .form-group {
    margin-bottom: 1.5rem;
}

.syllabus-form .form-group label {
    display: block;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.syllabus-form .form-group input,
.syllabus-form .form-group select,
.syllabus-form .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.875rem;
    font-family: inherit;
    transition: all 0.2s;
}

.syllabus-form .form-group input:focus,
.syllabus-form .form-group select:focus,
.syllabus-form .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

.syllabus-form .form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.help-text {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.error-message {
    display: block;
    color: var(--error);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    margin-top: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    font-family: inherit;
}

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

.btn-primary:hover {
    background: var(--primary-blue-hover);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}

.btn-secondary {
    background: var(--white);
    color: var(--text-dark);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--background);
}

.messages {
    margin: 1.5rem 2rem;
}

.alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.alert-success {
    background: #E6F4EA;
    color: var(--success);
    border: 1px solid var(--success);
}

.alert-error {
    background: #FCE8E6;
    color: var(--error);
    border: 1px solid var(--error);
}

.alert-info {
    background: #E8F0FE;
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
}

/* Step content visibility */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

/* Responsive form styles */
@media (max-width: 1024px) {
    .form-row.cols-3,
    .form-row.cols-4 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .form-header,
    .syllabus-form {
        padding: 1rem;
    }

    .step-indicator {
        padding: 1rem;
        overflow-x: auto;
    }

    .step-indicator::before {
        top: 1.75rem;
        left: 1rem;
        right: 1rem;
    }

    .step-label {
        font-size: 0.6875rem;
        max-width: 80px;
    }

    .step-number {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .form-row,
    .form-row.cols-3,
    .form-row.cols-4 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .form-actions {
        flex-direction: row;
        gap: 0.75rem;
    }

    .btn {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .form-header,
    .syllabus-form {
        padding: 0.75rem;
    }

    .step-indicator {
        padding: 0.75rem;
    }

    .step-indicator::before {
        top: 1.5rem;
    }
}

/* ========================================
   MULTI-STEP SYLLABUS CREATION STYLES
   ======================================== */

/* Main wrapper for syllabus creation - Moved to syllabus-form.css for better organization */
/* See syllabus-form.css for the actual definition */

/* All syllabus form-specific styles (including progress header, step titles, etc.) moved to syllabus-form.css */

/* All preview panel styles moved to syllabus-form.css */

/* Responsive for multi-step form - Moved to syllabus-form.css */

/* Responsive styles for syllabus forms moved to syllabus-form.css */

/* Sidebar footer styling */
.sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border);
}

.version-badge {
    text-align: center;
}
