/* Import Poppins Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,600&display=swap');

/* Root Variables */
:root {
    --primary-color: #00d9ff;
    --secondary-color: #00b8d4;
    --accent-color: #0097a7;
    --bg-dark: #f0f9fa;
    --bg-light: #ffffff;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --text-muted: #999999;
    --border-color: #e0e0e0;
    --success: #4caf50;
    --warning: #ff9800;
    --danger: #f44336;
    --info: #2196f3;
    --sidebar-width: 200px;
    --header-height: 60px;
}

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

html {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: var(--text-dark);
    background-color: var(--bg-dark);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100vw;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

button {
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    border: none;
    outline: none;
    transition: all 0.3s ease;
}

input, select, textarea {
    font-family: 'Poppins', sans-serif;
    outline: none;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* System Message Banner */
.system-message {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 999;
    animation: slideDown 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.system-message-info {
    background: #e3f2fd;
    border-bottom: 2px solid #2196f3;
    color: #1565c0;
}

.system-message-warning {
    background: #fff3e0;
    border-bottom: 2px solid #ff9800;
    color: #e65100;
}

.system-message-maintenance {
    background: #ffe0b2;
    border-bottom: 2px solid #ff5722;
    color: #bf360c;
}

.system-message-error {
    background: #ffebee;
    border-bottom: 2px solid #f44336;
    color: #c62828;
}

.system-message-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.system-message-content i {
    font-size: 18px;
}

.system-message-close {
    background: rgba(0,0,0,0.1);
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    opacity: 0.7;
    transition: all 0.2s;
    font-size: 16px;
}

.system-message-close:hover {
    opacity: 1;
    background: rgba(0,0,0,0.2);
    transform: scale(1.1);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 1000;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-toggle {
    background: none;
    font-size: 24px;
    color: var(--text-dark);
    cursor: pointer;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 5px;
}

.logo-icon {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #00d9ff 0%, #00b8d4 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 700;
}

.page-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.notification-btn {
    position: relative;
    background: none;
    font-size: 20px;
    color: var(--text-dark);
    padding: 8px;
}

.notification-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.user-avatar {
    width: 35px;
    height: 35px;
    background: var(--text-dark);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.user-details {
    text-align: right;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
}

.user-role {
    font-size: 12px;
    color: var(--text-muted);
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: var(--sidebar-width);
    height: calc(100vh - var(--header-height));
    background: var(--bg-light);
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 999;
}

.sidebar.collapsed {
    transform: translateX(-100%);
}

.main-content {
    margin-left: var(--sidebar-width);
    margin-top: var(--header-height);
    padding: 30px;
    min-height: calc(100vh - var(--header-height));
    transition: margin-left 0.3s ease;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.main-content.expanded {
    margin-left: 0;
}

.sidebar-logo {
    padding: 25px 20px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    background: white;
    display: none !important; /* Hidden on PC - FORCE HIDE */
}

.sidebar-logo .logo {
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.sidebar-logo .logo-icon {
    background: linear-gradient(135deg, #00d9ff 0%, #00b8d4 100%);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.sidebar-logo .logo span {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 2px;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.new-release-btn {
    width: 100%;
    padding: 12px 20px;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.new-release-btn:hover {
    background: var(--secondary-color);
}

.sidebar-menu {
    list-style: none;
    padding: 10px 0;
}

.menu-item {
    margin: 2px 0;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
}

.menu-link:hover {
    background: var(--bg-dark);
    color: var(--primary-color);
}

.menu-link.active {
    background: var(--bg-dark);
    color: var(--primary-color);
    border-left: 3px solid var(--primary-color);
}

.menu-icon {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

/* Dashboard Cards */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Chart Section */
.chart-section {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.chart-header {
    margin-bottom: 20px;
}

.chart-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

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

/* Recent Releases */
.releases-section {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.view-all-btn {
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

.release-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.release-item:last-child {
    border-bottom: none;
}

.release-artwork {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.release-info {
    flex: 1;
}

.release-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.release-artist {
    font-size: 13px;
    color: var(--text-muted);
}

.release-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--text-light);
}

.release-upc {
    font-size: 12px;
    color: var(--text-muted);
}

/* Top Labels Chart */
.labels-chart {
    display: flex;
    align-items: center;
    gap: 30px;
}

.donut-chart {
    width: 150px;
    height: 150px;
}

.labels-list {
    flex: 1;
}

.label-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.label-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.label-name {
    flex: 1;
    font-size: 14px;
    color: var(--text-dark);
}

.label-count {
    font-weight: 600;
    color: var(--text-dark);
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.1);
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

.btn-primary:hover {
    background: var(--secondary-color);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-secondary {
    background: var(--text-muted);
    color: white;
}

/* Badges */
.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background: #e8f5e9;
    color: var(--success);
}

.badge-warning {
    background: #fff3e0;
    color: var(--warning);
}

.badge-danger {
    background: #ffebee;
    color: var(--danger);
}

.badge-info {
    background: #e3f2fd;
    color: var(--info);
}

.badge-secondary {
    background: #f5f5f5;
    color: var(--text-muted);
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

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

.data-table thead {
    background: var(--bg-dark);
}

.data-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 13px;
}

.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.data-table tbody tr:hover {
    background: var(--bg-dark);
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eaf6ff;
    padding: 20px;
}

.auth-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.auth-logo {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
}

.auth-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.auth-subtitle {
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* Mobile First - Responsive Design */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --sidebar-width: 250px;
        --header-height: 55px;
    }
    
    body {
        font-size: 14px;
    }
    
    /* Show sidebar logo on mobile only */
    .sidebar-logo {
        display: block !important;
    }
    
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        z-index: 1000;
        transform: translateX(-100%);
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        transition: transform 0.3s ease;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999;
        transition: opacity 0.3s ease;
    }
    
    .sidebar-overlay.active {
        display: block;
    }
    
    .main-content {
        margin-left: 0;
        margin-top: var(--header-height);
        padding: 15px 10px;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    .header {
        left: 0;
        width: 100%;
        padding: 0 10px;
        height: var(--header-height);
    }
    
    .header-left {
        gap: 10px;
    }
    
    .logo {
        display: none;
    }
    
    .page-title {
        font-size: 16px;
        font-weight: 600;
    }
    
    .header-right {
        gap: 10px;
    }
    
    .user-details {
        display: none;
    }
    
    .user-avatar {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .notification-btn {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: var(--primary-color);
        color: white;
        border: none;
        border-radius: 8px;
        font-size: 18px;
        cursor: pointer;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-value {
        font-size: 22px;
    }
    
    .stat-label {
        font-size: 13px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .view-all-btn, .btn {
        width: 100%;
        justify-content: center;
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    table {
        min-width: 600px;
        font-size: 13px;
    }
    
    table th, table td {
        padding: 10px 8px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-control, .form-label {
        font-size: 14px;
    }
    
    .auth-container {
        padding: 20px;
        margin: 20px;
    }
    
    .releases-section {
        padding: 15px;
    }
    
    .new-release-btn {
        font-size: 14px;
        padding: 10px 16px;
    }
    
    .sidebar-menu {
        padding: 10px;
    }
    
    .menu-link {
        padding: 12px 15px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 13px;
    }
    
    .header {
        padding: 0 10px;
    }
    
    .logo {
        font-size: 18px;
    }
    
    .page-title {
        font-size: 16px;
    }
    
    .stat-value {
        font-size: 20px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .form-control {
        font-size: 13px;
    }
}

/* Maintenance Messages */
.maintenance-messages-container {
    position: fixed;
    top: var(--header-height);
    left: var(--sidebar-width);
    right: 0;
    z-index: 999;
    padding: 10px 20px;
    background: var(--bg-dark);
}

.maintenance-message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 4px solid;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.maintenance-message i {
    font-size: 18px;
    margin-top: 2px;
}

.maintenance-content {
    flex: 1;
}

.maintenance-content strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
}

.maintenance-content p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
}

.maintenance-info {
    background: #e3f2fd;
    border-left-color: #2196f3;
    color: #1565c0;
}

.maintenance-warning {
    background: #fff3e0;
    border-left-color: #ff9800;
    color: #e65100;
}

.maintenance-success {
    background: #e8f5e9;
    border-left-color: #4caf50;
    color: #2e7d32;
}

.maintenance-danger {
    background: #ffebee;
    border-left-color: #f44336;
    color: #c62828;
}

@media (max-width: 768px) {
    .maintenance-messages-container {
        left: 0;
        padding: 10px;
    }
    
    .maintenance-message {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .maintenance-message i {
        font-size: 16px;
    }
    
    .maintenance-content strong {
        font-size: 13px;
    }
    
    .maintenance-content p {
        font-size: 12px;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.p-20 { padding: 20px; }
