/* ===== CSS Variables ===== */
:root {
    --primary-color: #0066cc;
    --primary-dark: #004d99;
    --primary-light: #e6f0ff;
    --secondary-color: #00a896;
    --accent-color: #ff6b35;
    --text-color: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --bg-color: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #1a1a2e;
    --border-color: #e0e0e0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Preloader ===== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

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

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

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 0;
    background: transparent;
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    padding: 10px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
}

.header:not(.scrolled) .logo-text {
    color: #fff;
}

.logo-highlight {
    color: var(--secondary-color);
}

.logo-sub {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.header:not(.scrolled) .logo-sub {
    color: rgba(255, 255, 255, 0.8);
}

.nav-list {
    display: flex;
    gap: 5px;
}

.nav-link {
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    border-radius: 6px;
}

.header.scrolled .nav-link {
    color: var(--text-color);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background: var(--primary-light);
}

.header:not(.scrolled) .nav-link:hover,
.header:not(.scrolled) .nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.btn-support {
    background: var(--secondary-color) !important;
    color: #fff !important;
}

.btn-support:hover {
    background: #008f7f !important;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-color);
    transition: var(--transition);
}

.header:not(.scrolled) .mobile-menu-btn span {
    background: #fff;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.btn-full {
    width: 100%;
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a365d 0%, #2563eb 50%, #0066cc 100%);
    z-index: -1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    text-align: center;
    color: #fff;
    padding: 0 20px;
}

.hero-title {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 24px;
}

.hero-title-sub {
    display: block;
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
}

.hero-desc {
    font-size: clamp(16px, 1.5vw, 18px);
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-down {
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 25px;
    position: relative;
}

.scroll-down span {
    position: absolute;
    top: 10px;
    left: 50%;
    width: 6px;
    height: 6px;
    margin-left: -3px;
    background: #fff;
    border-radius: 50%;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 1; top: 10px; }
    100% { opacity: 0; top: 30px; }
}

/* ===== Section Common ===== */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-light);
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
    border-radius: 20px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 16px;
}

.section-desc {
    font-size: 18px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== About Section ===== */
.about {
    background: var(--bg-light);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.about-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.about-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 24px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-icon svg {
    width: 32px;
    height: 32px;
    color: var(--primary-color);
}

.about-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--text-color);
}

.about-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* ===== Services Section ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    position: relative;
    background: #fff;
    padding: 40px 30px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.service-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 16px;
    line-height: 1;
}

.service-card:hover .service-number {
    color: var(--primary-color);
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-color);
}

.service-card p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.7;
}

/* ===== EMR Section ===== */
.emr {
    background: var(--bg-light);
}

.emr-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.emr-text .section-tag {
    margin-bottom: 16px;
}

.emr-text .section-title {
    text-align: left;
    margin-bottom: 20px;
}

.emr-text > p {
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.8;
}

.emr-features {
    margin-bottom: 30px;
}

.emr-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-size: 16px;
    color: var(--text-color);
}

.check-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--secondary-color);
    color: #fff;
    border-radius: 50%;
    font-size: 14px;
}

.emr-mockup {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.mockup-header {
    display: flex;
    gap: 8px;
    padding: 16px 20px;
    background: var(--bg-dark);
}

.mockup-header span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff5f57;
}

.mockup-header span:nth-child(2) {
    background: #febc2e;
}

.mockup-header span:nth-child(3) {
    background: #28c840;
}

.mockup-content {
    display: flex;
    padding: 20px;
    gap: 20px;
    min-height: 300px;
}

.mockup-sidebar {
    width: 60px;
    background: var(--bg-light);
    border-radius: 8px;
}

.mockup-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mockup-chart {
    height: 120px;
    background: linear-gradient(90deg, var(--primary-light) 0%, var(--primary-color) 100%);
    border-radius: 8px;
    opacity: 0.3;
}

.mockup-table {
    flex: 1;
    background: var(--bg-light);
    border-radius: 8px;
}

/* ===== Education Section ===== */
.education-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.education-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition);
}

.education-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.education-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.education-icon svg {
    width: 48px;
    height: 48px;
    color: var(--primary-color);
}

.education-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-color);
}

