/* ==========================================
   PodBrief Styles
   Organized by: Reset → Base → Layout → Components → Utilities
   ========================================== */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    min-height: 100vh;
    padding: 20px;
}

/* Ensure gradient covers full height */
html {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100%;
}

/* Mobile-specific background fixes */
@media (max-width: 768px) {
    html {
        height: 100%;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
        background-attachment: scroll !important;
        background-repeat: no-repeat !important;
        background-size: 100% 100% !important;
    }

    body {
        height: 100%;
        min-height: 100vh;
        min-height: -webkit-fill-available; /* Safari mobile fix */
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
        background-attachment: scroll !important;
        background-repeat: no-repeat !important;
        background-size: 100% 100% !important;
        padding: 10px;
    }

    /* Safari iOS specific fixes */
    @supports (-webkit-appearance: none) {
        html, body {
            background: #667eea !important;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
            background-attachment: scroll !important;
            -webkit-background-size: 100% 100% !important;
            background-size: 100% 100% !important;
        }

        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            z-index: -1;
        }
    }

    .container {
        margin: 0;
        border-radius: 12px;
        min-height: calc(100vh - 20px);
        min-height: calc(-webkit-fill-available - 20px); /* Safari mobile fix */
    }

    /* Force gradient on hero section for mobile Safari */
    .hero-section {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    }

    /* Ensure header is transparent on mobile */
    .header {
        background: transparent !important;
    }

    /* Force white text on mobile since background is always gradient */
    .header h1 {
        color: white !important;
    }

    .header p {
        color: white !important;
        opacity: 0.9;
    }

    /* Mobile container adjustments - force transparent background */
    .container {
        background: transparent !important;
        box-shadow: none !important;
    }

    /* Target only header areas specifically */
    .header, .header-content, .header-content > div {
        background: transparent !important;
    }

    /* Ensure form section has white background on mobile */
    .form-section {
        background: white !important;
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        margin: 1rem 0;
    }

    /* Footer should also be transparent */
    .footer {
        background: transparent !important;
    }
}

/* Layout Components */
.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    overflow: hidden;
}

/* Wide screen layout adjustments */
@media (min-width: 1200px) {
    .container {
        max-width: none;
        width: 100%;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
    }

    /* Hero gets full width background */
    .hero-section {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
    }

    /* Form section stays readable width */
    .form-section {
        max-width: 800px;
        margin: 0 auto;
        background: white;
        border-radius: 16px;
        box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    }

    /* Footer gets some breathing room */
    .footer {
        background: transparent;
        margin: 2rem auto 0;
        max-width: 800px;
        color: rgba(255, 255, 255, 0.7);
    }
}

.header {
    background: transparent;
    color: #1a1a1a;
    padding: 1.5rem 2rem;
    position: relative;
    z-index: 10;
}

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

.header-content > div:first-child {
    flex: 1;
}

.auth-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.login-btn {
    background: #5B3FF5;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(91, 63, 245, 0.2);
}

.login-btn:hover {
    background: #4c2fcc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(91, 63, 245, 0.3);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #1a1a1a;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #e0e0e0;
}

.user-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: #1a1a1a;
}

.user-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border: 1px solid #e0e0e0;
    background: white;
    color: #666;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.btn-small:hover {
    background: #f8f9fa;
    border-color: #ccc;
    color: #333;
}

/* Stripe-style Hero Section */
.hero-section {
    background: transparent;
    padding: 4rem 2rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 0 2rem;
}

