/* Claude Wrapped Admin Dashboard Styles */
:root {
    --bg-dark: #0a0a0f;
    --bg-card: rgba(20, 20, 35, 0.95);
    --bg-sidebar: rgba(15, 15, 25, 0.98);
    --neon-purple: #8b5cf6;
    --neon-pink: #ff006e;
    --neon-cyan: #00f5ff;
    --neon-green: #39ff14;
    --neon-orange: #ff9500;
    --text-primary: #fff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --text-muted: rgba(255, 255, 255, 0.3);
    --border-color: rgba(139, 92, 246, 0.2);
    --border-hover: rgba(139, 92, 246, 0.5);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
}

/* Sidebar */
.sidebar {
    width: 240px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.logo-icon {
    font-size: 1.5rem;
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    list-style: none;
    flex: 1;
}

.nav-links li {
    margin-bottom: 0.5rem;
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-links a:hover {
    background: rgba(139, 92, 246, 0.1);
    color: var(--text-primary);
}

.nav-links a.active {
    background: rgba(139, 92, 246, 0.2);
    color: var(--neon-purple);
    border: 1px solid var(--border-hover);
}

.nav-footer {
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.logout-btn {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 0, 110, 0.1);
    border: 1px solid rgba(255, 0, 110, 0.3);
    color: var(--neon-pink);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.logout-btn:hover {
    background: rgba(255, 0, 110, 0.2);
}

/* Main Content */
.content {
    flex: 1;
    margin-left: 240px;
    padding: 2rem;
    min-height: 100vh;
}

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

.header h1 {
    font-size: 1.75rem;
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#last-updated {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    border: none;
    color: white;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

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

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.2s;
}

.stat-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.stat-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Charts Grid */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.chart-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.chart-card h3 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--neon-purple);
}

.chart-container {
    height: 280px;
    position: relative;
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
}

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

.data-table th {
    background: rgba(139, 92, 246, 0.1);
    color: var(--neon-purple);
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.data-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.data-table td {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Feedback List */
.feedback-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feedback-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem;
    transition: all 0.2s;
}

.feedback-item:hover {
    border-color: var(--border-hover);
}

.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.feedback-type {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.feedback-type.improvement { background: rgba(139, 92, 246, 0.2); color: var(--neon-purple); }
.feedback-type.bug { background: rgba(255, 0, 110, 0.2); color: var(--neon-pink); }
.feedback-type.praise { background: rgba(57, 255, 20, 0.2); color: var(--neon-green); }
.feedback-type.other { background: rgba(255, 255, 255, 0.1); color: var(--text-secondary); }

.feedback-rating {
    color: var(--neon-orange);
}

.feedback-message {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.feedback-time {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Recent Section */
.recent-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.recent-section h3 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--neon-purple);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.modal-content input {
    width: 100%;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
}

.modal-content input:focus {
    outline: none;
    border-color: var(--neon-purple);
}

.modal-content button {
    width: 100%;
    margin-top: 0.5rem;
}

.error-text {
    color: var(--neon-pink);
    font-size: 0.85rem;
    text-align: center;
    margin-top: 0.5rem;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-purple { background: rgba(139, 92, 246, 0.2); color: var(--neon-purple); }
.badge-pink { background: rgba(255, 0, 110, 0.2); color: var(--neon-pink); }
.badge-cyan { background: rgba(0, 245, 255, 0.2); color: var(--neon-cyan); }
.badge-green { background: rgba(57, 255, 20, 0.2); color: var(--neon-green); }

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 60px;
        padding: 1rem 0.5rem;
    }

    .logo-text, .nav-links span:last-child {
        display: none;
    }

    .content {
        margin-left: 60px;
        padding: 1rem;
    }

    .charts-grid {
        grid-template-columns: 1fr;
    }
}
