:root {
    --primary: #030213;
    --background: #ffffff;
    --foreground: #0f172a;
    --card: #ffffff;
    --card-foreground: #0f172a;
    --popover: #ffffff;
    --popover-foreground: #0f172a;
    --primary-foreground: #ffffff;
    --secondary: #f1f5f9;
    --secondary-foreground: #0f172a;
    --muted: #f1f5f9;
    --muted-foreground: #3b0d50;
    --accent: #f1f5f9;
    --accent-foreground: #0f172a;
    --destructive: #dc2626;
    --destructive-foreground: #ffffff;
    --border: #e2e8f0;
    --input: #f8fafc;
    --ring: #0f172a;
    --radius: 0.5rem;
    --sidebar: #f8fafc;
    --sidebar-foreground: #0f172a;
    --sidebar-primary: #030213;
    --sidebar-primary-foreground: #ffffff;
    --sidebar-accent: #f1f5f9;
    --sidebar-accent-foreground: #0f172a;
    --sidebar-border: #e2e8f0;
    --sidebar-ring: #0f172a;
    --header-height: 80px;
    --sidebar-width: 300px;
}

.dark {
    --background: #0f172a;
    --foreground: #f1f5f9;
    --card: #1e293b;
    --card-foreground: #f1f5f9;
    --popover: #1e293b;
    --popover-foreground: #f1f5f9;
    --primary: #f1f5f9;
    --primary-foreground: #0f172a;
    --secondary: #334155;
    --secondary-foreground: #f1f5f9;
    --muted: #334155;
    --muted-foreground: #94a3b8;
    --accent: #334155;
    --accent-foreground: #f1f5f9;
    --destructive: #7f1d1d;
    --destructive-foreground: #f1f5f9;
    --border: #334155;
    --input: #334155;
    --ring: #cbd5e1;
    --sidebar: #1e293b;
    --sidebar-foreground: #f1f5f9;
    --sidebar-primary: #3b82f6;
    --sidebar-primary-foreground: #ffffff;
    --sidebar-accent: #334155;
    --sidebar-accent-foreground: #f1f5f9;
    --sidebar-border: #334155;
    --sidebar-ring: #cbd5e1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

/* Updated body background to white and violet gradient */
body {
    background: linear-gradient(135deg, #ffffff 0%, #f8f4ff 25%, #f0ebff 50%, #e9e1ff 75%, #e1d6ff 100%) !important;
    color: var(--foreground);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Keep the overlay for subtle effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(139, 92, 246, 0.05);
    /* Light violet overlay */
    backdrop-filter: blur(0px);
    z-index: -1;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 12% 12%, rgba(167, 123, 255, 0.18), transparent 22%),
        radial-gradient(circle at 88% 18%, rgba(124, 58, 237, 0.12), transparent 20%),
        radial-gradient(circle at 50% 100%, rgba(216, 180, 254, 0.16), transparent 26%);
    pointer-events: none;
    z-index: -1;
}

.bg-pattern {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.05;
    z-index: 1;
}

.bg-pattern i {
    position: absolute;
    font-size: 8rem;
}

.bg-pattern i:nth-child(1) {
    top: 5rem;
    left: 5rem;
    color: #8b5cf6;
    /* Violet color */
}

.bg-pattern i:nth-child(2) {
    bottom: 10rem;
    right: 10rem;
    color: #8b5cf6;
    /* Violet color */
    font-size: 6rem;
}

.container {
    position: relative;
    z-index: 10;
}

/* Top Bar - Updated to match violet theme */
.top-bar {
    height: var(--header-height);
    backdrop-filter: blur(16px);
    background:
        linear-gradient(135deg, rgba(53, 43, 90, 0.95) 0%, rgba(88, 47, 164, 0.9) 58%, rgba(109, 40, 217, 0.86) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 38px rgba(61, 28, 116, 0.22);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
}

.top-bar-content {
    height: 100%;
    padding: 0 0.9rem 0 0.75rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
}

.mobile-menu-button {
    display: none !important;
    width: 2.75rem;
    height: 2.75rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
    color: #ffffff;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 10px 20px rgba(28, 14, 62, 0.16);
    transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
    flex-shrink: 0;
}

.mobile-menu-button:hover {
    transform: translateY(-1px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 14px 24px rgba(28, 14, 62, 0.2);
}

.mobile-menu-button i {
    font-size: 1rem;
}

@media (min-width: 901px) {
    .mobile-menu-button {
        display: none !important;
    }

    .sidebar {
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    .sidebar-backdrop {
        display: none !important;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: auto;
    min-width: 0;
    max-width: 100%;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.logo-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.08)),
        linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.36),
        0 14px 28px rgba(31, 16, 64, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.logo-icon i {
    font-size: 1.35rem;
    color: white;
    filter: drop-shadow(0 7px 10px rgba(49, 18, 105, 0.24));
    transform: translateY(-1px);
}

.logo-text {
    min-width: 0;
    flex: 1;
}

.logo-text h1 {
    color: white;
    font-size: 1.72rem;
    line-height: 1.1;
    letter-spacing: 0.01em;
    text-shadow: 0 10px 16px rgba(28, 14, 62, 0.24);
}

.logo-text p {
    font-size: 1.18rem;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.02em;
    line-height: 1.25;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    position: relative;
    padding: 0.42rem 0.72rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    margin-left: auto;
    margin-right: 1rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 12px 24px rgba(28, 14, 62, 0.14);
}

.user-profile:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
    transform: translateY(-1px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 16px 26px rgba(28, 14, 62, 0.18);
}

.user-info {
    text-align: right;
}

.profile-email-only {
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 600;
    margin: 0;
}

.profile-chevron {
    color: #ffffff;
    transition: transform 0.25s ease;
    width: 14px;
    height: 14px;
}

.user-profile.active .profile-chevron {
    transform: rotate(180deg);
}

.student-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 160px;
    background: rgba(139, 92, 246, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    box-shadow: 0 14px 35px rgba(76, 29, 149, 0.35);
    padding: 0.45rem;
    display: none;
    z-index: 100;
}

.user-profile.active .student-dropdown-menu {
    display: block;
}

.student-dropdown-item {
    display: block;
    color: #ffffff;
    text-decoration: none;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.student-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.14);
}

.avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.3);
    overflow: hidden;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-fallback {
    color: white;
    font-weight: 600;
}

/* Layout */
.app-layout {
    display: flex;
}

/* Sidebar - Updated to match violet theme */
.sidebar {
    width: var(--sidebar-width);
    height: calc(100vh - var(--header-height));
    position: fixed;
    left: 0;
    top: var(--header-height);
    backdrop-filter: blur(16px);
    background:
        linear-gradient(180deg, rgba(53, 43, 90, 0.92) 0%, rgba(74, 40, 138, 0.88) 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.16);
    padding: 1.5rem;
    z-index: 40;
    box-shadow: 18px 0 36px rgba(48, 24, 98, 0.12);
}

.sidebar-backdrop {
    display: none;
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    height: 100%;
}

.sidebar-button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    /* Brighter white */
    border: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.01em;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.sidebar-button:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.sidebar-button.active {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    box-shadow: 0 14px 28px rgba(76, 29, 149, 0.35);
    border-color: rgba(255, 255, 255, 0.12);
}

.sidebar-button i {
    width: 2.15rem;
    height: 2.15rem;
    position: relative;
    z-index: 10;
    color: rgba(255, 255, 255, 0.9);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.8rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.04)),
        linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 8px 16px rgba(38, 16, 82, 0.14);
}

