/* 9jadjkit 2026 Upload Theme - Combined */

/* Theme Variables */
:root {
    --bg: #121212;
    --bg-elev: #1c1c1c;
    --text: #e0e0e0;
    --muted: #b3b3b3;
    --border: rgba(255,255,255,0.1);
    --accent: #4ade80;
    --accent-2: #22c55e;
    --brand-grad-start: #1a4d3a;
    --brand-grad-end: #22543d;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* Container */
.container {
    background: var(--bg-elev);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    padding: 40px;
    max-width: 500px;
    width: 100%;
    margin: 50px auto;
}

.dashboard-container {
    max-width: 1200px;
    width: 100%;
    background: var(--bg-elev);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    padding: 30px;
    margin: 20px auto;
}

/* Typography */
h1, h2, h3 {
    color: var(--text);
    margin-bottom: 20px;
}

h1 {
    font-size: 2.5rem;
    text-align: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 1.8rem;
    text-align: center;
}

h3 {
    font-size: 1.3rem;
    color: var(--accent);
}

p {
    color: var(--muted);
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="file"],
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="file"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent);
    background-color: rgba(74, 222, 128, 0.05);
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.1);
}

input::placeholder {
    color: var(--muted);
}

/* Buttons */
button,
.btn,
input[type="submit"],
.logout-btn,
.download-btn,
.delete-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #000;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    width: 100%;
    letter-spacing: 0.025em;
}

button:hover,
.btn:hover,
input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 222, 128, 0.3);
}

button:active,
.btn:active {
    transform: translateY(0);
}

/* Special Buttons */
.logout-btn {
    width: auto;
    padding: 8px 20px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    font-size: 0.9rem;
}

.logout-btn:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
}

.download-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    width: auto;
    padding: 8px 15px;
    font-size: 0.85rem;
}

.download-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.delete-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    width: auto;
    padding: 8px 15px;
    font-size: 0.85rem;
    margin-left: 5px;
}

.delete-btn:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

/* Forms Footer */
.form-footer {
    text-align: center;
    margin-top: 20px;
    color: var(--muted);
}

.form-footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.form-footer a:hover {
    color: var(--accent-2);
    text-decoration: underline;
}

/* Alerts */
.alert {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
    border: 1px solid;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.3);
}

.alert p {
    margin-bottom: 5px;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border);
}

.user-info {
    text-align: right;
}

.user-info p {
    color: var(--muted);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.user-info p strong {
    color: var(--accent);
}

/* Dashboard Sections */
.upload-section {
    background: rgba(74, 222, 128, 0.05);
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid var(--border);
}

.upload-section h3 {
    margin-bottom: 15px;
}

.upload-section p {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.file-list {
    margin-top: 30px;
}

.file-list h3 {
    margin-bottom: 15px;
}

.file-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.file-item:hover {
    background: rgba(74, 222, 128, 0.1);
    border-color: var(--accent);
}

.file-info {
    flex-grow: 1;
}

.file-name {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 5px;
    word-break: break-all;
}

.file-size,
.file-date {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 3px;
}

.file-actions {
    display: flex;
    gap: 8px;
    margin-left: 15px;
}

/* Drag & Drop */
.drag-drop-area {
    border: 2px dashed var(--accent);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: rgba(74, 222, 128, 0.03);
}

.drag-drop-area:hover,
.drag-drop-area.dragover {
    background: rgba(74, 222, 128, 0.1);
    border-color: var(--accent-2);
}

.drag-drop-area p {
    color: var(--muted);
    margin-bottom: 10px;
}

/* Statistics */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, var(--brand-grad-start), var(--brand-grad-end));
    color: var(--text);
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(74, 222, 128, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--accent);
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px;
    color: var(--muted);
}

.empty-state p {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

/* Admin Styles */
.auth-form {
    max-width: 400px;
    margin: 50px auto;
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border);
}

.user-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.user-table th,
.user-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.user-table th {
    background: linear-gradient(135deg, var(--brand-grad-start), var(--brand-grad-end));
    font-weight: 600;
}

.user-table tr:hover {
    background: rgba(74, 222, 128, 0.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container,
    .dashboard-container {
        padding: 20px;
        margin: 10px;
    }

    h1 {
        font-size: 1.8rem;
    }

    .file-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .file-actions {
        width: 100%;
        margin-left: 0;
        margin-top: 10px;
    }

    .file-actions a,
    .delete-btn {
        flex: 1;
        min-width: 0;
    }

    .header {
        flex-direction: column;
        text-align: center;
    }

    .user-info {
        text-align: center;
        margin-top: 15px;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .drag-drop-area {
        padding: 25px;
    }

    .user-table {
        font-size: 0.9rem;
    }

    .user-table th,
    .user-table td {
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }

    h1 {
        font-size: 1.5rem;
    }

    button,
    .btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .file-item {
        padding: 12px;
    }

    .drag-drop-area {
        padding: 20px;
    }
}

/* Utilities */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-2);
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }

    .container,
    .dashboard-container {
        box-shadow: none;
        border: none;
    }

    button,
    .btn {
        display: none;
    }
}
