/* ============================================
   Modern Cloud Storage Design
   Mobile-First Responsive
   ============================================ */

:root {
    --primary: #5e72e4;
    --primary-dark: #4c63d2;
    --primary-light: #a8b8f8;
    --secondary: #825ee4;
    --success: #2dce89;
    --danger: #f5365c;
    --warning: #fb6340;
    --info: #11cdef;
    --dark: #32325d;
    --light: #f7fafc;
    --gray: #8898aa;
    --gray-light: #e3e7ee;
    --gray-lighter: #f5f8fa;
    --white: #ffffff;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
    --radius: 12px;
    --transition: all 0.3s ease;
}

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

html,
body {
    height: 100%;
}

body {
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
        Cantarell, sans-serif;
    background: linear-gradient(135deg, #f5f8fa 0%, #e9ecef 100%);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

/* ============================================
   NAVBAR / HEADER
   ============================================ */

.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--dark);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    transition: var(--transition);
}

.nav-link:hover {
    background: var(--gray-lighter);
    color: var(--primary);
}

.nav-link i {
    font-size: 1.1rem;
}

.user-menu {
    position: relative;
}

.user-button {
    background: linear-gradient(
        135deg,
        var(--primary) 0%,
        var(--secondary) 100%
    );
    color: var(--white);
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: var(--transition);
    font-size: 1rem;
}

.user-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 180px;
    padding: 0.5rem 0;
    display: none;
    margin-top: 0.5rem;
    z-index: 1001;
}

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

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    color: var(--dark);
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--gray-lighter);
    color: var(--primary);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(
        135deg,
        var(--primary) 0%,
        var(--secondary) 100%
    );
    color: var(--white);
}

.btn-primary:hover {
    box-shadow: 0 4px 20px rgba(94, 114, 228, 0.4);
}

.btn-secondary {
    background: var(--gray-lighter);
    color: var(--dark);
    border: 2px solid var(--primary);
}

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

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

.btn-danger:hover {
    box-shadow: 0 4px 20px rgba(245, 54, 92, 0.4);
}

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

.btn-info:hover {
    box-shadow: 0 4px 20px rgba(17, 205, 239, 0.4);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* ============================================
   FLASH MESSAGES
   ============================================ */

.flash-container {
    position: fixed;
    top: 80px;
    right: 1rem;
    z-index: 2000;
    max-width: 400px;
}

.flash-message {
    background: var(--white);
    border-left: 4px solid var(--success);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.flash-success {
    border-left-color: var(--success);
}

.flash-success i {
    color: var(--success);
}

.flash-error {
    border-left-color: var(--danger);
}

.flash-error i {
    color: var(--danger);
}

.flash-message span {
    flex: 1;
}

.flash-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
    padding: 0;
    transition: var(--transition);
}

.flash-close:hover {
    color: var(--dark);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    background: linear-gradient(
        135deg,
        var(--primary) 0%,
        var(--secondary) 100%
    );
    color: var(--white);
    padding: 3rem 1rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.gradient-text {
    display: block;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.floating-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.floating-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 1.5rem 1rem;
    border-radius: var(--radius);
    text-align: center;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: float 3s ease-in-out infinite;
}

.floating-card:nth-child(2) {
    animation-delay: 0.2s;
}

.floating-card:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.floating-card i {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.floating-card span {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
}

/* ============================================
   STATS SECTION
   ============================================ */

.stats {
    background: var(--white);
    padding: 2rem 1rem;
    margin-bottom: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--gray-lighter);
    border-radius: var(--radius);
    transition: var(--transition);
}

.stat-card:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(
        135deg,
        var(--primary) 0%,
        var(--secondary) 100%
    );
    color: var(--white);
    border-radius: var(--radius);
}

.stat-card:hover .stat-icon {
    background: rgba(255, 255, 255, 0.2);
}

.stat-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-content p {
    font-size: 0.95rem;
    opacity: 0.8;
}

/* ============================================
   FEATURES SECTION
   ============================================ */

.features {
    padding: 2rem 1rem;
    margin-bottom: 3rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: linear-gradient(
        135deg,
        rgba(94, 114, 228, 0.1) 0%,
        rgba(130, 94, 228, 0.1) 100%
    );
    border-radius: var(--radius);
    margin-left: auto;
    margin-right: auto;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.feature-card p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================
   RECENT FILES SECTION
   ============================================ */

.recent-files {
    padding: 2rem 1rem;
    margin-bottom: 3rem;
}

.files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.file-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

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

.file-icon {
    font-size: 2.5rem;
    background: linear-gradient(
        135deg,
        rgba(94, 114, 228, 0.1) 0%,
        rgba(130, 94, 228, 0.1) 100%
    );
    color: var(--primary);
    padding: 1.5rem 1rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.file-details {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.file-details h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.file-meta-info {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.8rem;
    color: var(--gray);
    margin-bottom: 0.75rem;
}

.file-size {
    font-weight: 600;
    color: var(--dark);
}

.file-date {
    font-size: 0.75rem;
}

.file-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--gray);
}

.file-owner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: 0.5rem;
}

.file-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta {
    background: linear-gradient(
        135deg,
        var(--primary) 0%,
        var(--secondary) 100%
    );
    color: var(--white);
    padding: 3rem 1rem;
    margin-bottom: 2rem;
    border-radius: var(--radius);
    text-align: center;
}

.cta-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

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

.cta .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--dark);
    color: var(--white);
    padding: 2rem 1rem 1rem;
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
}

