/* =========================================
   Venradio - Dashboard Shared Styles (3-Column Layout & Karnaval Theme)
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700&family=Outfit:wght@400;600;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* Layout - Yeni Sütunlu Grid (.dashboard-body) */
.dashboard-layout {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
}

.dashboard-body {
    display: flex;
    flex: 1;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

/* Sidebar (Left Column) */
.sidebar {
    width: 280px;
    flex-shrink: 0;
    background-color: var(--bg-header);
    /* Unified dark header shade */
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    z-index: 10;
    border-right: 1px solid var(--border-light);
}

.logo-small {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 2.5rem;
    padding: 0 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-small span {
    color: var(--accent-color);
}

.nav-menu {
    flex: 1;
    overflow-y: auto;
}

.nav-menu ul {
    list-style: none;
    margin-bottom: 2rem;
    padding: 0;
}

.nav-menu li {
    padding: 0.8rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    /* Sharper */
    background-color: transparent;
    border-left: 3px solid transparent;
    /* Prepare for cyber active left-border */
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-menu li:hover {
    color: white;
    background-color: rgba(0, 240, 255, 0.05);
    /* Cyan tint */
    border-left-color: rgba(0, 240, 255, 0.5);
    transform: translateX(5px);
}

.nav-menu li:active {
    transform: translateX(2px);
}

.nav-menu li.active {
    color: white;
    background: rgba(0, 240, 255, 0.1);
    /* Glow background */
    border-left: 3px solid var(--accent-color);
    /* Cyberpunk side-border */
    box-shadow: inset 50px 0 50px -50px rgba(0, 240, 255, 0.2);
    /* Inner glow */
}

.nav-menu li.active:active {
    transform: scale(0.98);
}

/* Main Content Area (Middle Column) */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.1), transparent 60%),
        radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.05), transparent 50%);
    background-color: var(--bg-base);
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 2rem;
}

/* Top Bar (Sticky) */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: rgba(15, 16, 20, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 5;
    height: 72px;
    border-bottom: 1px solid var(--border-light);
}

.top-bar h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}

.user-profile:hover {
    background: var(--grad-primary);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.6);
}

/* Phase 22: Notifications */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.notification-bell {
    position: relative;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.notification-bell:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.notification-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 10px;
    height: 10px;
    background: #ef4444;
    /* red */
    border-radius: 50%;
    display: none;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.8);
}

.notification-badge.active {
    display: block;
}

/* Notification Dropdown */
.notification-dropdown {
    position: absolute;
    top: 60px;
    right: 20px;
    width: 320px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 100;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.notification-dropdown.active {
    display: flex;
}

.notif-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notif-header h4 {
    margin: 0;
    font-size: 1rem;
}

.notif-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.2rem;
}

.notif-list {
    max-height: 300px;
    overflow-y: auto;
}

.notif-item {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s;
}

.notif-item:last-child {
    border-bottom: none;
}

.notif-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.notif-item.unread {
    background: rgba(16, 185, 129, 0.05);
}

.notif-item h5 {
    margin: 0 0 0.3rem 0;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.notif-item p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.notif-item span {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Content Sections */
.content-section {
    padding: 1.5rem 2rem;
}

.content-section>h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

/* Glass Panels (Reusable component - modernized) */
.glass-panel {
    background: var(--bg-card);
    border-radius: 4px;
    /* Sharper */
    padding: 2.5rem;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.05), inset 0 0 10px rgba(0, 240, 255, 0.02);
    border: 1px solid var(--border-light);
}

/* Feature Specific: Listener Grid */
.playlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.playlist-card {
    background: var(--bg-card);
    border-radius: 4px;
    /* Sharper */
    padding: 1rem;
    transition: var(--transition-fast);
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(0, 240, 255, 0.05);
}

.playlist-card:hover {
    background: rgba(0, 240, 255, 0.03);
    border-color: var(--accent-color);
    box-shadow: var(--neon-glow);
    transform: translateY(-5px);
}

.playlist-cover {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(112, 0, 255, 0.1));
    border-radius: 4px;
    margin-bottom: 1rem;
    box-shadow: inset 0 0 20px rgba(0, 240, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--accent-color);
    border: 1px solid var(--border-light);
}

/* Play Button on Card Hover */
.playlist-card .play-btn-overlay {
    position: absolute;
    bottom: 5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    background-color: var(--grad-primary);
    border-radius: 4px;
    /* Sharp */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition-fast);
    box-shadow: var(--neon-glow);
    z-index: 2;
}

.playlist-card:hover .play-btn-overlay {
    opacity: 1;
    transform: translateY(0);
}

.playlist-card .play-btn-overlay:hover {
    transform: scale(1.1);
    background-color: var(--accent-hover);
}

.playlist-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    font-weight: 700;
    font-family: var(--font-heading);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Form Styles (Artist Upload - Modernized) */
.upload-card {
    max-width: 600px;
    margin: 0 auto;
}

.upload-form {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
}

.form-group input[type="text"],
.form-group input[type="file"],
.form-group select {
    padding: 14px;
    background: rgba(0, 240, 255, 0.03);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: var(--transition-fast);
}

