@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,300;14..32,400;14..32,500;14..32,600;14..32,700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
    background: linear-gradient(135deg, #eef2f5 0%, #e0e8f0 100%);
    min-height: 100vh;
    line-height: 1.5;
    color: #1e293b;
    font-size: 16px;
    animation: bgPulse 15s ease infinite alternate;
}

@keyframes bgPulse {
    0% { background: linear-gradient(135deg, #eef2f5 0%, #e0e8f0 100%); }
    100% { background: linear-gradient(135deg, #e2eaf1 0%, #d0dce8 100%); }
}

.university-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    padding: 0 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.top-bar {
    background: rgba(0, 43, 73, 0.9);
    backdrop-filter: blur(5px);
    color: rgba(255,255,255,0.9);
    font-size: 0.7rem;
    padding: 6px 24px;
    display: flex;
    justify-content: flex-end;
}

.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 16px 0;
    gap: 16px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.logo-icon {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.logo-icon svg {
    width: 80px;
    height: 80px;
}

.title-text h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #002b49;
    letter-spacing: -0.3px;
}

.title-text p {
    font-size: 0.75rem;
    color: #4a6a85;
    font-weight: 400;
    margin-top: 4px;
    border-left: 3px solid #d4af37;
    padding-left: 12px;
}

.user-welcome {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(248, 250, 252, 0.9);
    backdrop-filter: blur(5px);
    padding: 6px 18px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
}

.user-info {
    font-weight: 700;
    color: #002b49;
    background: rgba(0, 43, 73, 0.08);
    padding: 4px 12px;
    border-radius: 30px;
}

.logout-btn {
    background: rgba(0, 43, 73, 0.05);
    border: none;
    padding: 5px 14px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
}
.logout-btn:hover {
    background: #002b49;
    color: white;
    transform: translateY(-1px);
}

.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 28, 48, 0.94);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.auth-card {
    background: white;
    max-width: 440px;
    width: 90%;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.2);
}

.auth-header {
    background: #002b49;
    padding: 28px;
    text-align: center;
    color: white;
}

.auth-header h2 {
    font-weight: 600;
    font-size: 1.7rem;
    letter-spacing: -0.2px;
}

.auth-tabs {
    display: flex;
    border-bottom: 1px solid #e2eaf1;
    background: white;
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 14px;
    font-weight: 600;
    cursor: pointer;
    color: #475569;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.auth-tab.active {
    border-bottom-color: #d4af37;
    color: #002b49;
    background: #f8fafc;
}

.auth-form-container {
    padding: 28px 26px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #1e293b;
}

.input-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    font-size: 0.95rem;
    transition: all 0.2s;
    background: #fff;
}

.input-group input:focus {
    border-color: #d4af37;
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.password-wrapper {
    display: flex;
    align-items: center;
    position: relative;
}

.password-wrapper input {
    flex: 1;
    padding-right: 45px;
}

.password-wrapper button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-btn {
    background: #002b49;
    color: white;
    border: none;
    width: 100%;
    padding: 14px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    margin-top: 12px;
    transition: all 0.2s;
}

.auth-btn:hover {
    background: #d4af37;
    color: #002b49;
    transform: translateY(-2px);
}

.main-app {
    display: none;
}

.main-app.active {
    display: block;
}

.dashboard {
    max-width: 1400px;
    margin: 32px auto;
    background: transparent;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    padding: 0 24px;
}

.sidebar {
    flex: 0 0 280px;
    background: transparent;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 20px;
    cursor: pointer;
    color: #334155;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.nav-btn svg {
    width: 22px;
    height: 22px;
    stroke: #5b6e8c;
    stroke-width: 1.7;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-btn.active {
    background: rgba(0, 43, 73, 0.85);
    backdrop-filter: blur(8px);
    color: white;
    box-shadow: 0 8px 20px rgba(0, 43, 73, 0.25);
    animation: pulse 1.5s ease infinite;
}
.nav-btn.active svg {
    stroke: white;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 8px 20px rgba(0, 43, 73, 0.25); }
    50% { box-shadow: 0 8px 30px rgba(0, 43, 73, 0.45); }
}

.nav-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.85);
    color: #002b49;
    transform: translateX(5px);
    border-color: rgba(212, 175, 55, 0.5);
}
.nav-btn:hover:not(.active) svg {
    stroke: #d4af37;
    transform: rotate(5deg) scale(1.05);
}

.content {
    flex: 1;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 28px;
    padding: 32px 36px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.5);
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.section {
    display: none;
}

.section.active-section {
    display: block;
    animation: fadeSlide 0.4s ease;
}

@keyframes fadeSlide {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #002b49;
    border-left: 5px solid #d4af37;
    padding-left: 18px;
    margin-bottom: 28px;
    letter-spacing: -0.2px;
}

.doc-list, .address-list {
    background: transparent;
    list-style: none;
}