.footer-brand i {
    font-size: 1.5rem;
    color: var(--primary);
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

/* ============================================
   AUTH PAGES (LOGIN/REGISTER)
   ============================================ */

.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
}

.auth-container {
    width: 100%;
    max-width: 450px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.auth-header {
    background: linear-gradient(
        135deg,
        var(--primary) 0%,
        var(--secondary) 100%
    );
    color: var(--white);
    padding: 2rem 1.5rem;
    text-align: center;
}

.auth-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.auth-header p {
    font-size: 0.95rem;
    opacity: 0.9;
}

.auth-form {
    padding: 2rem 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(94, 114, 228, 0.1);
}

.auth-footer {
    background: var(--gray-lighter);
    padding: 1.5rem;
    text-align: center;
    border-top: 1px solid var(--gray-light);
}

.auth-footer p {
    font-size: 0.95rem;
    color: var(--dark);
}

.auth-footer a {
    font-weight: 600;
}

/* ============================================
   DASHBOARD
   ============================================ */

.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem;
}

.dashboard-header {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.stats-mini {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.stats-mini span {
    background: var(--gray-lighter);
    padding: 1rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--dark);
}

.stats-mini i {
    color: var(--primary);
    font-size: 1.3rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.breadcrumb a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--white);
    border-radius: var(--radius);
    color: var(--primary);
    box-shadow: var(--shadow);
}

.breadcrumb a:hover {
    background: var(--gray-lighter);
}

.action-bar {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--gray-lighter);
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    flex: 1;
    min-width: 200px;
}

.search-box input {
    border: none;
    background: none;
    flex: 1;
    font-size: 1rem;
    outline: none;
    color: var(--dark);
}

.search-box input::placeholder {
    color: var(--gray);
}

.files-section {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray);
}