.hero-headline {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

.stat {
    text-align: center;
}

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

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

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.cta-primary {
    background: white;
    color: #5B3FF5;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.cta-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cta-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}

.cta-divider {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

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

.feature-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.15);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.feature-card p {
    line-height: 1.6;
    opacity: 0.9;
    color: white;
}

@media (max-width: 768px) {
    .hero-headline {
        font-size: 2.5rem;
    }

    .hero-stats {
        gap: 2rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-primary, .cta-secondary {
        width: 100%;
        max-width: 300px;
    }
}

.header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    color: #1a1a1a;
}

.header p {
    font-size: 0.95rem;
    color: #666;
    margin: 0.25rem 0 0 0;
    opacity: 0.8;
}

/* White text when hero is visible (authenticated and non-authenticated users on index) */
body.show-hero .header h1 {
    color: white;
}

body.show-hero .header p {
    color: white;
    opacity: 0.9;
}

body.show-hero .header {
    margin-bottom: 2rem;
}

.form-section {
    padding: 40px;
}

/* Form Elements */
.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

input[type="url"], select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input[type="url"]:focus, select:focus {
    outline: none;
    border-color: #667eea;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.submit-btn:hover {
    transform: translateY(-2px);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Status and Progress */
.status {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    display: none;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e6ed;
    border-radius: 4px;
    overflow: hidden;
    margin: 15px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: 0%;
    transition: width 0.3s;
}

/* Error and Result Sections */
.error {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    display: none;
}

.error-network {
    background: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.error-validation {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.error-server {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.error-timeout {
    background: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

.result {
    margin-top: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    display: none;
}

.result h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.result-content {
    line-height: 1.5;
    color: #34495e;
}

.result-content h1, .result-content h2, .result-content h3 {
    color: #2c3e50;
    margin: 12px 0 6px 0;
}

.result-content ul, .result-content ol {
    margin: 6px 0;
    padding-left: 20px;
}

.result-content p {
    margin: 6px 0;
}

.result-content code {
    background: #f1f2f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Consolas', monospace;
}

.result-content pre {
    background: #f1f2f6;
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto;
}

/* Share Section */
.share-section {
    background: #e8f4fd;
    border: 1px solid #bee5eb;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
}

.share-section h4 {
    color: #0c5460;
    margin: 0 0 10px 0;
    font-size: 1.1em;
}

.share-url-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.share-url {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #bee5eb;
    border-radius: 4px;
    background: white;
    font-family: monospace;
    font-size: 0.9em;
    color: #0c5460;
}

.copy-btn {
    padding: 8px 16px;
    background: #17a2b8;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.2s;
}

.copy-btn:hover {
    background: #138496;
}

.copy-btn.copied {
    background: #28a745;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Tabs */
.tabs {
    display: flex;
    border-bottom: 2px solid #e1e5e9;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.tab-button {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #666;
    font-size: 1em;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.tab-button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #333;
}

.tab-button.active {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-weight: 600;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.tab-content {
    position: relative;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

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

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

/* Video Embed */
.video-embed {
    margin-bottom: 20px;
    text-align: center;
}

.video-embed iframe {
    width: 100%;
    height: 315px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Responsive video embed */
@media (max-width: 600px) {
    .video-embed iframe {
        height: 250px;
    }
}

/* Transcript Styles */
.transcript-content {
    max-height: 500px;
    overflow-y: auto;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-family: 'Menlo', 'Monaco', 'Consolas', monospace;
    font-size: 0.9em;
    line-height: 1.6;
}

.transcript-segment {
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.transcript-segment:last-child {
    border-bottom: none;
}

.transcript-timestamp {
    color: #667eea;
    font-weight: 600;
    font-size: 0.85em;
    margin-right: 10px;
    min-width: 60px;
    display: inline-block;
    cursor: pointer;
    transition: all 0.2s ease;
}

.transcript-timestamp:hover {
    color: #5B3FF5;
    text-decoration: underline;
    transform: scale(1.05);
}

.transcript-text {
    color: #333;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9em;
    margin-top: 30px;
}

.footer-links {
    margin-top: 1rem;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

/* ==========================================
   Shared Summary Page Styles
   ========================================== */

/* Shared summary page - always transparent container background */
body.shared-summary-page .container {
    background: transparent !important;
    box-shadow: none !important;
}

/* Logo link styling - remove link appearance */
.logo-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
    transition: opacity 0.2s ease;
}

.logo-link:hover {
    opacity: 0.8;
}

.logo-link h1 {
    margin: 0;
}

/* Shared summary page - white header text on gradient at all screen sizes */
body.shared-summary-page .header h1,
body.shared-summary-page .header p {
    color: white !important;
}

body.shared-summary-page .header p {
    opacity: 0.9;
}

/* Ensure form section has white background on shared summary page */
body.shared-summary-page .form-section {
    background: white !important;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.meta-info-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.video-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.4;
}

.video-link-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: rgba(103, 126, 234, 0.05);
}

.video-link-modern:hover {
    color: #5B3FF5;
    background: rgba(103, 126, 234, 0.1);
    transform: translateY(-2px);
}

.video-link-modern svg {
    flex-shrink: 0;
}

.detail-badge-modern {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(103, 126, 234, 0.3);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* Summary Content Modern Styling */
.summary-content-modern {
    line-height: 1.6;
    color: #2c3e50;
    font-size: 1.05rem;
}

.summary-content-modern h1 {
    color: #1a1a1a;
    font-size: 2rem;
    font-weight: 700;
    margin: 1.5rem 0 0.75rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.summary-content-modern h2 {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 1.25rem 0 0.5rem 0;
    padding-left: 1rem;
    border-left: 4px solid #667eea;
}

.summary-content-modern h3 {
    color: #34495e;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1rem 0 0.5rem 0;
}

.summary-content-modern p {
    margin: 0.5rem 0;
    line-height: 1.6;
}

.summary-content-modern ul, .summary-content-modern ol {
    margin: 0.5rem 0 0.5rem 1.5rem;
    padding-left: 1rem;
}

.summary-content-modern li {
    margin: 0.35rem 0;
    line-height: 1.6;
}

.summary-content-modern ul li {
    position: relative;
}

.summary-content-modern ul li::marker {
    color: #667eea;
    font-size: 1.2em;
}

.summary-content-modern strong {
    color: #1a1a1a;
    font-weight: 600;
}

.summary-content-modern code {
    background: linear-gradient(135deg, rgba(103, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.9em;
    color: #5B3FF5;
    border: 1px solid rgba(103, 126, 234, 0.2);
}

.summary-content-modern pre {
    background: linear-gradient(135deg, rgba(103, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    border: 1px solid rgba(103, 126, 234, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.summary-content-modern pre code {
    background: none;
    padding: 0;
    border: none;
    color: #2c3e50;
}

.summary-content-modern blockquote {
    border-left: 4px solid #667eea;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: rgba(103, 126, 234, 0.05);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #34495e;
}

.summary-content-modern a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.summary-content-modern a:hover {
    color: #5B3FF5;
    border-bottom-color: #5B3FF5;
}

/* Responsive adjustments for shared summary */
@media (max-width: 768px) {

    .video-title {
        font-size: 1.1rem;
    }

    .summary-content-modern {
        font-size: 1rem;
    }

    .summary-content-modern h1 {
        font-size: 1.5rem;
    }

    .summary-content-modern h2 {
        font-size: 1.25rem;
    }

    .summary-content-modern h3 {
        font-size: 1.1rem;
    }
}

/* ==========================================
   Admin Dashboard Page Styles
   ========================================== */

/* Admin page body */
body.admin-page {
    background: #f5f7fa;
    padding: 0;
    min-height: 100vh;
}

/* Wide container for admin pages */
.wide-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Admin header variant */
.admin-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
}

.admin-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

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

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-card h3 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 1rem;
}

.stat-card .stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

.stat-card .stat-label {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Admin Tables */
.table-section {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    overflow: hidden;
}

.table-section h2 {
    background: #667eea;
    color: white;
    padding: 20px 25px;
    margin: 0;
    font-size: 1.3rem;
}

.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e1e5e9;
}

th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
    position: sticky;
    top: 0;
    z-index: 10;
}

tr:hover {
    background: #f8f9fa;
}

td a {
    color: #667eea;
    text-decoration: none;
}

td a:hover {
    text-decoration: underline;
}

/* Admin responsive */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .table-container {
        font-size: 0.9em;
    }

    th, td {
        padding: 8px 12px;
    }
}