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

:root {
    --primary-color: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --secondary-color: #ec4899;
    --background-color: #0f0f23;
    --surface-color: #1a1a3e;
    --surface-light: #252550;
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    --gradient-secondary: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Modern scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-color);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

.navbar {
    background-color: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    padding: 0 50px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.navbar-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo {
    color: var(--primary-color);
    font-size: 1.5em;
    font-weight: 700;
    text-decoration: none;
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.navbar-user span {
    color: var(--subtle-text-color);
}

.navbar-user a {
    color: var(--subtle-text-color);
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 6px;
    transition: background-color 0.3s, color 0.3s;
}

.navbar-user a:hover {
    background-color: #2a2a2a;
    color: var(--text-color);
}

.logout-btn {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.logout-btn:hover {
    background-color: var(--primary-color) !important;
    color: var(--surface-color) !important;
}

.container {
    width: 100%;
    max-width: 900px;
    margin: 40px auto;
    background-color: var(--surface-color);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

header {
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    margin: 0;
    font-size: 2.8em;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -1px;
}

header p {
    color: var(--subtle-text-color);
    font-size: 1.1em;
}

.api-key-section {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

#apiKey {
    flex-grow: 1;
}

.tabs {
    display: flex;
    border-bottom: 2px solid #ddd;
    margin-bottom: 20px;
}

.tab-link {
    background-color: transparent;
    border: none;
    padding: 15px 25px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 500;
    position: relative;
    color: var(--subtle-text-color);
    transition: color 0.3s ease;
}

.tab-link:hover {
    color: var(--primary-color);
}

.tab-link.active {
    color: var(--primary-color);
}

.tab-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

textarea, input[type="text"], input[type="password"] {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    background-color: #2a2a2a;
    color: var(--text-color);
    border-radius: 8px;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

textarea:focus, input[type="text"]:focus, input[type="password"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

textarea {
    resize: vertical;
}

.options {
    display: flex;
    gap: 15px;
}

button[type="submit"] {
    background: linear-gradient(90deg, #4a90e2, #50e3c2);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.results-section {
    margin-top: 30px;
}

.results-section h2 {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

#results-container {
    background-color: var(--background-color);
    padding: 25px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    min-height: 150px;
    white-space: pre-wrap;
    word-wrap: break-word;
    transition: all 0.3s;
}

#results-container img {
    max-width: 48%;
    border-radius: 6px;
    margin: 1%;
}

#results-container video {
    max-width: 100%;
    border-radius: 6px;
}

.loader {
    border: 4px solid #333;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 30px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.history-section {
    margin-top: 40px;
}

.history-section h2, .results-section h2 {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-weight: 500;
}

#history-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.history-item {
    background-color: #2a2a2a;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.history-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.9em;
    color: var(--subtle-text-color);
}

.history-header strong {
    color: var(--primary-color);
}

.history-prompt {
    font-style: italic;
    margin-bottom: 15px;
    white-space: pre-wrap; /* Allow wrapping */
    word-break: break-word; /* Break long words */
    max-height: 100px; /* Optional: limit height */
    overflow-y: auto; /* Add scroll if needed */
}

.history-content {
    display: flex;
    flex-direction: column; /* Dikey hizalama için */
    justify-content: center;
    align-items: center;
    background-color: var(--background-color);
    border-radius: 6px;
    padding: 10px;
    min-height: 100px;
    position: relative;
}

.history-video-link {
    display: block;
    margin-top: 8px;
    padding: 4px 8px;
    background-color: var(--primary-light);
    color: var(--background-color);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 500;
    text-align: center;
    transition: background-color 0.2s;
}

.history-video-link:hover {
    background-color: var(--primary-dark);
    color: white;
}

.history-content .error-text {
    color: var(--error-color);
    font-size: 0.9em;
    font-style: italic;
}

.history-content pre {
    font-size: 0.8em;
    white-space: pre-wrap;
    word-break: break-all;
}

.history-content img, .history-content video {
    max-width: 100%;
    max-height: 150px;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s;
}

.history-content img:hover, .history-content video:hover {
    transform: scale(1.05);
}

/* Platform Specific Styles */

/* Hero Section */
.hero-section {
    background: var(--gradient-primary);
    padding: 100px 0 80px;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(99, 102, 241, 0.3) 0%, transparent 70%),
                radial-gradient(circle at 70% 80%, rgba(236, 72, 153, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: center;
    color: white;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Models Section */
.models-section {
    padding: 80px 0;
    background: var(--background-color);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.model-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.model-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.model-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.model-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.model-card:hover::before {
    transform: scaleX(1);
}

.model-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.model-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.model-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.model-features {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.model-features span {
    background: var(--surface-light);
    color: var(--text-color);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.model-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.model-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

/* AI Studio */
.ai-studio {
    background: var(--surface-color);
    min-height: calc(100vh - 60px);
    padding: 2rem 0;
}

.studio-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0 20px;
}

.studio-tabs {
    display: flex;
    gap: 0.5rem;
}

.studio-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.studio-tab.active,
.studio-tab:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.tab-icon {
    font-size: 1.2rem;
}

.close-studio {
    background: var(--error-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.close-studio:hover {
    transform: scale(1.1);
}

.studio-content {
    display: none;
}

.studio-content.active {
    display: block;
}

.studio-workspace {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.input-panel,
.output-panel {
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
}

.input-panel h3,
.output-panel h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    color: var(--text-color);
}

.studio-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.prompt-area textarea {
    width: 100%;
    min-height: 120px;
    padding: 1rem;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    color: var(--text-color);
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.prompt-area textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.options-grid input,
.options-grid select {
    padding: 0.75rem;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    color: var(--text-color);
    font-family: inherit;
}

.prompt-tools {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tool-btn {
    background: var(--surface-light);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

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

.generate-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.btn-icon {
    font-size: 1.2rem;
}

.results-area {
    min-height: 300px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1.5rem;
    overflow-y: auto;
}

.results-area.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.results-area.gallery img {
    width: 100%;
    border-radius: 0.5rem;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.results-area.gallery img:hover {
    transform: scale(1.05);
}

.results-area.video-area video {
    width: 100%;
    border-radius: 0.5rem;
}

.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
}

.file-upload {
    margin: 1rem 0;
}

.upload-label {
    display: block;
    padding: 1rem;
    background: var(--surface-light);
    border: 2px dashed var(--border-color);
    border-radius: 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-label:hover {
    border-color: var(--primary-color);
    background: var(--surface-color);
}

.file-upload input[type="file"] {
    display: none;
}

/* Analytics Section */
.analytics-section {
    padding: 80px 0;
    background: var(--background-color);
}

.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.history-item {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.history-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Loader */
.loader {
    display: none;
    text-align: center;
    padding: 2rem;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.footer {
    background-color: var(--surface-color);
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    text-align: center;
    padding: 20px;
    margin-top: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .model-cards {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
    
    .studio-workspace {
        grid-template-columns: 1fr;
    }
    
    .studio-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .studio-tabs {
        width: 100%;
        justify-content: center;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .navbar {
        padding: 0 20px;
    }
}

/* Admin Panel Styles */
.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 30px;
    padding: 10px;
    background-color: #2a2a2a;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.admin-tab {
    padding: 12px 18px;
    background-color: transparent;
    color: var(--subtle-text-color);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.admin-tab:hover {
    background-color: #333;
    color: var(--text-color);
}

.admin-tab.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.admin-content {
    background-color: #2a2a2a;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.admin-content h2 {
    margin-top: 0;
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: var(--background-color);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.stat-card h3 {
    margin: 0 0 10px 0;
    color: var(--subtle-text-color);
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-number {
    font-size: 2em;
    font-weight: 700;
    color: var(--primary-color);
}

/* Model Stats */
.model-stats {
    margin-bottom: 30px;
}

.model-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: var(--background-color);
    margin-bottom: 8px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.model-name {
    font-weight: 500;
    color: var(--text-color);
}

.model-count {
    color: var(--primary-color);
    font-weight: 600;
}

/* Cache Stats */
.cache-stats {
    background-color: var(--background-color);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.cache-stats h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.cache-stats p {
    margin: 8px 0;
    color: var(--text-color);
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 500;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(90deg, #4a90e2, #50e3c2);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.btn-warning {
    background-color: #f39c12;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-warning:hover {
    background-color: #e67e22;
    transform: translateY(-1px);
}

.btn-danger {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-danger:hover {
    background-color: #c0392b;
    transform: translateY(-1px);
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.8em;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    border: 1px solid var(--border-color);
    background-color: #333;
    color: var(--text-color);
}

.btn-small:hover {
    background-color: #444;
    transform: translateY(-1px);
}

.btn-small.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* User Table */
.user-table {
    overflow-x: auto;
    margin-top: 20px;
}

.user-table table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--background-color);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.user-table th,
.user-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.user-table th {
    background-color: #333;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8em;
    letter-spacing: 0.5px;
}

.user-table tr:hover {
    background-color: #2a2a2a;
}

.user-table td {
    color: var(--text-color);
}

/* Cache Management */
.cache-info {
    background-color: var(--background-color);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.cache-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Logs */
.log-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.logs-container {
    max-height: 500px;
    overflow-y: auto;
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
}

.log-entry {
    margin-bottom: 10px;
    padding: 8px;
    border-radius: 4px;
    border-left: 4px solid #666;
}

.log-entry.log-error {
    background-color: rgba(231, 76, 60, 0.1);
    border-left-color: #e74c3c;
}

.log-entry.log-warning {
    background-color: rgba(243, 156, 18, 0.1);
    border-left-color: #f39c12;
}

.log-entry.log-info {
    background-color: rgba(74, 144, 226, 0.1);
    border-left-color: #4a90e2;
}

.log-entry pre {
    margin: 0;
    font-family: 'Courier New', monospace;
    font-size: 0.8em;
    color: var(--text-color);
    white-space: pre-wrap;
    word-break: break-all;
}

/* System Info */
.system-info {
    background-color: var(--background-color);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.system-info p {
    margin: 12px 0;
    color: var(--text-color);
    display: flex;
    justify-content: space-between;
}

.system-info strong {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        margin: 20px;
        padding: 20px;
    }
    
    .admin-tabs {
        flex-direction: column;
    }
    
    .admin-tab {
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .cache-actions {
        flex-direction: column;
    }
    
    .log-filters {
        flex-direction: column;
    }
    
    .user-table {
        font-size: 0.9em;
    }
    
    .navbar {
        padding: 0 20px;
    }
    
    .navbar-user {
        flex-direction: column;
        gap: 5px;
    }
}

/* Dark scrollbar for logs */
.logs-container::-webkit-scrollbar {
    width: 8px;
}

.logs-container::-webkit-scrollbar-track {
    background: var(--background-color);
}

.logs-container::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

.logs-container::-webkit-scrollbar-thumb:hover {
    background: #777;
}