.sidebar-button span {
    position: relative;
    z-index: 10;
    flex: 1;
    min-width: 0;
    line-height: 1.35;
}

.sidebar-button.active::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border-radius: 0.75rem;
}

.sidebar-button.active i {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.1)),
        linear-gradient(145deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.08));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        0 10px 18px rgba(67, 25, 142, 0.28);
}

.sidebar-button:not(.active):hover::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    border-radius: 0.75rem;
    opacity: 1;
    transition: opacity 0.3s;
}

.sidebar-footer {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
}

.logout-button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    color: white;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.08));
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.18);
    cursor: pointer;
    font-weight: 600;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 24px rgba(31, 41, 55, 0.18);
}

.logout-button:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.12));
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(31, 41, 55, 0.24);
}

.logout-button span {
    flex: 1;
    min-width: 0;
    line-height: 1.35;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2.2rem;
    padding-top: calc(var(--header-height) + 2rem);
    margin-left: var(--sidebar-width);
    position: relative;
    z-index: 10;
}

.dashboard-shell {
    position: relative;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 239, 255, 0.9));
    border: 1px solid rgba(139, 92, 246, 0.16);
    border-radius: 1.7rem;
    padding: 1.85rem;
    box-shadow: 0 28px 54px rgba(124, 58, 237, 0.10);
    overflow: hidden;
}

.submit-shell {
    position: relative;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 239, 255, 0.9));
    border: 1px solid rgba(139, 92, 246, 0.16);
    border-radius: 1.7rem;
    padding: 1.85rem;
    box-shadow: 0 28px 54px rgba(124, 58, 237, 0.10);
    overflow: hidden;
}

.dashboard-shell::before,
.submit-shell::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(167, 123, 255, 0.16), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.3), transparent 28%);
    pointer-events: none;
}

#dashboard-page .page-header {
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

#dashboard-page .page-header h1 {
    font-size: clamp(1.9rem, 3vw, 2.55rem);
    margin-bottom: 0.5rem;
    letter-spacing: -0.04em;
    color: #241145;
}

#dashboard-page .page-header p {
    font-size: 1rem;
    line-height: 1.5;
    color: #5b21b6;
}

#view-page .page-header {
    margin-bottom: 2rem;
}

#view-page .page-header h1 {
    font-size: clamp(1.9rem, 3vw, 2.45rem);
    margin-bottom: 0.65rem;
    letter-spacing: -0.04em;
    color: #241145;
}

#view-page .page-header p {
    font-size: 1rem;
    line-height: 1.5;
    color: #5b21b6;
}

#view-page .container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Cards - Updated for new background */
.card {
    position: relative;
    backdrop-filter: blur(16px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 245, 255, 0.94));
    border: 1px solid rgba(139, 92, 246, 0.18);
    border-radius: 1.2rem;
    overflow: hidden;
    box-shadow: 0 18px 34px rgba(139, 92, 246, 0.10);
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.36), transparent 28%);
    pointer-events: none;
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.08), rgba(139, 92, 246, 0.03));
}

.card-content {
    padding: 1.5rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    transition: all 0.3s;
    background: linear-gradient(135deg, #ffffff 0%, #f8f3ff 58%, #f1e8ff 100%);
    border-radius: 1.25rem;
    border: 1px solid rgba(139, 92, 246, 0.16);
    box-shadow: 0 20px 38px rgba(124, 58, 237, 0.14);
}

.stat-card:hover {
    border-color: rgba(139, 92, 246, 0.28);
    transform: translateY(-5px);
    box-shadow: 0 28px 42px rgba(124, 58, 237, 0.2);
}

.stat-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.stat-card-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-card-label {
    font-size: 0.875rem;
    color: #2f184b;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.stat-card-value {
    color: #241145;
    font-size: 1.875rem;
    font-weight: 700;
}

.stat-icon {
    width: 4.25rem;
    height: 4.25rem;
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 28% 25%, rgba(255, 255, 255, 0.28), transparent 38%),
        linear-gradient(135deg, #9f7bff 0%, #7c3aed 55%, #5b21b6 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.24),
        0 14px 24px rgba(124, 58, 237, 0.24);
    transition: transform 0.3s;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.stat-card:hover .stat-icon {
    transform: translateY(-2px) scale(1.03);
}

.stat-icon i {
    font-size: 2rem;
    color: #ffffff;
    filter: drop-shadow(0 8px 14px rgba(49, 18, 105, 0.24));
    transform: translateY(-1px);
}

/* Table */
.table-container {
    overflow-x: auto;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(250, 247, 255, 0.94));
    border-radius: 1rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 12px 28px rgba(139, 92, 246, 0.08);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 1rem;
    text-align: left;
}

thead {
    border-bottom: 2px solid rgba(139, 92, 246, 0.1);
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.08), rgba(139, 92, 246, 0.03));
}