.education-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* ===== Contact Section ===== */
.contact {
    background: var(--bg-light);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info .section-tag {
    margin-bottom: 16px;
}

.contact-info .section-title {
    text-align: left;
    margin-bottom: 20px;
}

.contact-info > p {
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.8;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

.info-item strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
}

.info-item p {
    color: var(--text-light);
}

.contact-form {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    font-family: inherit;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: var(--transition);
}

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

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

/* ===== Login Modal ===== */
.modal-login {
    max-width: 400px;
}

.login-modal-content {
    text-align: center;
}

.login-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-icon svg {
    width: 40px;
    height: 40px;
    color: var(--primary-color);
}

.login-desc {
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.7;
}

.login-form {
    text-align: left;
}

.login-form .form-group {
    margin-bottom: 16px;
}

.login-form input {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    font-family: inherit;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: var(--transition);
}

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

.login-form .btn {
    margin-top: 8px;
}

.login-links {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.login-links a {
    font-size: 14px;
    color: var(--primary-color);
}

.login-links a:hover {
    text-decoration: underline;
}

.hospital-name-display {
    margin-top: 8px;
    padding: 10px 14px;
    background: var(--primary-light);
    border-radius: 6px;
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 500;
    display: none;
}

.hospital-name-display.active {
    display: block;
}

.hospital-name-display.error {
    background: #fef2f2;
    color: #ef4444;
}

.hospital-name-display.loading {
    background: var(--bg-light);
    color: var(--text-muted);
}

/* ===== Support Section ===== */
.support {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #16213e 100%);
    padding: 80px 0;
}

.support-content {
    text-align: center;
    color: #fff;
}

.support-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.support-icon svg {
    width: 40px;
    height: 40px;
    color: #fff;
}

.support-content h2 {
    font-size: 32px;
    margin-bottom: 16px;
}

.support-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 30px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo-text {
    color: #fff;
    margin-bottom: 16px;
}

.footer-brand p {
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.6);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.footer-column ul a:hover {
    color: #fff;
}

.cs-phone {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.cs-time {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-info p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.copyright {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .emr-content {
        grid-template-columns: 1fr;
    }

    .emr-image {
        order: -1;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #fff;
        padding: 80px 30px 30px;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
    }

    .nav-link {
        display: block;
        padding: 15px 0;
        color: var(--text-color);
        border-bottom: 1px solid var(--border-color);
    }

    .mobile-menu-btn {
        display: flex;
        z-index: 1001;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .about-grid,
    .education-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

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

    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 60px 0;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        padding: 14px 24px;
    }

    .contact-form {
        padding: 24px;
    }
}

/* ===== EMR Buttons ===== */
.emr-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.emr-buttons .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.emr-buttons .btn-secondary:hover {
    background: var(--primary-color);
    color: #fff;
}

.emr-buttons .btn-secondary svg {
    flex-shrink: 0;
}

/* ===== Modal Styles ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

.modal-content.modal-large {
    max-width: 800px;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-light);
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
}

.modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 8px;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--border-color);
    color: var(--text-color);
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    max-height: calc(85vh - 80px);
}

/* ===== Download List ===== */
.download-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.download-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 12px;
    transition: var(--transition);
}

.download-item:hover {
    background: var(--primary-light);
}

.download-info {
    flex: 1;
}

.download-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
}

.download-info p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.download-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-muted);
}

.download-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.download-btn:hover {
    background: var(--primary-dark);
}

.download-btn svg {
    width: 16px;
    height: 16px;
}

.empty-message {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

/* ===== Admin File Upload ===== */
.upload-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.upload-section h4,
.file-list-section h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-color);
}

.admin-file-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 300px;
    overflow-y: auto;
}

.admin-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--bg-light);
    border-radius: 10px;
}

.admin-file-info {
    flex: 1;
}

.admin-file-info h5 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
}

.admin-file-info p {
    font-size: 13px;
    color: var(--text-muted);
}

.admin-file-actions {
    display: flex;
    gap: 8px;
}

.btn-delete {
    padding: 8px 16px;
    background: #ef4444;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-delete:hover {
    background: #dc2626;
}

/* ===== Admin Link ===== */
.admin-link {
    opacity: 0.5;
    font-size: 12px !important;
}

.admin-link:hover {
    opacity: 1;
}

/* ===== Category Badge ===== */
.category-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 500;
    border-radius: 4px;
    background: var(--primary-light);
    color: var(--primary-color);
    margin-right: 8px;
}

/* ===== Form Styles for Modal ===== */
.modal .form-group input[type="file"] {
    padding: 10px;
    background: var(--bg-light);
}

/* ===== Responsive Modal ===== */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-body {
        padding: 20px;
    }

    .download-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .download-btn {
        width: 100%;
        justify-content: center;
    }

    .admin-file-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .admin-file-actions {
        width: 100%;
    }

    .admin-file-actions .btn-delete {
        flex: 1;
    }
}
