:root {
    --panel-bg: rgba(255, 255, 255, 0.85); /* Light glass */
    --panel-border: rgba(255, 255, 255, 0.9);
    --primary: #f97316; /* Orange 500 */
    --primary-hover: #ea580c;
    --danger: #ef4444; /* Red 500 */
    --danger-hover: #dc2626;
    --info: #eab308; /* Yellow 500 */
    --text-main: #1f2937; /* Gray 800 */
    --text-muted: #6b7280; /* Gray 500 */
    --glass-blur: blur(16px);
    --shadow: 0 10px 40px rgba(239, 68, 68, 0.15); /* Soft red/orange shadow */
    --radius: 20px;
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

body {
    /* Sanatsal, açık tonlu, şeritli arka plan */
    background: repeating-linear-gradient(
        135deg,
        #ffffff,
        #ffffff 40px,
        #fffbeb 40px, /* Light Yellow */
        #fffbeb 80px,
        #fff7ed 80px, /* Light Orange */
        #fff7ed 120px,
        #fef2f2 120px, /* Light Red */
        #fef2f2 160px
    );
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
}

/* Typography & Utilities */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-danger { color: var(--danger) !important; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mt-4 { margin-top: 1rem; }

/* Renkli Sanatsal Yazı Tipi */
.gradient-text {
    background: linear-gradient(to right, #ef4444, #f97316, #eab308); /* Red to Orange to Yellow */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* Glassmorphism Panel */
.glass-panel {
    background: var(--panel-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 2px solid var(--panel-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Login Page */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}
.login-container .glass-panel {
    padding: 3rem 2.5rem;
}

.form-group { margin-bottom: 1rem; }
.form-control {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(249, 115, 22, 0.3); /* Orange border */
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-main);
    font-size: 1rem;
    transition: var(--transition);
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.15);
}

.btn {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    border-radius: 12px;
    padding: 0.85rem 1.5rem;
    transition: var(--transition);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.btn-block { width: 100%; }
.btn-primary {
    background: linear-gradient(45deg, #ef4444, #f97316); /* Red to Orange */
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}
.btn-primary:hover { 
    background: linear-gradient(45deg, #dc2626, #ea580c);
    transform: translateY(-2px); 
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
}

.alert {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
}
.alert-error {
    background: #fef2f2;
    color: #ef4444;
    border: 1px solid #fecaca;
}

/* Dashboard Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    margin: 1.5rem;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
}
.sidebar-header { margin-bottom: 2.5rem; text-align: center; }
.sidebar-nav { display: flex; flex-direction: column; gap: 0.5rem; }
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    color: var(--text-muted);
    font-weight: 500;
    text-decoration: none;
    border-radius: 12px;
    transition: var(--transition);
}
.sidebar-nav a:hover, .sidebar-nav a.active {
    background: linear-gradient(to right, rgba(249, 115, 22, 0.1), transparent);
    color: var(--primary);
    border-left: 4px solid var(--primary);
}
.sidebar-nav a i { width: 22px; height: 22px; }

/* Main Content */
.main-content {
    flex: 1;
    padding: 1.5rem 2rem 2rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: calc(100vw - 290px);
}

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.5rem;
    border-bottom: 2px dashed rgba(249, 115, 22, 0.2);
}
.top-header h1 { font-size: 1.75rem; font-weight: 700; color: var(--text-main); }
.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
}
.avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(45deg, #eab308, #f97316);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(249, 115, 22, 0.3);
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}
.stat-card {
    padding: 1.75rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 6px; height: 100%;
    background: linear-gradient(to bottom, #ef4444, #eab308);
}
.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(249, 115, 22, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}
.stat-icon i { width: 28px; height: 28px; }
.stat-info h3 { font-size: 0.9rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-info p { font-size: 1.75rem; font-weight: 800; margin-top: 0.25rem; color: var(--text-main); }

/* Upload Section */
.upload-section { padding: 2.5rem; text-align: center; }
.drop-zone {
    border: 3px dashed rgba(249, 115, 22, 0.4);
    border-radius: 16px;
    padding: 4rem 2rem;
    cursor: pointer;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.5);
}
.drop-zone:hover, .drop-zone.dragover {
    border-color: var(--danger);
    background: rgba(239, 68, 68, 0.05);
    transform: scale(1.01);
}
.upload-icon {
    width: 56px;
    height: 56px;
    color: var(--danger);
    margin-bottom: 1.25rem;
}
.drop-zone h3 { font-size: 1.25rem; margin-bottom: 0.5rem; font-weight: 600; }
.drop-zone p { color: var(--text-muted); font-size: 0.95rem; }

.progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(249, 115, 22, 0.1);
    border-radius: 6px;
    overflow: hidden;
    margin: 2rem 0 1rem;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #eab308, #ef4444);
    width: 0%;
    transition: width 0.3s ease;
}

/* Files Section */
.files-section { padding: 0; overflow: hidden; }
.section-header { padding: 1.5rem 1.5rem 0; margin-bottom: 1rem; }
.table-responsive { overflow-x: auto; padding: 0 1.5rem 1.5rem; }
.files-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}
.files-table th {
    padding: 1rem;
    text-align: left;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(249, 115, 22, 0.1);
}
.files-table td {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(255,255,255,0.8);
    border-bottom: 1px solid rgba(0,0,0,0.02);
}
.files-table tr td:first-child { border-top-left-radius: 12px; border-bottom-left-radius: 12px; }
.files-table tr td:last-child { border-top-right-radius: 12px; border-bottom-right-radius: 12px; }
.files-table tr:hover td {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.005);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.file-name {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    word-break: break-all;
    color: var(--text-main);
}
.file-name i { color: var(--primary); width: 20px; height: 20px; flex-shrink: 0; }

.short-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(249, 115, 22, 0.1);
    color: var(--primary);
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.short-link:hover {
    background: var(--primary);
    color: white;
}
.short-link i { width: 14px; height: 14px; }

.badge {
    background: rgba(234, 179, 8, 0.15); /* Yellow */
    color: #ca8a04;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
}

.actions { display: flex; gap: 0.5rem; }
.btn-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    color: white;
}
.btn-icon i { width: 18px; height: 18px; }
.btn-info { background: linear-gradient(135deg, #facc15, #f59e0b); color: white; }
.btn-info:hover { box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4); transform: translateY(-2px); }
.btn-danger { background: linear-gradient(135deg, #f87171, #ef4444); color: white; }
.btn-danger:hover { box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4); transform: translateY(-2px); }

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.modal.show { display: flex; }
.modal-content {
    width: 100%;
    max-width: 650px;
    padding: 2rem;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    border-top: 5px solid var(--danger); /* Artistic top border */
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.modal-header h3 { color: var(--text-main); font-weight: 800; }
.close-modal {
    font-size: 1.75rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}
.close-modal:hover { color: var(--danger); transform: rotate(90deg); }

.details-table {
    width: 100%;
    border-collapse: collapse;
}
.details-table th, .details-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(249, 115, 22, 0.1);
    font-size: 0.9rem;
}
.details-table th { color: var(--primary); font-weight: 700; text-transform: uppercase; font-size: 0.8rem; }

/* Responsive */
@media (max-width: 768px) {
    .app-container { flex-direction: column; }
    .sidebar { width: auto; margin: 1rem; margin-bottom: 0; padding: 1.5rem; }
    .main-content { padding: 1rem; max-width: 100vw; }
    .stats-grid { grid-template-columns: 1fr; }
    .drop-zone { padding: 2rem 1rem; }
}