th {
    font-size: 0.875rem;
    color: #000000;
    /* Changed to black */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

tbody tr {
    border-bottom: 1px solid rgba(139, 92, 246, 0.05);
    transition: background-color 0.3s;
}

tbody tr:hover {
    background-color: rgba(139, 92, 246, 0.06);
}

td {
    color: #000000;
    /* Changed to black */
    font-weight: 500;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-approved {
    color: #059669;
    background-color: rgba(5, 150, 105, 0.1);
}

.status-pending {
    color: #d97706;
    background-color: rgba(217, 119, 6, 0.1);
}

.status-rejected {
    color: #dc2626;
    background-color: rgba(220, 38, 38, 0.1);
}

.college-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    color: #8b5cf6;
    background-color: rgba(139, 92, 246, 0.1);
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s;
}

tbody tr:hover .action-buttons {
    opacity: 1;
}

.action-button {
    padding: 0.5rem;
    border-radius: 0.375rem;
    border: none;
    background: none;
    cursor: pointer;
    transition: all 0.3s;
}

.action-button.view {
    color: #8b5cf6;
}

.action-button.edit {
    color: #3b82f6;
}

.action-button.delete {
    color: #ef4444;
}

.action-button:hover {
    background-color: rgba(139, 92, 246, 0.1);
}

/* Floating Button */
.floating-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.4rem;
    border-radius: 1.2rem;
    background: linear-gradient(135deg, #9f67ff, #7c3aed 58%, #5b21b6);
    color: white;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 20px 25px -5px rgba(139, 92, 246, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    z-index: 100;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.floating-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 28px 50px -12px rgba(139, 92, 246, 0.6);
}

/* Form Elements */
.form-container {
    max-width: 100%;
    margin: 0 auto;
}

.form-title {
    margin-bottom: 2rem;
}

.form-title h1 {
    color: #000000;
    margin-bottom: 0.5rem;
    font-size: clamp(1.85rem, 3vw, 2.45rem);
    letter-spacing: -0.04em;
}

.form-title p {
    color: #000000;
    opacity: 0.7;
    font-size: 1rem;
}

.form-card {
    padding: 2rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(250, 246, 255, 0.95));
    border-radius: 1.25rem;
    box-shadow: 0 18px 34px rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.12);
}

#submit-page .form-container {
    max-width: 1100px;
}

#submit-page #thesis-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 1.5rem;
    align-items: start;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(246, 239, 255, 0.72));
    border: 1px solid rgba(139, 92, 246, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.date-field {
    position: relative;
}

.date-field .form-input {
    padding-right: 3rem;
}

.native-date-picker {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 1px;
    height: 1px;
}

.date-picker-toggle {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #8b5cf6;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.25rem;
}

#submit-page #thesis-form>.form-grid,
#submit-page #thesis-form>.form-group:nth-of-type(1),
#submit-page #thesis-form>.form-group:nth-of-type(2),
#submit-page #thesis-form>.submit-button {
    grid-column: 1 / -1;
}

#submit-page #thesis-form>.form-group:nth-of-type(1),
#submit-page #thesis-form>.form-group:nth-of-type(2) {
    margin-bottom: 0;
}

#submit-page #thesis-form>.form-group:nth-of-type(5),
#submit-page #thesis-form>.form-group:nth-of-type(6) {
    grid-column: 1 / -1;
}

#submit-page #thesis-form>.form-group:nth-of-type(5) {
    order: 5;
}

#submit-page #thesis-form>.form-group:nth-of-type(6) {
    order: 6;
}

#submit-page #thesis-form>.submit-button {
    order: 7;
}

label {
    color: #000000;
    /* Changed to black */
    font-weight: 600;
}

/* Form Inputs */
.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(139, 92, 246, 0.18);
    border-radius: 0.85rem;
    background: linear-gradient(180deg, #ffffff, #f8f4ff);
    color: #000000;
    font-size: 0.875rem;
    transition: all 0.3s;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 6px 16px rgba(139, 92, 246, 0.05);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #9ca3af;
}

.form-textarea {
    min-height: 5rem;
    resize: vertical;
}

.form-file-input {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(139, 92, 246, 0.18);
    border-radius: 0.85rem;
    background: linear-gradient(180deg, #ffffff, #f8f4ff);
    color: #000000;
    transition: all 0.3s;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 6px 16px rgba(139, 92, 246, 0.05);
}

.form-file-input:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.file-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #2f4f6f;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.submit-button {
    width: 100%;
    min-height: 62px;
    background:
        radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.22), transparent 26%),
        linear-gradient(135deg, #b38bff 0%, #8b5cf6 48%, #6d28d9 100%);
    color: white;
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    cursor: pointer;
    font-weight: 700;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.24),
        0 10px 0 #4c1d95,
        0 20px 34px rgba(124, 58, 237, 0.28);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
}

