/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* Login Page */
.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    overflow: hidden;
}

.login-header {
    background: linear-gradient(to right, #4e54c8, #8f94fb);
    color: white;
    padding: 30px 20px;
    text-align: center;
}

.college-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.college-logo i {
    font-size: 2.5rem;
}

.college-logo h1 {
    font-size: 1.2rem;
    font-weight: 600;
}

.login-header h2 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-top: 10px;
}

.login-form {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #4e54c8;
    box-shadow: 0 0 0 2px rgba(78, 84, 200, 0.2);
}

.form-text {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(to right, #4e54c8, #8f94fb);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.2s;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(78, 84, 200, 0.4);
}

.login-footer {
    margin-top: 20px;
    text-align: center;
    color: #666;
    font-size: 12px;
}

.login-footer p {
    margin: 5px 0;
}

/* Navigation */
.student-nav {
    background: linear-gradient(to right, #2c3e50, #4a6491);
    color: white;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 600;
}

.nav-brand i {
    font-size: 1.5rem;
}

.nav-user {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
}

.nav-user .dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: none;
    min-width: 200px;
    z-index: 1000;
}

.nav-user:hover .dropdown {
    display: block;
}

.nav-user .dropdown a {
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}

.nav-user .dropdown a:hover {
    background: #f8f9fa;
    color: #4e54c8;
}

.nav-user .dropdown a i {
    margin-right: 8px;
    width: 20px;
}

/* Container Layout */
.container {
    display: flex;
    max-width: 1200px;
    margin: 20px auto;
    gap: 20px;
    padding: 0 20px;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px 0;
    height: fit-content;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin: 5px 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #555;
    text-decoration: none;
    transition: all 0.3s;
    border-left: 4px solid transparent;
}

.sidebar-menu a:hover {
    background: #f8f9fa;
    color: #4e54c8;
    border-left-color: #4e54c8;
}

.sidebar-menu .active a {
    background: linear-gradient(to right, #4e54c8, #8f94fb);
    color: white;
    border-left-color: #2c3e50;
}

.sidebar-menu i {
    width: 20px;
    text-align: center;
}

/* Main Content */
.main-content {
    flex: 1;
}

/* Cards */
.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.card-header {
    background: linear-gradient(to right, #f8f9fa, #e9ecef);
    padding: 20px;
    border-bottom: 1px solid #dee2e6;
}

.card-header h2, .card-header h3 {
    margin: 0;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-body {
    padding: 20px;
}

.welcome-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.welcome-card h1 {
    margin: 0 0 10px 0;
    font-size: 2rem;
}

.welcome-card p {
    margin: 0;
    opacity: 0.9;
}

/* Stats Cards */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.bg-primary { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.bg-success { background: linear-gradient(135deg, #2ecc71, #27ae60); }
.bg-info { background: linear-gradient(135deg, #3498db, #2980b9); }
.bg-warning { background: linear-gradient(135deg, #f39c12, #e67e22); }

.stat-info h3 {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.stat-value {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
}

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

.table th {
    background: #f8f9fa;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 2px solid #dee2e6;
}

.table td {
    padding: 12px 15px;
    border-bottom: 1px solid #dee2e6;
}

.table tr:hover {
    background: #f8f9fa;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.badge-danger {
    background: #f8d7da;
    color: #721c24;
}

.badge-primary {
    background: #d1ecf1;
    color: #0c5460;
}

/* Alerts */
.alert {
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
    border: 1px solid transparent;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

/* Profile Styles */
.profile-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.profile-photo img {
    width: 150px;
    height: 150px;
    border-radius: 10px;
    object-fit: cover;
    border: 3px solid #4e54c8;
}

.profile-info h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
}

.profile-info p {
    margin: 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-details h4 {
    margin: 25px 0 15px 0;
    color: #2c3e50;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.row {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.col-md-6 {
    flex: 1;
}

/* Notifications */
.notification-list {
    list-style: none;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}

.notification-item:hover {
    background: #f8f9fa;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item i {
    font-size: 20px;
    margin-top: 3px;
}

.notification-content p {
    margin: 0 0 5px 0;
    color: #333;
}

.notification-content small {
    color: #666;
}

.text-muted {
    color: #666 !important;
}

.text-info {
    color: #17a2b8 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        padding: 10px;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .row {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-container {
        padding: 0 10px;
    }
}/* Add to your existing style.css */
.main-nav {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
}

.nav-brand i {
    color: #4e54c8;
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-menu a {
    color: #555;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s;
}

.nav-menu a:hover {
    color: #4e54c8;
    background: #f8f9fa;
}

.nav-menu a.active {
    color: #4e54c8;
    font-weight: 600;
}

.btn-nav {
    background: linear-gradient(to right, #4e54c8, #8f94fb);
    color: white !important;
    padding: 10px 20px !important;
}

.btn-nav:hover {
    background: linear-gradient(to right, #3a3f9e, #6c70d9) !important;
}

/* ============================================
   SEMESTER OUTLINES MANAGEMENT - ADDITIONAL STYLES
   ============================================ */

/* Main Container Enhancement */
.main-content {
    padding: 30px;
    background: #f5f7fb;
    min-height: 100vh;
}

.main-content h1 {
    font-size: 28px;
    font-weight: 700;
    color: #4e73df;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e3e6f0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.main-content h1 i {
    background: linear-gradient(135deg, #4e73df, #2e59d9);
    color: white;
    padding: 12px;
    border-radius: 10px;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(78, 115, 223, 0.2);
}

/* Upload Form Enhancement */
.upload-form {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fe 100%);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(78, 115, 223, 0.1);
    position: relative;
    overflow: hidden;
}

.upload-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #4e73df, #1cc88a, #f6c23e);
}

.upload-form h3 {
    font-size: 22px;
    font-weight: 700;
    color: #2e59d9;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f3f9;
}

.upload-form h3 i {
    color: #4e73df;
    font-size: 24px;
}

/* Form Group Styling */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2e384d;
    font-size: 15px;
}

.form-group label i {
    color: #4e73df;
    width: 20px;
    font-size: 16px;
}

.form-control {
    width: 100%;
    padding: 12px 18px;
    border: 2px solid #e1e5f1;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.form-control:hover {
    border-color: #b8c1e1;
    box-shadow: 0 4px 12px rgba(78, 115, 223, 0.08);
}

.form-control:focus {
    border-color: #4e73df;
    box-shadow: 0 0 0 4px rgba(78, 115, 223, 0.1);
    outline: none;
    transform: translateY(-1px);
}

/* Select Dropdown Enhancement */
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%234e73df' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 14px;
    padding-right: 45px;
}

/* Textarea Enhancement */
textarea.form-control {
    min-height: 100px;
    resize: vertical;
    line-height: 1.6;
}

textarea.form-control::placeholder {
    color: #a0aec0;
    font-style: italic;
}

/* File Input Styling */
input[type="file"].form-control {
    padding: 10px;
    background: #f8f9fc;
    border: 2px dashed #4e73df;
    cursor: pointer;
}

input[type="file"].form-control:hover {
    background: #eef2f7;
    border-color: #2e59d9;
}

/* Help Text */
small {
    display: block;
    margin-top: 8px;
    color: #6c757d;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
}

small i {
    color: #4e73df;
}

/* Upload Button Enhancement */
.btn-upload {
    background: linear-gradient(135deg, #4e73df 0%, #2e59d9 100%);
    color: white;
    padding: 14px 30px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(78, 115, 223, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-upload::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-upload:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(78, 115, 223, 0.4);
}

.btn-upload:hover::before {
    width: 400px;
    height: 400px;
}

.btn-upload i {
    font-size: 18px;
    position: relative;
    z-index: 1;
}

/* Table Enhancement */
.outline-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.outline-table thead tr {
    background: linear-gradient(135deg, #4e73df 0%, #2e59d9 100%);
}

.outline-table th {
    padding: 18px 20px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
    border: none;
    white-space: nowrap;
}

.outline-table th i {
    margin-right: 8px;
    font-size: 14px;
}

.outline-table tbody tr {
    border-bottom: 1px solid #f1f3f9;
    transition: all 0.3s ease;
    animation: fadeInRow 0.3s ease;
    animation-fill-mode: both;
}

.outline-table tbody tr:hover {
    background: #f8f9fe;
    transform: scale(1.01);
    box-shadow: 0 4px 12px rgba(78, 115, 223, 0.1);
}

.outline-table td {
    padding: 16px 20px;
    color: #495057;
    font-size: 15px;
    vertical-align: middle;
}

/* Staggered Animation for Table Rows */
.outline-table tbody tr:nth-child(1) { animation-delay: 0.1s; }
.outline-table tbody tr:nth-child(2) { animation-delay: 0.2s; }
.outline-table tbody tr:nth-child(3) { animation-delay: 0.3s; }
.outline-table tbody tr:nth-child(4) { animation-delay: 0.4s; }
.outline-table tbody tr:nth-child(5) { animation-delay: 0.5s; }

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

/* Action Buttons Enhancement */
.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin: 0 4px;
    color: white;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.action-btn:hover::before {
    width: 100px;
    height: 100px;
}

/* View Button */
.action-btn:first-child {
    background: linear-gradient(135deg, #36b9cc 0%, #2596a8 100%);
    box-shadow: 0 2px 8px rgba(54, 185, 204, 0.3);
}

.action-btn:first-child:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(54, 185, 204, 0.4);
}

/* Delete Button */
.delete-btn {
    background: linear-gradient(135deg, #e74a3b 0%, #d52a1a 100%) !important;
    box-shadow: 0 2px 8px rgba(231, 74, 59, 0.3) !important;
}

.delete-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 4px 12px rgba(231, 74, 59, 0.4) !important;
}

/* Tooltip for Action Buttons */
.action-btn {
    position: relative;
}

.action-btn::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    background: #2d3748;
    color: white;
    font-size: 11px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.action-btn:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-10px);
}

/* Program and Semester Tags */
.outline-table td:first-child {
    font-weight: 600;
    color: #2e59d9;
}

.outline-table td:nth-child(2) {
    background: rgba(78, 115, 223, 0.05);
    border-radius: 20px;
    padding: 4px 12px;
    display: inline-block;
    margin: 10px 0;
    color: #4e73df;
    font-weight: 600;
}

/* Upload Date Styling */
.outline-table td:nth-child(4) {
    color: #6c757d;
    font-size: 13px;
    font-weight: 500;
}

/* Uploaded By Styling */
.outline-table td:nth-child(5) {
    color: #495057;
    font-weight: 500;
}

.outline-table td:nth-child(5) i {
    color: #4e73df;
    margin-right: 5px;
}

/* Empty State */
.outline-table tbody tr:first-child td[colspan] {
    padding: 60px;
    text-align: center;
    color: #6c757d;
    background: #f8f9fc;
}

.outline-table tbody tr:first-child td[colspan] i {
    font-size: 48px;
    color: #e1e5f1;
    margin-bottom: 15px;
    display: block;
}

/* Message Styles Enhancement */
.message {
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInDown 0.4s ease;
    border-left: 4px solid transparent;
}

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

.message i {
    font-size: 20px;
}

.success {
    background: #d4edda;
    color: #155724;
    border-left-color: #1cc88a;
}

.error {
    background: #f8d7da;
    color: #721c24;
    border-left-color: #e74a3b;
}

/* Section Headers */
.main-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: #2e59d9;
    margin: 30px 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.main-content h3 i {
    color: #4e73df;
}

/* Quick Stats for Outlines (Optional) */
.outline-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #4e73df;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(78, 115, 223, 0.15);
}

.stat-item i {
    font-size: 24px;
    color: #4e73df;
    margin-bottom: 10px;
}

.stat-item .stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #2e59d9;
}

.stat-item .stat-label {
    color: #6c757d;
    font-size: 14px;
    margin-top: 5px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .main-content {
        padding: 25px;
    }
    
    .main-content h1 {
        font-size: 24px;
    }
}

@media (max-width: 992px) {
    .outline-table {
        min-width: 1000px;
    }
    
    .main-content {
        overflow-x: auto;
    }
    
    .upload-form {
        padding: 25px;
    }
    
    .outline-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 20px;
    }
    
    .main-content h1 {
        font-size: 22px;
        flex-direction: column;
        text-align: center;
    }
    
    .upload-form h3 {
        font-size: 20px;
    }
    
    .btn-upload {
        width: 100%;
        justify-content: center;
    }
    
    .outline-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-item {
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .main-content {
        padding: 15px;
    }
    
    .upload-form {
        padding: 20px;
    }
    
    .upload-form h3 {
        font-size: 18px;
    }
    
    .form-group label {
        font-size: 14px;
    }
    
    .form-control {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .btn-upload {
        padding: 12px 20px;
        font-size: 15px;
    }
    
    .message {
        font-size: 14px;
        padding: 12px 15px;
    }
}

/* Loading State */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    border: 3px solid #4e73df;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Print Styles */
@media print {
    .sidebar,
    .upload-form,
    .btn-upload,
    .action-btn {
        display: none !important;
    }
    
    .main-content {
        padding: 0;
        margin: 0;
    }
    
    .outline-table {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .outline-table thead {
        background: #f8f9fa !important;
    }
    
    .outline-table th {
        color: black !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .main-content {
        background: #1a202c;
    }
    
    .upload-form,
    .outline-table,
    .stat-item {
        background: #2d3748;
    }
    
    .form-control {
        background: #4a5568;
        border-color: #718096;
        color: #e2e8f0;
    }
    
    .form-control::placeholder {
        color: #a0aec0;
    }
    
    .outline-table tbody td {
        color: #e2e8f0;
    }
    
    .outline-table tbody tr {
        border-color: #4a5568;
    }
    
    .outline-table tbody tr:hover {
        background: #4a5568;
    }
    
    .stat-item .stat-label {
        color: #a0aec0;
    }
    
    .main-content h1 {
        color: #93c5fd;
    }
    
    small {
        color: #a0aec0;
    }
}

/* Animation for new uploads */
@keyframes highlightNew {
    0% { background: rgba(78, 115, 223, 0.2); }
    100% { background: transparent; }
}

tr.new-upload {
    animation: highlightNew 2s ease-out;
}

/* Accessibility Focus Styles */
.form-control:focus-visible,
.btn-upload:focus-visible,
.action-btn:focus-visible {
    outline: 3px solid #4e73df;
    outline-offset: 2px;
}

/* Tooltip for file input */
input[type="file"].form-control {
    position: relative;
}

input[type="file"].form-control::before {
    content: '📎 Click to select a PDF file';
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: #6c757d;
    pointer-events: none;
}