/* Admin Panel Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
    color: #fff;
    min-height: 100vh;
}

/* Navbar */
.navbar {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-back {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.2);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #9333ea, #db2777);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.nav-tab {
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-tab:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-tab.active {
    background: linear-gradient(135deg, #9333ea, #db2777);
    color: #fff;
}

/* Main Content */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

.page-title {
    font-size: 2rem;
    margin-bottom: 2rem;
}

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

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

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

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

.stat-label {
    color: #cbd5e1;
    font-size: 0.875rem;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stat-card.bg-blue .stat-icon { background: linear-gradient(135deg, #2563eb, #0891b2); }
.stat-card.bg-yellow .stat-icon { background: linear-gradient(135deg, #ca8a04, #ea580c); }
.stat-card.bg-green .stat-icon { background: linear-gradient(135deg, #16a34a, #10b981); }
.stat-card.bg-red .stat-icon { background: linear-gradient(135deg, #dc2626, #db2777); }

.stat-value {
    font-size: 2rem;
    font-weight: 700;
}

/* Card */
.card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-subtitle {
    color: #cbd5e1;
    margin-bottom: 1rem;
}

/* Live Status */
.live-status .live-dj {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(16, 185, 129, 0.2));
    border: 1px solid rgba(34, 197, 94, 0.5);
    border-radius: 0.75rem;
    padding: 1rem;
}

.live-avatar {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #16a34a, #10b981);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.live-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4ade80;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.live-pulse {
    width: 12px;
    height: 12px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.live-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.nonstop-status {
    text-align: center;
    padding: 2rem;
    color: #cbd5e1;
}

.nonstop-status i {
    font-size: 3rem;
    opacity: 0.5;
    margin-bottom: 1rem;
}

/* Recent Requests */
.recent-requests {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.request-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.request-info .request-song {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.request-info .request-meta {
    font-size: 0.875rem;
    color: #cbd5e1;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.pending {
    background: rgba(234, 88, 12, 0.2);
    color: #fbbf24;
}

.status-badge.accepted {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.status-badge.rejected {
    background: rgba(220, 38, 38, 0.2);
    color: #f87171;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #cbd5e1;
}

.empty-state i {
    font-size: 3rem;
    opacity: 0.5;
    margin-bottom: 1rem;
}

/* Requests List */
.filter-buttons {
    display: flex;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.filter-btn.active {
    background: linear-gradient(135deg, #9333ea, #db2777);
    color: #fff;
}

.requests-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.request-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.3s;
}

.request-card:hover {
    background: rgba(255, 255, 255, 0.1);
}

.request-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.request-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.request-artist {
    color: #cbd5e1;
    margin-bottom: 0.75rem;
}

.request-details {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: #cbd5e1;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.btn-icon {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-icon.btn-accept {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.btn-icon.btn-accept:hover {
    background: rgba(34, 197, 94, 0.3);
}

.btn-icon.btn-reject {
    background: rgba(220, 38, 38, 0.2);
    color: #f87171;
}

.btn-icon.btn-reject:hover {
    background: rgba(220, 38, 38, 0.3);
}

.btn-icon.btn-delete {
    background: rgba(220, 38, 38, 0.2);
    color: #f87171;
}

.btn-icon.btn-delete:hover {
    background: rgba(220, 38, 38, 0.3);
}

/* DJs Grid */
.djs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.dj-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s;
}

.dj-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.dj-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.dj-avatar {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #9333ea, #db2777);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.dj-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.dj-bio {
    color: #cbd5e1;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.dj-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

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

.btn-live {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-live.active {
    background: rgba(220, 38, 38, 0.2);
    color: #f87171;
}

.btn-live.inactive {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.btn-edit {
    padding: 0.75rem;
    background: rgba(37, 99, 235, 0.2);
    color: #60a5fa;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-edit:hover {
    background: rgba(37, 99, 235, 0.3);
}

/* Form Styles */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #cbd5e1;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    color: #fff;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #9333ea;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-primary {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #9333ea, #db2777);
    color: #fff;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    box-shadow: 0 10px 40px rgba(147, 51, 234, 0.5);
    transform: translateY(-2px);
}

.btn-success {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #16a34a, #10b981);
    color: #fff;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-success:hover {
    box-shadow: 0 10px 40px rgba(34, 197, 94, 0.5);
}

.btn-secondary {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-large {
    width: 100%;
    padding: 1rem;
    font-size: 1.125rem;
}

/* Widgets Layout */
.widgets-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 1.5rem;
}

.widgets-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.widget-types,
.widget-designs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.widget-type,
.design-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    border: none;
    border-radius: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-align: left;
}

.widget-type:hover,
.design-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.widget-type.active,
.design-btn.active {
    background: linear-gradient(135deg, #9333ea, #db2777);
    color: #fff;
}

.widget-preview {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0.75rem;
    padding: 1.5rem;
    min-height: 400px;
}

.code-block {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.code-block code {
    color: #4ade80;
    font-family: monospace;
    font-size: 0.875rem;
}

/* Settings */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.settings-grid .card.full-width {
    grid-column: 1 / -1;
}

.toggle-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.toggle-group:last-child {
    border-bottom: none;
}

.toggle {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 32px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #475569;
    transition: .4s;
    border-radius: 9999px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.toggle input:checked + .toggle-slider {
    background-color: #22c55e;
}

.toggle input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.image-upload {
    aspect-ratio: 1;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s;
}

.image-upload:hover {
    border-color: #9333ea;
    background: rgba(147, 51, 234, 0.1);
    color: #fff;
}

/* Responsive */
@media (max-width: 1024px) {
    .widgets-layout {
        grid-template-columns: 1fr;
    }

    .navbar-tabs {
        display: none;
    }
}

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

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

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

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