@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background: linear-gradient(45deg, #121f3f, #1b3a6c, #0a1428);
    background-size: 300% 300%;
    animation: gradientBG 15s ease infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #e0e6ed;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Glassmorphism Classes */
.glass-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.main-container {
    width: 90%;
    max-width: 900px;
    border-radius: 20px;
    overflow: hidden;
    padding: 2.5rem;
    margin: 20px;
    transition: transform 0.3s ease;
}

/* Auth Styling */
.auth-body {
    background: linear-gradient(135deg, #0b132b 0%, #1c2541 100%);
    background-size: cover;
}

.auth-container {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 420px;
    text-align: center;
    color: #fff;
    transition: transform 0.3s ease;
}

.auth-container:hover {
    transform: translateY(-5px);
}

.auth-container h2 {
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-size: 2rem;
    letter-spacing: -0.5px;
}

.subtitle {
    color: #a0aec0;
    margin-bottom: 2rem;
    font-size: 1rem;
    font-weight: 300;
}

.input-group {
    position: relative;
    margin-bottom: 1.25rem;
}

.input-group i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #8fa0b5;
    font-size: 1.1rem;
}

.input-group input {
    width: 100%;
    padding: 14px 15px 14px 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    transition: all 0.3s ease;
}

.input-group input::placeholder {
    color: #718096;
}

.input-group input:focus {
    border-color: #3b82f6;
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.auth-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

.divider {
    margin: 2rem 0;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.divider span {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #172138;
    /* Matches modal avg background */
    padding: 2px 15px;
    border-radius: 12px;
    color: #8fa0b5;
    font-size: 0.85rem;
    font-weight: 500;
}

.google-btn {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #1e293b;
    font-size: 1rem;
}

.google-btn:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.google-btn img {
    width: 22px;
}

.auth-footer {
    margin-top: 2rem;
    font-size: 0.95rem;
    color: #a0aec0;
}

.auth-footer a {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.auth-footer a:hover {
    color: #93c5fd;
    text-decoration: underline;
}

.error-message {
    color: #f87171;
    font-size: 0.9rem;
    margin-top: 1.2rem;
    min-height: 1.2em;
    font-weight: 500;
}


/* Header Styling */
header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.logout-btn {
    font-size: 0.9rem;
    font-family: 'Outfit';
    color: #f87171;
    text-decoration: none;
    border: 1px solid rgba(248, 113, 113, 0.3);
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s;
    cursor: pointer;
    background: rgba(248, 113, 113, 0.05);
    font-weight: 500;
}

.logout-btn:hover {
    background: #f87171;
    color: white;
    border-color: #f87171;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(248, 113, 113, 0.2);
}

.logo {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.auth-container .logo {
    justify-content: center;
    margin-bottom: 1rem;
}

.logo i {
    color: #60a5fa;
    filter: drop-shadow(0 0 8px rgba(96, 165, 250, 0.6));
}

header p {
    color: #94a3b8;
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* Upload Zone Styling */
.upload-card {
    margin-bottom: 2.5rem;
}

.drop-zone {
    border: 2px dashed rgba(96, 165, 250, 0.5);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(15, 23, 42, 0.4);
    position: relative;
    overflow: hidden;
}

.drop-zone::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(96, 165, 250, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
}

.drop-zone:hover {
    border-color: #60a5fa;
    background: rgba(15, 23, 42, 0.6);
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.drop-zone:hover::before {
    opacity: 1;
}

.icon-container {
    font-size: 3.5rem;
    color: #60a5fa;
    margin-bottom: 1.2rem;
    filter: drop-shadow(0 4px 10px rgba(96, 165, 250, 0.4));
    transition: transform 0.3s;
}

.drop-zone:hover .icon-container {
    transform: translateY(-5px);
}

.drop-zone h3 {
    color: #f1f5f9;
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.drop-zone p {
    color: #94a3b8;
    font-size: 0.95rem;
}

/* File List Styling */
.files-section {
    background: rgba(15, 23, 42, 0.4);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.files-section h4 {
    font-size: 1.2rem;
    color: #f1f5f9;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.files-section h4::before {
    content: '\f07b';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #60a5fa;
}

/* TABLE STYLING */
.table-container {
    overflow-x: auto;
    border-radius: 8px;
}

#fileTable {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

#fileTable th,
#fileTable td {
    padding: 16px 20px;
    text-align: left;
}

#fileTable th {
    color: #94a3b8;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 8px;
}

#fileTable tbody tr {
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
    border-radius: 12px;
}

/* Creating rounded corners for table rows */
#fileTable tbody tr td:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

#fileTable tbody tr td:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

#fileTable tbody tr:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.01);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#fileTable td {
    font-size: 0.95rem;
    color: #e2e8f0;
    vertical-align: middle;
}

/* Action Buttons in Table */
.action-buttons {
    display: flex;
    gap: 10px;
}

.action-buttons button,
.action-buttons a {
    width: 36px;
    height: 36px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-open {
    background: rgba(96, 165, 250, 0.15);
    color: #60a5fa;
}

.btn-open:hover {
    background: #60a5fa;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(96, 165, 250, 0.4);
}

.btn-edit {
    background: rgba(250, 204, 21, 0.15);
    color: #facc15;
}

.btn-edit:hover {
    background: #facc15;
    color: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(250, 204, 21, 0.4);
}

.btn-delete {
    background: rgba(248, 113, 113, 0.15);
    color: #f87171;
    margin-left: 0;
}

.btn-delete:hover {
    background: #f87171;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(248, 113, 113, 0.4);
}


.status-badge {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.status-uploading {
    background-color: rgba(250, 204, 21, 0.2);
    color: #facc15;
    border: 1px solid rgba(250, 204, 21, 0.4);
}

.status-success {
    background-color: rgba(74, 222, 128, 0.2);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.4);
}

.empty-state {
    text-align: center;
    color: #64748b;
    font-size: 1rem;
    padding: 3rem !important;
    font-style: italic;
    background: transparent !important;
}

/* Animation */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.fade-in {
    animation: fadeInScale 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Progress Bar */
.progress-container {
    width: 100%;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    margin-top: 8px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}