:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-color: #0f172a;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-color: #38bdf8;
    --hover-bg: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(102, 126, 234, 0.15), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(118, 75, 162, 0.15), transparent 25%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    padding: 2rem;
}

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

header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInDown 0.8s ease-out;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.controls-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.glass-input, .glass-select {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 0.75rem 1.2rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.glass-input {
    width: 300px;
}

.glass-input::placeholder {
    color: var(--text-secondary);
}

.glass-input:focus, .glass-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.glass-select option {
    background-color: var(--bg-color);
    color: var(--text-primary);
}

.stats {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 600;
    width: 100%;
    margin-top: 0.5rem;
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.table-container {
    padding: 1.5rem;
    overflow-x: auto;
    animation: fadeInUp 0.8s ease-out;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    white-space: nowrap;
}

th, td {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--glass-border);
    font-size: 0.85rem;
}

th {
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

th.sortable {
    cursor: pointer;
    transition: color 0.3s ease;
}

th.sortable:hover {
    color: var(--text-primary);
}

.sort-icon {
    font-size: 0.7rem;
    margin-left: 0.3rem;
    color: var(--accent-color);
}

tbody tr {
    transition: all 0.3s ease;
}

tbody tr:hover {
    background: var(--hover-bg);
    transform: translateY(-2px);
}

tbody tr:last-child td {
    border-bottom: none;
}

/* Buttons */
.action-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.action-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    animation: slideUp 0.4s ease-out;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: white;
}

#modal-title {
    margin-bottom: 2rem;
    font-size: 1.5rem;
    color: var(--accent-color);
}

.details-section {
    margin-bottom: 2rem;
}

.details-section h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
}

.loading {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    padding: 2rem !important;
}

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

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scrollbar customization */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color); 
}
::-webkit-scrollbar-thumb {
    background: var(--hover-bg); 
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--glass-border); 
}

/* Navigation Bar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    margin-bottom: 20px;
}
.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}
.nav-links {
    display: flex;
    gap: 20px;
}
.nav-link {
    color: var(--text-primary);
    text-decoration: none;

/* Navigation Bar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    margin-bottom: 20px;
}
.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}
.nav-links {
    display: flex;
    gap: 20px;
}
.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    transition: background-color 0.2s, color 0.2s;
}
.nav-link:hover {
    background-color: rgba(56, 189, 248, 0.1);
    color: var(--accent-color);
}
.nav-menu-container {
    display: flex;
    flex: 1;
    justify-content: space-between;
    align-items: center;
}
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background 0.2s;
}
.mobile-menu-btn:hover {
    background: rgba(255,255,255,0.1);
}

/* Mobile Responsiveness */
@media (max-width: 1200px) {
    .charts-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    body {
        padding: 1rem;
    }
    header h1 {
        font-size: 1.8rem;
    }
    header p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    .navbar {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 15px;
        align-items: center;
    }
    .mobile-menu-btn {
        display: block;
    }
    .nav-menu-container {
        display: none;
        width: 100%;
        flex-direction: column;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid rgba(255,255,255,0.1);
        gap: 15px;
    }
    .nav-menu-container.active {
        display: flex;
    }
    .nav-links {
        margin-left: 0 !important;
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    .nav-link {
        font-size: 0.95rem;
        padding: 10px;
        width: 100%;
        text-align: center;
        background: rgba(255,255,255,0.05);
    }
    .nav-auth {
        margin-left: 0 !important;
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    .nav-auth > * {
        width: 100%;
        text-align: center;
        display: block;
    }
    .charts-grid {
        grid-template-columns: 1fr !important;
    }
    .admin-flex {
        flex-direction: column !important;
    }
    .admin-flex > div {
        width: 100% !important;
        flex: none !important;
    }
    .glass-input, .glass-select {
        width: 100% !important;
        padding: 0.5rem 0.8rem !important;
        font-size: 0.85rem !important;
    }
    .glass-button, .action-btn {
        padding: 0.5rem 0.8rem !important;
        font-size: 0.85rem !important;
    }
    .controls-container {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    .table-container {
        padding: 0.25rem;
    }
    th, td {
        padding: 0.4rem 0.3rem;
        font-size: 0.75rem;
    }
    .stat-card {
        padding: 10px;
    }
    #yetki-belgesi-stats {
        flex-wrap: wrap;
        gap: 5px !important;
    }
    #yetki-belgesi-stats > div {
        flex: 1 1 45%;
        padding: 8px !important;
        font-size: 0.8rem !important;
    }
}