.submit-button:hover {
    background:
        radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.26), transparent 26%),
        linear-gradient(135deg, #c29bff 0%, #9d72ff 42%, #7c3aed 100%);
    transform: translateY(-3px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        0 12px 0 #4c1d95,
        0 24px 38px rgba(139, 92, 246, 0.34);
}

.submit-button:active {
    transform: translateY(4px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 5px 0 #4c1d95,
        0 12px 20px rgba(124, 58, 237, 0.24);
}

.submit-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.spinner {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Success Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.modal-content {
    background-color: white;
    border-radius: 0.75rem;
    padding: 2rem;
    max-width: 28rem;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-icon {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.5);
}

.modal-icon i {
    font-size: 2.5rem;
    color: white;
}

.modal-content h2 {
    color: #000000;
    /* Changed to black */
    margin-bottom: 0.5rem;
}

.modal-content p {
    color: #000000;
    /* Changed to black */
    opacity: 0.7;
}

/* Profile Page */
.profile-container {
    max-width: 64rem;
    margin: 0 auto;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .profile-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.profile-card {
    padding: 1.5rem;
    text-align: center;
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.1);
}

.profile-avatar {
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    margin: 0 auto 1rem;
    border: 4px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
    overflow: hidden;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
}

.profile-info h2 {
    color: #000000;
    /* Changed to black */
    margin-bottom: 0.25rem;
}

.profile-info p {
    color: #8b5cf6;
}

.info-card {
    padding: 1.5rem;
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.1);
}

.info-card h3 {
    color: #000000;
    /* Changed to black */
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    background-color: rgba(139, 92, 246, 0.05);
    margin-bottom: 1rem;
    border: 1px solid rgba(139, 92, 246, 0.1);
}

.info-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-icon.user {
    background-color: rgba(139, 92, 246, 0.1);
}

.info-icon.mail {
    background-color: rgba(59, 130, 246, 0.1);
}

.info-icon.building {
    background-color: rgba(192, 132, 252, 0.1);
}

.info-icon.award {
    background-color: rgba(16, 185, 129, 0.1);
}

.info-icon i {
    font-size: 1.25rem;
}

.info-icon.user i {
    color: #8b5cf6;
}

.info-icon.mail i {
    color: #3b82f6;
}

.info-icon.building i {
    color: #c084fc;
}

.info-icon.award i {
    color: #10b981;
}

.info-content p:first-child {
    font-size: 0.875rem;
    color: #000000;
    /* Changed to black */
    opacity: 0.7;
}

.info-content p:last-child {
    color: #000000;
    /* Changed to black */
    font-weight: 500;
}

/* ===== FILTERS SECTION ===== */
.filters-section {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(250, 245, 255, 0.95));
    border-radius: 1.2rem;
    border: 1px solid rgba(139, 92, 246, 0.16);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 18px 34px rgba(139, 92, 246, 0.10);
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.filters-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .filters-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Search Input */
.search-container {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #7c3aed;
    width: 1.25rem;
    height: 1.25rem;
    filter: drop-shadow(0 4px 8px rgba(124, 58, 237, 0.16));
}

.search-input {
    width: 100%;
    padding-left: 2.5rem;
    padding-right: 1rem;
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
    background: linear-gradient(180deg, #ffffff, #f8f4ff);
    border: 1px solid rgba(139, 92, 246, 0.16);
    border-radius: 0.85rem;
    color: #000000;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 8px 18px rgba(139, 92, 246, 0.05);
}

.search-input::placeholder {
    color: #9ca3af;
}

.search-input:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

/* Select Inputs */
.select-input {
    width: 100%;
    padding: 0.625rem 1rem;
    background-color: white;
    border: 1px solid rgba(139, 92, 246, 0.16);
    border-radius: 0.85rem;
    color: #000000;
    font-size: 0.875rem;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%238b5cf6'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 8px 18px rgba(139, 92, 246, 0.05);
}

.select-input:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.select-input:hover {
    border-color: #8b5cf6;
}

.select-input option {
    background-color: white;
    color: #000000;
    /* Changed to black */
    padding: 10px;
}

.select-input option:checked {
    background-color: #8b5cf6;
    color: white;
}

.select-input option:hover {
    background-color: rgba(139, 92, 246, 0.1);
}

/* Filter Labels */
.filter-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #000000;
    /* Changed to black */
    font-size: 0.875rem;
    font-weight: 600;
}

.filter-group {
    margin-bottom: 0;
}

/* Clear Filters Button */
.clear-filters-container {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

.clear-filters-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid #fecaca;
    color: #dc2626;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-filters-btn:hover {
    background-color: rgba(239, 68, 68, 0.2);
    border-color: #fca5a5;
    color: #b91c1c;
}

.clear-filters-btn i {
    font-size: 1rem;
}

/* Results Count */
.results-count {
    color: #000000;
    /* Changed to black */
    font-size: 0.875rem;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

.results-count strong {
    color: #000000;
    /* Changed to black */
    font-weight: 700;
}

/* Thesis Grid */
.theses-grid {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Thesis Card */
.thesis-card {
    position: relative;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 244, 255, 0.96));
    border-radius: 0.45rem;
    border: 1px solid rgba(139, 92, 246, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.05);
    width: 100%;
}

.thesis-card:hover {
    border-color: #8b5cf6;
    transform: none;
    box-shadow: 0 4px 8px rgba(139, 92, 246, 0.08);
}

.thesis-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), transparent 24%);
    pointer-events: none;
}

.card-header {
    padding: 0.4rem 0.5rem;
    background-color: rgba(139, 92, 246, 0.04);
    border-bottom: none;
    border-right: 1px solid rgba(139, 92, 246, 0.08);
    width: min(28%, 14rem);
    display: flex;
    align-items: center;
}

.card-title {
    color: #000000;
    /* Changed to black */
    font-weight: 700;
    font-size: 0.84rem;
    line-height: 1.2;
    margin: 0;
}

.card-body {
    padding: 0.4rem 0.5rem;
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.4rem;
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

/* Card Info */
.card-info {
    display: flex;
    align-items: center;
    gap: 0.18rem;
    color: #000000;
    /* Changed to black */
    font-size: 0.76rem;
    opacity: 0.8;
    flex-wrap: wrap;
}

.card-info i {
    color: #8b5cf6;
    width: 0.7rem;
    height: 0.7rem;
    font-size: 0.72rem;
}

.card-program {
    font-size: 0.76rem;
    margin-top: 0;
    line-height: 1.2;
}

.card-program strong {
    color: #000000;
    /* Changed to black */
    font-weight: 600;
}

.card-program span {
    color: #000000;
    /* Changed to black */
    opacity: 0.7;
}

.card-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 7rem;
}

/* Preview Button */
.preview-button {
    width: 100%;
    min-width: 6.4rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0) 36%),
        linear-gradient(135deg, #b794ff 0%, #8b5cf6 42%, #6d28d9 78%, #4c1d95 100%);
    border: 1px solid rgba(91, 33, 182, 0.5);
    color: white;
    padding: 0.48rem 0.72rem;
    border-radius: 0.68rem;
    font-size: 0.76rem;
    letter-spacing: 0.01em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 0;
    cursor: pointer;
    font-weight: 700;
    text-shadow: 0 1px 1px rgba(49, 18, 97, 0.35);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.34),
        inset 0 -2px 0 rgba(49, 18, 97, 0.22),
        0 5px 0 #4c1d95,
        0 10px 18px rgba(109, 40, 217, 0.28);
    position: relative;
    top: 0;
}

.preview-button i {
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
    font-size: 0.7rem;
}

.preview-button:hover {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 36%),
        linear-gradient(135deg, #c4a4ff 0%, #9f72ff 42%, #7c3aed 78%, #5b21b6 100%);
    transform: translateY(1px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.34),
        inset 0 -2px 0 rgba(49, 18, 97, 0.2),
        0 4px 0 #4c1d95,
        0 8px 14px rgba(109, 40, 217, 0.24);
}

