:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --success-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --warning-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --dark-gradient: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #4facfe;
    --success-color: #43e97b;
    --warning-color: #fa709a;
    --danger-color: #f5576c;
    --text-dark: #2d3748;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --white: #ffffff;
    
    --sidebar-width: 280px;
    --sidebar-collapsed: 60px;
    --header-height: 70px;
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
}

/* ===== Landing Page ===== */
.landing-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(-45deg, #667eea, #764ba2, #f093fb, #f5576c, #4facfe, #00f2fe);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    position: relative;
    overflow: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.6;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.3);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.2);
    bottom: -50px;
    right: -50px;
    animation-delay: 5s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.25);
    top: 50%;
    left: 50%;
    animation-delay: 10s;
}

.shape-4 {
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.15);
    bottom: 20%;
    left: 20%;
    animation-delay: 15s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

.glass-container {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 60px 80px;
    box-shadow: var(--glass-shadow);
    text-align: center;
    z-index: 10;
    max-width: 500px;
    width: 90%;
}

.logo-section {
    margin-bottom: 40px;
}

.oro-logo {
    width: 100px;
    height: 100px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.oro-logo i {
    font-size: 48px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.oro-title {
    font-family: 'Poppins', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 4px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.oro-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
    font-weight: 500;
}

.oro-tagline {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ===== Buttons ===== */
.btn {
    padding: 14px 28px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: inherit;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--white);
}

.btn-full {
    width: 100%;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    background: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid #e2e8f0;
}

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

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

.btn-social {
    flex: 1;
    padding: 12px;
    font-size: 14px;
}

.btn-social.google {
    background: #db4437;
    color: white;
}

.btn-social.github {
    background: #333;
    color: white;
}

.btn-logout {
    background: #e53e3e;
    color: white;
}

/* ===== Modals ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    max-width: 450px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlide 0.3s ease;
}

.large-modal {
    max-width: 700px;
}

.print-modal .modal-content {
    max-width: 900px;
    max-height: 95vh;
}

@keyframes modalSlide {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.glass-modal {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-btn:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.oro-logo-small {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.oro-logo-small i {
    font-size: 28px;
    color: var(--white);
}

.modal-header h2 {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.modal-header p {
    color: var(--text-light);
    font-size: 14px;
}

/* ===== Forms ===== */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    color: var(--primary-color);
}

.form-group input,
.form-group select {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.password-input {
    position: relative;
}

.password-input input {
    width: 100%;
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.toggle-password:hover {
    color: var(--primary-color);
}

.error-msg {
    font-size: 12px;
    color: var(--danger-color);
    display: none;
}

.error-msg.show {
    display: block;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-light);
}

.checkbox-label input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.checkbox-label input:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 12px;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

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

.divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: var(--text-light);
    font-size: 13px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.divider span {
    padding: 0 15px;
}

.social-auth {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.auth-switch {
    text-align: center;
    font-size: 14px;
    color: var(--text-light);
}

.auth-switch a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

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

/* ===== App Container ===== */
.app-container {
    display: flex;
    min-height: 100vh;
}

.app-container.hidden {
    display: none;
}

/* ===== Sidebar ===== */
.sidebar {
    width: var(--sidebar-width);
    background: var(--white);
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
    transition: var(--transition);
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed);
}

.sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e2e8f0;
}

.oro-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.oro-brand i {
    font-size: 28px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-text {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
}

.sidebar.collapsed .brand-text,
.sidebar.collapsed .search-box input,
.sidebar.collapsed .classes-nav .nav-section-title,
.sidebar.collapsed .classes-nav .class-btn span,
.sidebar.collapsed .footer-btn span {
    display: none;
}

.sidebar-toggle {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-light);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-light);
}

.sidebar.collapsed .sidebar-toggle {
    position: absolute;
    right: -16px;
    top: 20px;
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.sidebar-toggle:hover {
    background: var(--primary-color);
    color: white;
}

.search-box {
    padding: 15px 20px;
    position: relative;
}

.search-box i {
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.search-box input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.classes-nav {
    flex: 1;
    overflow-y: auto;
    padding: 0 10px;
}

.nav-section-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 15px 10px 10px;
}

.classes-nav ul {
    list-style: none;
}

.class-btn {
    width: 100%;
    padding: 12px 15px;
    border: none;
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-dark);
    transition: var(--transition);
    text-align: left;
}

.class-btn i {
    width: 20px;
    text-align: center;
    color: var(--primary-color);
}

.class-btn:hover {
    background: var(--bg-light);
}

.class-btn.active {
    background: var(--primary-gradient);
    color: white;
}

.class-btn.active i {
    color: white;
}

.sidebar-footer {
    padding: 15px;
    border-top: 1px solid #e2e8f0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.sidebar.collapsed .sidebar-footer {
    grid-template-columns: 1fr;
}

.footer-btn {
    padding: 10px;
    border: none;
    background: var(--bg-light);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-dark);
    transition: var(--transition);
}

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

.footer-btn i {
    font-size: 14px;
}

/* ===== Main Content ===== */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.sidebar.collapsed + .main-content {
    margin-left: var(--sidebar-collapsed);
}

/* ===== Top Bar ===== */
.top-bar {
    height: var(--header-height);
    background: var(--white);
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.status-info {
    display: flex;
    gap: 30px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-dark);
}

.status-item i {
    color: var(--primary-color);
}

#active-student-display {
    color: var(--text-dark);
    font-weight: 600;
    text-transform: uppercase;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

/* ===== Spreadsheet ===== */
.spreadsheet-container {
    flex: 1;
    overflow: auto;
    padding: 20px;
    background: var(--bg-light);
}

.spreadsheet {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: auto;
    min-width: max-content;
}