.form-group input[type="text"]:focus,
.form-group input[type="file"]:focus,
.form-group select:focus {
    border-color: var(--accent-color);
    box-shadow: var(--neon-glow);
    background: rgba(0, 240, 255, 0.08);
}

.checkbox-group {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-color);
    margin-top: 2px;
}

.prime-btn {
    width: 100%;
    padding: 14px 32px;
    background: var(--grad-primary);
    border: none;
    border-radius: 4px;
    color: white;
    font-weight: 700;
    font-family: var(--font-cyber);
    font-size: 1rem;
    cursor: pointer;
    margin-top: 1rem;
    transition: var(--transition-fast);
    box-shadow: var(--neon-glow);
}

.prime-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.2);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.6);
}

/* Editor Inbox Styles (Modernized List) */
.inbox-list {
    display: flex;
    flex-direction: column;
}

.inbox-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-radius: 4px;
    /* Sharper */
    border: 1px solid transparent;
    transition: var(--transition-fast);
}

.inbox-item:hover {
    background-color: rgba(0, 240, 255, 0.03);
    /* Cyan tint */
    border-color: var(--border-light);
    box-shadow: inset 0 0 15px rgba(0, 240, 255, 0.05);
}

.item-info {
    flex: 1;
}

.item-info h4 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
    font-weight: 500;
}

.item-info p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.timestamp-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    border-radius: 4px;
}

.item-actions {
    display: flex;
    gap: 0.5rem;
    opacity: 0.8;
}

.inbox-item:hover .item-actions {
    opacity: 1;
}

.action-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-light);
    background: transparent;
    border-radius: 4px;
    /* Sharper */
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-fast);
    color: white;
}

.action-btn.play {
    border-color: transparent;
    font-size: 1.5rem;
    padding: 0.2rem;
}

.action-btn.play:hover {
    transform: scale(1.1);
}

.action-btn.approve {
    border-color: #10b981;
    /* Green for approve */
    color: #10b981;
}

.action-btn.approve:hover {
    background: rgba(16, 185, 129, 0.2);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.action-btn.reject {
    border-color: transparent;
    color: var(--text-secondary);
}

.action-btn.reject:hover {
    color: white;
}



/* Utils */
.hidden {
    display: none !important;
}

/* Loader for Timestamp Simulation */
.blockchain-loader {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--text-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem auto;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.feedback-msg {
    margin-top: 2rem;
    text-align: center;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    animation: fadeUp 0.3s ease-out;
}

/* Phase 22: Profile Modal Details */
.profile-avatar-wrapper {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem auto;
    position: relative;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    /* Square */
    object-fit: cover;
    border: 2px solid var(--accent-color);
    box-shadow: var(--neon-glow);
    background: var(--bg-card);
}

.profile-avatar-edit {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 36px;
    height: 36px;
    background: var(--text-primary);
    color: var(--bg-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    transition: transform 0.2s;
}

.profile-avatar-edit:hover {
    transform: scale(1.1);
}

#mProfileAvatarUpload {
    display: none;
}

/* Phase 45: Upload Form 2-Column Grid Layout */
.upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.upload-grid .upload-col-left,
.upload-grid .upload-col-right {
    display: flex;
    flex-direction: column;
}

/* Custom Modal Scroller for Vertical Exceed */
.modal-form::-webkit-scrollbar {
    width: 6px;
}

.modal-form::-webkit-scrollbar-track {
    background: transparent;
}

.modal-form::-webkit-scrollbar-thumb {
    background: rgba(0, 240, 255, 0.3);
    border-radius: 3px;
}

.modal-form::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 240, 255, 0.6);
}

@media (max-width: 768px) {
    .upload-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .modal-box {
        width: 100vw !important;
        max-height: 100vh !important;
        border-radius: 0;
    }
}

/* LIGHT MODE OVERRIDES FOR DASHBOARD */
[data-theme="light"] .dashboard-layout,
[data-theme="light"] .main-content {
    background-color: var(--bg-base);
    background-image: none;
}

[data-theme="light"] .sidebar {
    background-color: #ffffff;
    border-right: 1px solid var(--border-light);
}

[data-theme="light"] .top-bar {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid var(--border-light);
}

[data-theme="light"] .glass-panel {
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .song-list-container, [data-theme="light"] .playlist-card {
    background: #ffffff;
    border-color: var(--border-light);
}

[data-theme="light"] .form-group label {
    color: var(--text-primary);
}

[data-theme="light"] .action-btn {
    color: var(--text-primary);
}

/* Certificate Print Styles */
@media print {
    body * {
        visibility: hidden;
    }
    
    #certificateModal, #certificateModal * {
        visibility: visible;
    }
    
    #certificateModal {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
        border: none !important;
        box-shadow: none !important;
        background: white !important;
    }
    
    .cert-modal-container {
        border: none !important;
        box-shadow: none !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .printable-area {
        margin: 0 auto;
        padding: 2cm !important;
        width: 100%;
        height: auto;
    }
    
    .no-print {
        display: none !important;
    }
}