.preview-button:active {
    transform: translateY(3px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        inset 0 -1px 0 rgba(49, 18, 97, 0.18),
        0 2px 0 #4c1d95,
        0 5px 10px rgba(109, 40, 217, 0.18);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    background-color: white;
    border-radius: 0.75rem;
    border: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.1);
}

.empty-state p {
    color: #000000;
    /* Changed to black */
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.empty-state .subtext {
    color: #000000;
    /* Changed to black */
    opacity: 0.7;
    font-size: 0.875rem;
}

@media (max-width: 900px) {
    .thesis-card {
        flex-direction: column;
    }

    .card-header {
        width: auto;
        border-right: none;
        border-bottom: 1px solid rgba(139, 92, 246, 0.1);
    }

    .card-body {
        flex-direction: column;
        align-items: stretch;
    }

    .card-actions {
        min-width: 0;
        width: 100%;
    }

    .preview-button {
        margin-top: 0.25rem;
    }
}

/* Modal Styles */
.modal {
    position: fixed;
    inset: 0;
    z-index: 50000;
    overflow: hidden;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.34);
    backdrop-filter: blur(10px);
    z-index: 0;
    transition: opacity 0.3s ease;
}

body.preview-modal-open .top-bar,
body.preview-modal-open .sidebar,
body.preview-modal-open .main-content>*:not(#preview-modal) {
    filter: none;
}

.modal-container {
    position: absolute;
    inset: 0;
    overflow-y: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    z-index: 1;
}

#preview-modal .modal-content {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.preview-modal-panel {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(139, 92, 246, 0.2);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
    isolation: isolate;
}

/* Modal Header */
.modal-header {
    background-color: rgba(139, 92, 246, 0.05);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: 0.75rem 0.75rem 0 0;
}

.modal-header-content {
    flex: 1;
    padding-right: 1rem;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #000000;
    /* Changed to black */
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    color: #000000;
    /* Changed to black */
    opacity: 0.7;
    font-size: 0.875rem;
}

.modal-close {
    flex-shrink: 0;
    color: #5b21b6;
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.12), rgba(139, 92, 246, 0.05));
    border: none;
    cursor: pointer;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease, transform 0.3s ease, background 0.3s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.modal-close:hover {
    color: #4c1d95;
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.18), rgba(139, 92, 246, 0.08));
    transform: translateY(-1px);
}

/* Modal Body */
.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.preview-modal-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.preview-content-row {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.preview-document-section {
    min-width: 0;
}

.preview-abstract-section {
    margin-bottom: 0;
}

/* Thesis Info Grid */
.thesis-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    justify-items: center;
}

@media (min-width: 768px) {
    .thesis-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.info-item {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-radius: 0.5rem;
    background-color: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.1);
    text-align: center;
    width: min(100%, 28rem);
    margin: 0 auto;
}

.info-item-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.info-item i {
    color: #8b5cf6;
    font-size: 1.2rem;
    width: 1.25rem;
    height: 1.25rem;
    filter: drop-shadow(0 4px 8px rgba(124, 58, 237, 0.14));
}

.info-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #000000;
    /* Changed to black */
    opacity: 0.7;
    margin-bottom: 0.25rem;
}

.info-value {
    color: #000000;
    /* Changed to black */
    font-weight: 600;
}

/* Members Section */
.members-section {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: min(100%, 36rem);
    margin-top: 0.75rem;
}

.members-section-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.members-heading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.members-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.members-heading i {
    color: #7c3aed;
    font-size: 1.2rem;
    filter: drop-shadow(0 4px 8px rgba(124, 58, 237, 0.14));
}

.members-heading .info-label {
    margin-bottom: 0;
}