.empty-state i {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
    color: var(--primary);
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.empty-state p {
    margin-bottom: 1.5rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    :root {
        font-size: 15px;
    }

    .navbar .container {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-links {
        justify-content: space-between;
    }

    .hero {
        padding: 2rem 1rem;
        margin-bottom: 2rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

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

    .floating-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    .floating-card {
        padding: 1rem 0.75rem;
    }

    .floating-card i {
        font-size: 2rem;
    }

    .floating-card span {
        font-size: 0.8rem;
    }

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

    .stat-card {
        flex-direction: column;
        text-align: center;
    }

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

    .feature-card {
        padding: 1.5rem 1rem;
    }

    .files-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .file-icon {
        font-size: 2rem;
        min-height: 100px;
        padding: 1rem;
    }

    .file-details {
        padding: 0.75rem;
    }

    .file-details h4 {
        font-size: 0.85rem;
    }

    .cta {
        padding: 2rem 1rem;
    }

    .cta-content h2 {
        font-size: 1.5rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-links {
        justify-content: center;
    }

    .auth-container {
        max-width: 100%;
        margin: 0 auto;
    }

    .auth-form {
        padding: 1.5rem 1rem;
    }

    .auth-header {
        padding: 1.5rem 1rem;
    }

    .dashboard-container {
        padding: 1rem;
    }

    .dashboard-header {
        padding: 1.5rem;
    }

    .dashboard-header h1 {
        font-size: 1.5rem;
    }

    .stats-mini {
        grid-template-columns: 1fr;
    }

    .action-bar {
        flex-direction: column;
    }

    .search-box {
        width: 100%;
    }

    .btn-large {
        padding: 0.75rem 1.5rem;
    }

    .flash-container {
        left: 1rem;
        right: 1rem;
        max-width: none;
        top: 70px;
    }

    .flash-message {
        flex-direction: row;
    }
}

@media (max-width: 480px) {
    :root {
        font-size: 14px;
    }

    .container {
        padding: 0 0.75rem;
    }

    .navbar {
        padding: 0.75rem 0;
    }

    .navbar .container {
        gap: 0.5rem;
    }

    .nav-brand {
        font-size: 1.25rem;
    }

    .nav-links {
        gap: 0.75rem;
    }

    .nav-link {
        padding: 0.4rem 0.75rem;
        font-size: 0.9rem;
    }

    .hero {
        padding: 1.5rem 0.75rem;
        margin-bottom: 1.5rem;
    }

    .hero-title {
        font-size: 1.3rem;
    }

    .hero-buttons {
        gap: 0.75rem;
    }

    .btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.95rem;
    }

    .btn-large {
        padding: 0.65rem 1.25rem;
        font-size: 0.95rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .floating-cards {
        gap: 0.5rem;
    }

    .floating-card i {
        font-size: 1.5rem;
    }

    .files-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.75rem;
    }

    .file-details {
        padding: 0.5rem;
    }

    .file-details h4 {
        font-size: 0.75rem;
    }

    .user-dropdown {
        min-width: 150px;
    }

    .action-bar {
        padding: 1rem;
        gap: 0.75rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 0.5rem;
}
.mt-2 {
    margin-top: 1rem;
}
.mt-3 {
    margin-top: 1.5rem;
}
.mt-4 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}
.mb-2 {
    margin-bottom: 1rem;
}
.mb-3 {
    margin-bottom: 1.5rem;
}
.mb-4 {
    margin-bottom: 2rem;
}

.hidden {
    display: none !important;
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   UPLOAD PROGRESS BAR
   ============================================ */

#uploadProgressContainer {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
}

.upload-progress-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
}

#uploadFileName {
    font-weight: 600;
    color: var(--dark);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

#uploadPercentage {
    color: var(--primary);
    font-weight: 700;
    min-width: 40px;
    text-align: right;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--gray-light);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 10px;
    width: 0%;
    transition: width 0.2s ease;
}

.progress-status {
    font-size: 0.85rem;
    color: var(--gray);
}

/* ============================================
   DELETE PROGRESS BAR
   ============================================ */

.delete-progress {
    margin-top: 1rem;
    padding: 0.75rem;
    background: var(--light);
    border-radius: 6px;
    animation: slideDown 0.3s ease;
}

.delete-progress .progress-bar {
    height: 6px;
    margin-bottom: 0.5rem;
}

.delete-progress .progress-fill {
    background: linear-gradient(90deg, var(--warning), var(--danger));
}

.delete-progress .progress-status {
    display: block;
    text-align: center;
    font-weight: 500;
    color: var(--warning);
}

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

/* ============================================
   FILE PREVIEW MODAL
   ============================================ */

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    max-width: 90%;
    max-height: 90vh;
    overflow: auto;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.modal-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-light);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--dark);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--gray);
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--dark);
    transform: rotate(90deg);
}

.modal-body {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

#previewContainer {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#previewContainer img,
#previewContainer video,
#previewContainer audio {
    max-width: 100%;
    height: auto;
}

#previewContainer pre {
    width: 100%;
    background: var(--light);
    padding: 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    line-height: 1.5;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-light);
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.modal-footer .btn {
    margin: 0;
}

/* ============================================
   MODAL OVERLAY
   ============================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ============================================
   RESPONSIVE MODAL
   ============================================ */

@media (max-width: 768px) {
    .modal {
        max-width: 95%;
        max-height: 95vh;
    }

    .modal-header {
        padding: 1rem;
    }

    .modal-body {
        padding: 1rem;
        min-height: 250px;
    }

    .modal-footer {
        padding: 0.75rem 1rem;
        flex-wrap: wrap;
    }

    .modal-footer .btn {
        flex: 1;
        min-width: 120px;
    }
}