.spreadsheet-table {
    border-collapse: collapse;
    width: 100%;
    font-size: 13px;
}

.spreadsheet-table th,
.spreadsheet-table td {
    border: 1px solid #e2e8f0;
    padding: 8px;
    text-align: center;
    min-width: 50px;
}

.spreadsheet-table th {
    background: var(--primary-gradient);
    color: white;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
}

.spreadsheet-table th.subject-header {
    background: var(--secondary-gradient);
}

.spreadsheet-table th.total-header {
    background: var(--accent-gradient);
}

.spreadsheet-table th.info-header {
    background: var(--dark-gradient);
}

.spreadsheet-table td {
    background: white;
}

.spreadsheet-table tr:hover td {
    background: #f7fafc;
}

.spreadsheet-table tr.active-row td {
    background: #ebf8ff;
}

.spreadsheet-table input {
    width: 100%;
    border: none;
    background: transparent;
    text-align: center;
    padding: 4px;
    font-size: 13px;
    font-family: inherit;
}

.spreadsheet-table input:focus {
    outline: 2px solid var(--primary-color);
    background: white;
}

.row-num {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--text-light);
    width: 40px;
}

.delete-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: var(--danger-color);
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition);
}

.delete-btn:hover {
    background: var(--danger-color);
    color: white;
}

.student-name-cell {
    min-width: 200px;
    text-align: left;
}

.student-name-cell input {
    text-align: left;
    text-transform: uppercase;
}

.subject-name-input {
    font-weight: 600;
    text-transform: uppercase;
}

.score-input {
    width: 60px;
}

.total-cell {
    font-weight: 700;
    background: #f0fff4 !important;
    color: #22543d;
}

.remarks-cell {
    min-width: 150px;
    font-weight: 500;
}

.remarks-cell.excellent { color: #22543d; background: #c6f6d5 !important; }
.remarks-cell.very-good { color: #2c5282; background: #bee3f8 !important; }
.remarks-cell.good { color: #744210; background: #fefcbf !important; }
.remarks-cell.average { color: #c05621; background: #feebc8 !important; }
.remarks-cell.pass { color: #742a2a; background: #fed7d7 !important; }
.remarks-cell.low-pass { color: #97266d; background: #fed7e2 !important; }
.remarks-cell.fail { color: #fff; background: #e53e3e !important; }

.student-image-cell {
    width: 50px;
    padding: 4px;
}

.student-image-upload {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.student-image-upload input {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.student-image-upload i {
    font-size: 20px;
    color: var(--text-light);
}

.student-image-upload img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.attendance-input {
    width: 60px;
}

/* ===== Profile Form ===== */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.upload-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.image-upload {
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    position: relative;
    transition: var(--transition);
}

.image-upload:hover {
    border-color: var(--primary-color);
}

.image-upload input {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
}

.upload-placeholder i {
    font-size: 32px;
}

.upload-placeholder img {
    max-width: 100%;
    max-height: 150px;
    border-radius: 8px;
}

/* ===== Subject Settings ===== */
.subject-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.subject-input-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.subject-input-row input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
}

.subject-input-row button {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--danger-color);
    color: white;
    border-radius: 8px;
    cursor: pointer;
}

/* ===== Print Preview ===== */
.print-header-actions {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.print-preview {
    background: white;
    padding: 40px;
    border: 2px solid #2d3748;
    min-height: 297mm;
    width: 210mm;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.print-document {
    font-family: 'Times New Roman', serif;
}

.print-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.print-school-name {
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 20px;
    border-bottom: 2px solid #2d3748;
    padding-bottom: 10px;
}

.print-logos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.print-logo {
    width: 100px;
    height: 100px;
    border: 2px solid #2d3748;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.print-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.print-logo-placeholder {
    font-size: 12px;
    color: #718096;
    text-align: center;
}

.print-title-section {
    text-align: center;
    flex: 1;
}

.print-title {
    font-size: 20px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.print-student-info {
    margin-top: 15px;
}

.print-student-info p {
    margin: 5px 0;
    font-size: 14px;
}

.print-dates {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    padding: 10px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 13px;
}

.print-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.print-table th,
.print-table td {
    border: 1px solid #2d3748;
    padding: 10px;
    text-align: center;
}

.print-table th {
    background: #f7fafc;
    font-weight: bold;
}

.print-table td:first-child {
    text-align: left;
    font-weight: 500;
}

.print-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 40px;
}

.print-attendance {
    font-size: 14px;
}

.print-signature {
    text-align: center;
}

.print-signature img {
    max-width: 150px;
    max-height: 80px;
}

.print-signature p {
    margin-top: 5px;
    font-size: 12px;
    border-top: 1px solid #2d3748;
    padding-top: 5px;
}

.print-aggregate {
    text-align: center;
    margin: 20px 0;
    font-size: 16px;
    font-weight: bold;
}

@media print {
    .print-modal,
    .print-header-actions,
    .modal,
    .sidebar,
    .top-bar {
        display: none !important;
    }
    
    .print-preview {
        border: 2px solid #2d3748;
        box-shadow: none;
        margin: 0;
        padding: 20px;
    }
    
    body {
        background: white;
    }
}

/* ===== Loading & Toast ===== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-overlay.hidden {
    display: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e2e8f0;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--text-dark);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 9999;
    font-size: 14px;
}

.toast.show {
    transform: translateX(0);
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .glass-container {
        padding: 40px 30px;
    }
    
    .oro-title {
        font-size: 36px;
    }
    
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .top-bar {
        flex-direction: column;
        height: auto;
        padding: 15px;
        gap: 15px;
    }
    
    .status-info {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .upload-section {
        grid-template-columns: 1fr;
    }
    
    .print-preview {
        width: 100%;
        padding: 20px;
    }
}