.member-tag {
    background-color: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Abstract Section */
.section-title {
    font-size: 1.125rem;
    font-weight: bold;
    color: #000000;
    /* Changed to black */
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title i {
    color: #8b5cf6;
    width: 1.25rem;
    height: 1.25rem;
}

.abstract-content {
    background-color: rgba(139, 92, 246, 0.05);
    border-radius: 0.5rem;
    padding: 1.25rem;
    border: 1px solid rgba(139, 92, 246, 0.1);
    min-height: 100%;
}

.abstract-text {
    color: #000000;
    /* Changed to black */
    line-height: 1.6;
    text-align: justify;
}

/* PDF Viewer */
.pdf-viewer-container {
    background-color: #f9fafb;
    border-radius: 0.5rem;
    border: 2px solid rgba(139, 92, 246, 0.2);
    overflow: hidden;
    min-height: 100%;
}

.pdf-iframe {
    width: 100%;
    height: min(68vh, 820px);
    border: none;
}

.pdf-empty-state {
    min-height: 14rem;
    border: 2px dashed rgba(139, 92, 246, 0.22);
    border-radius: 0.75rem;
    background-color: rgba(139, 92, 246, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem 1.5rem;
    text-align: center;
    color: #5b6472;
}

.pdf-empty-state i {
    font-size: 2.5rem;
    color: #8b5cf6;
    filter: drop-shadow(0 8px 14px rgba(124, 58, 237, 0.18));
}

.pdf-note {
    text-align: center;
    font-size: 0.875rem;
    color: #000000;
    /* Changed to black */
    opacity: 0.7;
    margin-top: 0.75rem;
}

.repository-viewer-panel {
    min-height: 100%;
}

.repository-viewer-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 0;
}

.repository-viewer-meta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.repository-viewer-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: #f3e8ff;
    color: #6b21a8;
    font-size: 0.85rem;
    font-weight: 600;
}

.repository-viewer-frame {
    flex: 1;
    min-height: 0;
    display: flex;
}

.repository-viewer-frame .pdf-viewer-container,
.repository-viewer-frame .pdf-empty-state {
    width: 100%;
}

.repository-viewer-frame .pdf-viewer-container {
    min-height: 78vh;
}

.repository-viewer-frame .pdf-iframe {
    height: 78vh;
}


/* Modal Footer */
.modal-footer {
    border-top: 1px solid rgba(139, 92, 246, 0.1);
    padding: 1rem 1.5rem;
    background-color: rgba(139, 92, 246, 0.05);
    border-radius: 0 0 0.75rem 0.75rem;
}

.close-button {
    width: 100%;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(124, 58, 237, 0.22);
}

.close-button:hover {
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(124, 58, 237, 0.3);
}

@media (min-width: 640px) {
    .close-button {
        width: auto;
    }
}

/* Edit Form Styles */
.edit-form {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.edit-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.edit-form label {
    color: #000000;
    /* Changed to black */
    font-weight: 600;
    font-size: 0.875rem;
}

.edit-form .form-input,
.edit-form .form-select {
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background-color: white;
    color: #000000;
    /* Changed to black */
    transition: all 0.3s;
}

.edit-form .form-input:focus,
.edit-form .form-select:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.edit-form .form-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .edit-form .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

.cancel-button {
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(139, 92, 246, 0.25);
    background: linear-gradient(135deg, #ffffff, #f6f0ff);
    color: #4c1d95;
    border-radius: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 8px 18px rgba(124, 58, 237, 0.08);
}

.cancel-button:hover {
    background: linear-gradient(135deg, #faf5ff, #ede9fe);
    border-color: rgba(139, 92, 246, 0.35);
    transform: translateY(-2px);
}

.save-button {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    border: none;
    border-radius: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 10px 24px rgba(124, 58, 237, 0.22);
}

.save-button:hover {
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(124, 58, 237, 0.3);
}

/* Detail Modal */
.detail-modal-content {
    background: white;
    padding: 20px;
    border-radius: 0.75rem;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    color: #000000;
    /* Changed to black */
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.close-modal {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #000000;
    /* Changed to black */
}

.close-modal:hover {
    color: #374151;
}

.detail-label {
    font-weight: bold;
    color: #000000;
    /* Changed to black */
    text-align: right;
    padding-right: 15px;
    white-space: nowrap;
}

.detail-value {
    color: #000000;
    /* Changed to black */
    word-break: break-word;
}

.thesis-details-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 12px;
    align-items: start;
}

.detail-item {
    display: contents;
}

.help-text {
    color: #000000;
    /* Changed to black */
    opacity: 0.5;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* Error state for form validation */
.error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

/* ===== ABSTRACT & THESIS UPLOAD SECTIONS ===== */
.upload-section {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border: 1px solid #e4ebf3;
    border-radius: 0.75rem;
    padding: 1.25rem 1.25rem 1.1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 3px 10px rgba(33, 56, 82, 0.06);
}

.upload-section:hover {
    border-color: #d5e0ec;
    box-shadow: 0 5px 14px rgba(33, 56, 82, 0.08);
}

.upload-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.upload-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    background:
        radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.9), transparent 34%),
        linear-gradient(145deg, #f6f0ff, #e8dbff);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(139, 92, 246, 0.14);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 10px 20px rgba(139, 92, 246, 0.1);
}

.upload-icon i {
    font-size: 1.5rem;
    color: #7c3aed;
    filter: drop-shadow(0 5px 8px rgba(124, 58, 237, 0.18));
}

.upload-title {
    font-size: 1.125rem;
    color: #1f2a37;
    font-weight: 700;
    margin-bottom: 0.15rem;
    line-height: 1.2;
}

.upload-subtitle {
    font-size: 0.875rem;
    color: #6f7f8f;
    line-height: 1.35;
}

/* File upload specific styles */
.file-upload-container {
    position: relative;
    margin-bottom: 1rem;
}

.file-input {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.file-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    box-shadow: 0 4px 6px -1px rgba(139, 92, 246, 0.3);
}

.file-label:hover {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(139, 92, 246, 0.4);
}

.file-preview-container {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f5f8fb;
    border: 1px solid #dbe5ef;
    border-radius: 0.5rem;
    display: none;
}

.file-preview-container.active {
    display: block;
}

.file-preview {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 0.375rem;
    background-color: #ffffff;
    border: 1px solid #e4ebf2;
}

.file-preview-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.9rem;
    background:
        radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.34), transparent 32%),
        linear-gradient(135deg, #8f6dff, #5b8dff);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        0 10px 20px rgba(91, 141, 255, 0.18);
}

.file-preview-icon i {
    font-size: 1.5rem;
    color: white;
    filter: drop-shadow(0 6px 10px rgba(41, 68, 132, 0.2));
}

.file-preview-info {
    flex: 1;
    min-width: 0;
}

.file-preview-name {
    font-size: 0.875rem;
    color: #1b2633;
    font-weight: 600;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-preview-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #6c7a89;
}

.file-preview-size {
    padding-right: 0.5rem;
    border-right: 1px solid #e5e7eb;
}

.file-preview-remove {
    margin-left: auto;
    padding: 0.375rem;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-radius: 0.375rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.file-preview-remove:hover {
    background: rgba(239, 68, 68, 0.2);
}

/* Button Group */
.button-group {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.upload-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.5rem;
    background: linear-gradient(135deg, #eff6fd, #e2eef9);
    color: #244766;
    border: 1px solid #bfd3e6;
    border-radius: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(55, 98, 141, 0.12);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.upload-btn:hover {
    background: linear-gradient(135deg, #e8f2fb, #d7e8f7);
    border-color: #aec8e0;
    color: #1e3e59;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(55, 98, 141, 0.16);
}

.upload-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(55, 98, 141, 0.12);
}

#abstractUploadBtn.btn.btn-primary,
#thesisUploadBtn.btn.btn-primary {
    background: linear-gradient(135deg, #ffffff, #f3e8ff);
    color: #5b21b6;
    border: 1px solid rgba(139, 92, 246, 0.22);
    box-shadow: 0 8px 18px rgba(124, 58, 237, 0.12);
    font-weight: 600;
    border-radius: 0.9rem;
    min-height: 46px;
    padding: 0.82rem 1.2rem;
    width: fit-content;
    max-width: 100%;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    line-height: 1.2;
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    position: relative;
    -webkit-appearance: none;
    appearance: none;
}

#abstractUploadBtn.btn.btn-primary i,
#thesisUploadBtn.btn.btn-primary i {
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.12);
    color: #6d28d9;
    font-size: 0.85rem;
}

#abstractUploadBtn.btn.btn-primary:hover,
#thesisUploadBtn.btn.btn-primary:hover {
    background: linear-gradient(135deg, #faf5ff, #ede9fe);
    border-color: rgba(139, 92, 246, 0.32);
    color: #4c1d95;
    box-shadow: 0 12px 24px rgba(124, 58, 237, 0.18);
    transform: translateY(-2px);
}

#abstractUploadBtn.btn.btn-primary:active,
#thesisUploadBtn.btn.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(55, 98, 141, 0.12);
}

#abstractUploadBtn.btn.btn-primary:focus-visible,
#thesisUploadBtn.btn.btn-primary:focus-visible {
    outline: 3px solid rgba(125, 166, 201, 0.45);
    outline-offset: 2px;
}