.doc-item, .address-list li {
    padding: 14px 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.address-list li {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
}
.address-list li:hover {
    transform: translateX(8px) translateY(-2px);
    background: rgba(255, 255, 255, 0.5);
    padding-left: 10px;
    border-radius: 12px;
}

.address-list strong {
    color: #002b49;
    font-weight: 700;
    white-space: nowrap;
}

.km-marker {
    display: inline-block;
    background: transparent;
    color: #002b49;
    font-weight: 700;
    font-size: 0.75rem;
    margin-left: 6px;
}

.address-list em {
    font-style: normal;
    font-weight: 700;
    background: rgba(241, 245, 249, 0.8);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    display: inline-block;
    transition: all 0.2s ease;
}

.address-list li:first-child em { background: rgba(0, 43, 73, 0.15); color: #002b49; font-weight: 700; }
.address-list li:nth-child(2) em { background: rgba(0, 43, 73, 0.12); color: #003f66; font-weight: 700; }
.address-list li:nth-child(3) em { background: rgba(212, 175, 55, 0.15); color: #9c7a2a; font-weight: 700; }
.address-list li:nth-child(4) em { background: rgba(212, 175, 55, 0.12); color: #9c7a2a; font-weight: 700; }
.address-list li:nth-child(5) em { background: rgba(212, 175, 55, 0.15); color: #9c7a2a; font-weight: 700; }
.address-list li:nth-child(6) em { background: rgba(212, 175, 55, 0.12); color: #9c7a2a; font-weight: 700; }
.address-list li:nth-child(7) em { background: rgba(212, 175, 55, 0.15); color: #9c7a2a; font-weight: 700; }

.deadline-info {
    margin-top: 20px;
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(5px);
    padding: 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    border-left: 4px solid #d4af37;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
}
.deadline-info strong {
    font-weight: 600;
    color: #002b49;
}

.faculties-list p {
    margin: 10px 0;
}
.faculties-list p strong {
    color: #002b49;
    font-weight: 600;
}
.email {
    color: #3b82f6;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}
.email:hover {
    color: #d4af37;
    text-decoration: underline;
}

.template-card {
    background: transparent;
}

.form-select {
    width: 100%;
    padding: 12px 16px;
    margin: 16px 0;
    border-radius: 40px;
    border: 1px solid rgba(203, 213, 225, 0.8);
    background: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}
.form-select:hover {
    border-color: #d4af37;
    background: rgba(255, 255, 255, 1);
}

.form-select option {
    font-size: 0.9rem;
    padding: 8px;
}

.download-btn {
    background: rgba(212, 175, 55, 0.9);
    color: #002b49;
    padding: 10px 28px;
    border-radius: 40px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 28px;
}
.download-btn:hover {
    background: #c4a02e;
    transform: scale(1.02) translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.35);
}

.upload-area {
    background: rgba(254, 252, 245, 0.8);
    backdrop-filter: blur(5px);
    border: 1px dashed #d4af37;
    border-radius: 28px;
    padding: 28px;
    text-align: center;
    transition: all 0.3s ease;
}
.upload-area:hover {
    border-color: #002b49;
    background: rgba(255, 255, 245, 0.9);
    transform: scale(1.01);
}

.file-input-label {
    background: #002b49;
    color: white;
    padding: 10px 28px;
    border-radius: 40px;
    cursor: pointer;
    display: inline-block;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}
.file-input-label:hover {
    background: #d4af37;
    color: #002b49;
    transform: scale(1.02);
}

.files-list {
    margin-top: 20px;
}

.btn-submit {
    background: #1e6f3f;
    color: white;
    border: none;
    padding: 10px 32px;
    border-radius: 40px;
    margin-top: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}
.btn-submit:hover {
    background: #0f5a34;
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(30, 111, 63, 0.3);
}

.status-card {
    background: rgba(248, 250, 252, 0.95);
    backdrop-filter: blur(5px);
    border-radius: 24px;
    padding: 32px 28px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}
.status-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}
.status-badge {
    background: #002b49;
    color: white;
    padding: 10px 32px;
    border-radius: 40px;
    display: inline-block;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
}
#statusDetails {
    font-size: 1rem;
    line-height: 1.5;
    margin: 20px 0;
}
.faculty-selector {
    margin-top: 28px;
}
.faculty-selector label {
    font-size: 0.95rem;
    font-weight: 600;
}
.faculty-selector select {
    width: 100%;
    padding: 12px 16px;
    margin-top: 10px;
    border-radius: 48px;
    font-size: 0.95rem;
}

.vstu-footer {
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(5px);
    padding: 20px;
    text-align: center;
    font-size: 0.7rem;
    color: #5b6e8c;
    margin-top: 24px;
    border-top: 1px solid rgba(226, 232, 240, 0.6);
}

@media (max-width: 768px) {
    .sidebar {
        flex: 0 0 100%;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }
    .nav-btn {
        width: auto;
        padding: 10px 16px;
        font-size: 0.8rem;
    }
    .nav-btn svg {
        width: 18px;
        height: 18px;
    }
    .content {
        padding: 20px;
    }
    .section-title {
        font-size: 1.3rem;
    }
    .address-list strong {
        white-space: normal;
    }
    .dashboard {
        gap: 16px;
        padding: 0 16px;
    }
    .address-list em {
        font-size: 0.65rem;
    }
    .deadline-info {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .logo-icon {
        width: 65px;
        height: 65px;
    }
    .logo-icon svg {
        width: 55px;
        height: 55px;
    }
    .title-text h1 {
        font-size: 1.2rem;
    }
    .title-text p {
        font-size: 0.5rem;
    }
    .top-bar span {
        font-size: 0.55rem;
        text-align: center;
    }
    .main-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .logo-area {
        width: 100%;
        justify-content: space-between;
    }
    .user-welcome {
        width: 100%;
        justify-content: space-between;
        margin-top: 8px;
    }
    .nav-btn {
        padding: 6px 12px;
        font-size: 0.7rem;
        gap: 6px;
    }
    .nav-btn svg {
        width: 14px;
        height: 14px;
    }
    .section-title {
        font-size: 1.1rem;
    }
    .deadline-info {
        font-size: 0.7rem;
    }
}