/* Strong override so upload buttons never fall back to plain browser style */
.upload-section #abstractUploadBtn,
.upload-section #thesisUploadBtn {
    -webkit-appearance: none !important;
    appearance: none !important;
    text-decoration: none !important;
    font-size: 0.98rem !important;
    font-family: inherit !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em !important;
    line-height: 1.2 !important;
    border-radius: 0.78rem !important;
    padding: 0.82rem 1.18rem !important;
    min-height: 47px !important;
    max-width: 100% !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    border: 1px solid #b8cee3 !important;
    background: linear-gradient(135deg, #edf6ff, #deecfa) !important;
    color: #1f4364 !important;
    box-shadow: 0 5px 14px rgba(55, 98, 141, 0.14) !important;
}

.upload-section #thesisUploadBtn {
    border-color: #aac4db !important;
    background: linear-gradient(135deg, #e8f3ff, #d6e9fb) !important;
}

.upload-section #abstractUploadBtn:hover,
.upload-section #thesisUploadBtn:hover {
    background: linear-gradient(135deg, #e2f0fd, #cfe4f8) !important;
    border-color: #9ebcd7 !important;
    color: #173854 !important;
    box-shadow: 0 8px 18px rgba(55, 98, 141, 0.18) !important;
}

.no-file {
    margin: 0.35rem 0 0.6rem;
    padding: 0.7rem 0.85rem;
    border: 1px dashed #d8e5f2;
    background: #f8fbff;
    border-radius: 0.6rem;
    color: #5e6f80;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
}

.no-file p {
    margin: 0;
}

.no-file-icon {
    color: #8b5cf6;
    filter: drop-shadow(0 6px 12px rgba(124, 58, 237, 0.16));
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.text-white {
    color: white;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.flex-col {
    flex-direction: column;
}

.flex-1 {
    flex: 1;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.min-h-screen {
    min-height: 100vh;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.z-10 {
    z-index: 10;
}

.z-50 {
    z-index: 50;
}

.overflow-hidden {
    overflow: hidden;
}

.overflow-x-auto {
    overflow-x: auto;
}

.pointer-events-none {
    pointer-events: none;
}

.transition-all {
    transition: all 0.3s;
}

.transition-colors {
    transition: color 0.3s, background-color 0.3s;
}

.transition-opacity {
    transition: opacity 0.3s;
}

.transition-transform {
    transition: transform 0.3s;
}

.backdrop-blur-xl {
    backdrop-filter: blur(16px);
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.rounded-md {
    border-radius: 0.375rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-2xl {
    border-radius: 1rem;
}

.rounded-full {
    border-radius: 9999px;
}

.p-2 {
    padding: 0.5rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.ml-64 {
    margin-left: var(--sidebar-width);
}

.opacity-0 {
    opacity: 0;
}

.opacity-50 {
    opacity: 0.5;
}

#submit-page .upload-section {
    height: 100%;
}

/* Mobile/Tablet Resizing */
@media (max-width: 900px) {
    .mobile-menu-button {
        display: inline-flex !important;
    }

    .app-layout {
        display: block;
    }

    .container {
        width: 100%;
        max-width: 100%;
    }

    .top-bar {
        width: 100%;
        overflow: hidden;
    }

    .top-bar-content {
        width: 100%;
        padding-inline: 0.75rem;
        gap: 0.55rem;
        min-width: 0;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-areas: "menu title profile";
        align-items: center;
    }

    .mobile-menu-button {
        grid-area: menu;
    }

    .logo {
        grid-area: title;
        gap: 0.75rem;
        min-width: 0;
        max-width: 100%;
        width: 100%;
        overflow: hidden;
    }

    .logo-icon {
        width: 2.35rem;
        height: 2.35rem;
        border-radius: 0.9rem;
    }

    .logo-text h1 {
        font-size: 0.95rem;
        line-height: 1.12;
        white-space: normal;
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .logo-text p {
        font-size: 0.68rem;
        line-height: 1.1;
        white-space: normal;
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 1;
    }

    .user-profile {
        grid-area: profile;
        padding: 0.2rem;
        gap: 0;
        margin-right: 0;
        margin-left: 0;
        flex-shrink: 0;
        justify-self: end;
    }

    .mobile-menu-button {
        flex-shrink: 0;
        justify-self: start;
    }

    .profile-email-only,
    .profile-chevron {
        display: none;
    }

    .profile-avatar {
        width: 2.2rem;
        height: 2.2rem;
    }

    .profile-avatar i {
        font-size: 1.2rem;
    }

    .sidebar {
        display: block !important;
        top: var(--header-height);
        left: 0;
        right: auto;
        bottom: 0;
        width: min(84vw, 320px);
        max-width: min(84vw, 320px);
        height: calc(100vh - var(--header-height));
        padding: 1rem 0.9rem 1rem;
        border-right: 1px solid rgba(255, 255, 255, 0.16);
        border-radius: 0;
        box-shadow: 24px 0 42px rgba(48, 24, 98, 0.2);
        overflow-y: auto;
        transform: translateX(-108%) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transition: transform 0.32s ease, opacity 0.25s ease, visibility 0.25s ease, box-shadow 0.32s ease;
        z-index: 70;
    }

    .sidebar.mobile-open {
        display: block !important;
        transform: translateX(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    .sidebar nav {
        flex-direction: column;
        gap: 0.75rem;
        height: 100%;
        overflow: visible;
    }

    .sidebar-button,
    .logout-button {
        width: 100%;
        flex: 0 0 auto;
        flex-direction: row;
        justify-content: flex-start;
        gap: 0.75rem;
        min-height: 3.45rem;
        padding: 0.9rem 1rem;
        border-radius: 1rem;
        text-align: left;
    }

    .sidebar-button i,
    .logout-button i {
        flex-shrink: 0;
        width: 2.05rem;
        height: 2.05rem;
    }

    .sidebar-button span,
    .logout-button span {
        font-size: 0.95rem;
        white-space: normal;
        word-break: break-word;
        line-height: 1.25;
    }

    .sidebar-backdrop {
        display: block;
        position: fixed;
        inset: var(--header-height) 0 0 0;
        background: rgba(9, 11, 26, 0.52);
        backdrop-filter: blur(4px);
        z-index: 60;
    }

    body.student-sidebar-open {
        overflow: hidden;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding-inline: 0.85rem;
        padding-top: calc(var(--header-height) + 1rem);
    }

    .page,
    #dashboard-page,
    #submit-page,
    #view-page {
        width: 100%;
        max-width: 100%;
    }

    .dashboard-shell,
    .submit-shell,
    .repository-shell,
    #view-page .container,
    .filters-section,
    .theses-grid,
    .table-container {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .dashboard-shell,
    .submit-shell,
    .repository-shell {
        padding: 1rem;
        border-radius: 1rem;
    }

    .dashboard-shell,
    .submit-shell,
    .repository-shell,
    .card,
    .form-card,
    .filters-section,
    .theses-grid,
    .thesis-card {
        min-width: 0;
    }

    .card,
    .form-card {
        border-radius: 1rem;
    }

    .card {
        width: 100%;
    }

    #view-page .container {
        padding-inline: 0;
    }

    .filters-section {
        padding: 1rem;
    }

    .stat-card {
        padding: 1.15rem;
    }

    .stat-card-header {
        gap: 0.85rem;
    }

    .stat-icon {
        width: 3.5rem;
        height: 3.5rem;
    }

    .stat-icon i {
        font-size: 1.5rem;
    }

    .table-container {
        overflow-x: auto;
    }

    .floating-button {
        right: 1rem;
        bottom: 1rem;
    }

    #submit-page #thesis-form {
        grid-template-columns: 1fr;
    }

    #submit-page #thesis-form>.form-group:nth-of-type(5),
    #submit-page #thesis-form>.form-group:nth-of-type(6) {
        grid-column: 1 / -1;
    }

    .upload-section {
        grid-template-columns: 1fr;
    }

    .upload-header {
        margin-bottom: 1rem;
    }

    .upload-section>.file-status,
    .upload-section>.no-file,
    .upload-section>.button-group,
    .upload-section>.file-preview-container,
    .upload-section>.error-message {
        grid-column: auto;
    }

    .upload-section>.file-preview-container {
        margin-top: 1rem;
    }

    #preview-modal .modal-container {
        top: calc(var(--header-height) + 0.5rem);
        left: 0.5rem;
        right: 0.5rem;
        bottom: 0.5rem;
    }

    .pdf-iframe {
        height: 58vh;
    }
}

@media (max-width: 640px) {
    :root {
        --header-height: 74px;
    }

    .top-bar {
        height: 74px;
    }

    .top-bar-content {
        height: 74px;
        padding-inline: 0.6rem;
        gap: 0.3rem;
        grid-template-columns: 2.35rem minmax(0, 1fr) 2rem;
        grid-template-areas: "menu title profile";
    }

    .logo-text h1 {
        font-size: 0.8rem;
        line-height: 1.08;
    }

    .logo-text p {
        font-size: 0.56rem;
        line-height: 1.05;
    }

    .logo-icon {
        width: 1.8rem;
        height: 1.8rem;
    }

    .mobile-menu-button {
        width: 2.35rem;
        height: 2.35rem;
        border-radius: 0.8rem;
    }

    .profile-avatar {
        width: 2rem;
        height: 2rem;
    }

    .profile-avatar i {
        font-size: 1rem;
    }

    .logo {
        gap: 0.4rem;
        max-width: 100%;
    }

    .logo-text {
        min-width: 0;
    }

    .logo-text h1,
    .logo-text p {
        word-break: break-word;
    }

    .user-profile {
        justify-content: flex-end;
    }

    .sidebar {
        width: min(88vw, 300px);
        max-width: min(88vw, 300px);
        padding: 0.9rem 0.8rem 1rem;
    }

    .sidebar nav {
        gap: 0.6rem;
    }

    .sidebar-button,
    .logout-button {
        min-height: 3.2rem;
        padding: 0.82rem 0.9rem;
    }

    .sidebar-button span,
    .logout-button span {
        font-size: 0.88rem;
    }

    .main-content {
        padding-top: calc(var(--header-height) + 0.85rem);
        padding-inline: 0.55rem;
    }

    .dashboard-shell,
    .submit-shell,
    .repository-shell {
        padding: 0.8rem;
        border-radius: 0.85rem;
    }

    .filters-section,
    .card-header,
    .card-content {
        padding: 0.9rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-card-label {
        font-size: 0.78rem;
    }

    .stat-card-value {
        font-size: 1.55rem;
    }

    #dashboard-page .page-header h1,
    #view-page .page-header h1,
    .form-title h1 {
        font-size: 1.35rem;
        line-height: 1.12;
    }

    #dashboard-page .page-header p,
    #view-page .page-header p,
    .form-title p {
        font-size: 0.84rem;
        line-height: 1.35;
    }

    th,
    td {
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .top-bar-content {
        grid-template-columns: 2.2rem minmax(0, 1fr) 1.95rem;
        grid-template-areas: "menu title profile";
        padding-inline: 0.5rem;
    }

    .logo {
        gap: 0.35rem;
    }

    .logo-icon {
        width: 1.65rem;
        height: 1.65rem;
        border-radius: 0.7rem;
    }

    .logo-text h1 {
        font-size: 0.72rem;
    }

    .logo-text p {
        display: none;
    }

    .mobile-menu-button {
        width: 2.2rem;
        height: 2.2rem;
    }

    .top-bar .profile-avatar {
        width: 1.95rem;
        height: 1.95rem;
    }

    .main-content {
        padding-inline: 0.45rem;
    }

    .dashboard-shell,
    .submit-shell,
    .repository-shell {
        padding: 0.7rem;
    }
}


.profile-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.profile-avatar i {
    font-size: 1.5rem;
    color: white;
}

@media (max-width: 900px) {
    .top-bar .profile-avatar {
        width: 2.2rem;
        height: 2.2rem;
        margin: 0;
        border-width: 2px;
    }

    .top-bar .profile-avatar i {
        font-size: 1.2rem;
    }
}

@media (max-width: 640px) {
    .top-bar .profile-avatar {
        width: 2rem;
        height: 2rem;
    }

    .top-bar .profile-avatar i {
        font-size: 1rem;
    }
}