/*
Theme Name: Sirmax Records
Theme URI: https://sirmaxrecords.com
Author: Sirmax Studio
Author URI: https://sirmaxrecords.com
Description: A premium SaaS-style WordPress theme for music studios.
Version: 1.0.0
License: GPL v2 or later
Text Domain: sirmax-records
*/

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #F9FAFB;
    color: #1F2937;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Color Tokens ===== */
:root {
    --primary: #111827;
    --secondary: #3B82F6;
    --success: #22C55E;
    --warning: #F59E0B;
    --danger: #EF4444;
    --background: #F9FAFB;
    --card-bg: #FFFFFF;
    --border: #E5E7EB;
    --text: #1F2937;
    --muted: #6B7280;
    --shadow: 0 4px 12px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
    --radius: 1rem;
    --radius-sm: 0.5rem;
}

/* ===== Utility Classes ===== */
.bg-primary { background: var(--primary); }
.bg-secondary { background: var(--secondary); }
.bg-success { background: var(--success); }
.bg-warning { background: var(--warning); }
.bg-danger { background: var(--danger); }
.bg-card { background: var(--card-bg); }
.bg-page { background: var(--background); }
.text-muted { color: var(--muted); }
.text-secondary { color: var(--secondary); }

.shadow-card { box-shadow: var(--shadow); }
.shadow-dropdown { box-shadow: var(--shadow-lg); }

.glass-card {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.3);
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

/* ===== Buttons ===== */
.btn {
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.15s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: var(--secondary);
    color: white;
}
.btn-primary:hover {
    background: #2563eb;
    transform: scale(0.98);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}
.btn-outline:hover {
    background: #F3F4F6;
}

.btn-success {
    background: var(--success);
    color: white;
}
.btn-success:hover {
    background: #16a34a;
}

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

/* ===== Badges ===== */
.badge {
    padding: 0.2rem 0.7rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    background: var(--border);
    color: var(--text);
}

.badge-blue { background: #DBEAFE; color: #1D4ED8; }
.badge-purple { background: #EDE9FE; color: #5B21B6; }
.badge-orange { background: #FEF3C7; color: #B45309; }
.badge-green { background: #D1FAE5; color: #065F46; }
.badge-emerald { background: #A7F3D0; color: #065F46; }
.badge-gray { background: #F3F4F6; color: #4B5563; }
.badge-yellow { background: #FEF08A; color: #854D0E; }

/* ===== Progress Bar ===== */
.progress-bar {
    height: 6px;
    background: var(--border);
    border-radius: 9999px;
    overflow: hidden;
    width: 100%;
}

.progress-fill {
    height: 100%;
    border-radius: 9999px;
    background: var(--secondary);
    transition: width 0.6s ease;
}

/* ===== Cards ===== */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.card-hover:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* ===== Layout: App Container ===== */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* ===== Sidebar ===== */
.sidebar {
    width: 260px;
    background: var(--primary);
    color: white;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 999;
}

.sidebar .logo {
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
}
.sidebar .logo i { color: var(--secondary); }

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.8rem;
    border-radius: var(--radius-sm);
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.15s;
    font-weight: 500;
    margin-bottom: 0.25rem;
    cursor: pointer;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: rgba(255,255,255,0.08);
    color: white;
}

.sidebar-nav a i { width: 1.2rem; }

.sidebar .logout {
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 1.5rem;
}

/* ===== Main Area ===== */
.main-area {
    flex: 1;
    padding: 1.5rem 2rem;
    max-width: calc(100% - 260px);
}

/* ===== Topbar ===== */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.topbar .search {
    background: white;
    border: 1px solid var(--border);
    border-radius: 2rem;
    padding: 0.4rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1 1 240px;
    max-width: 360px;
}

.topbar .search i { color: var(--muted); }
.topbar .search input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.topbar-actions .icon-btn {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    color: #4B5563;
    position: relative;
    cursor: pointer;
}

.topbar-actions .icon-btn .badge-count {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--danger);
    color: white;
    font-size: 0.6rem;
    padding: 0.15rem 0.45rem;
    border-radius: 9999px;
    font-weight: 600;
}

.profile-pic {
    width: 36px;
    height: 36px;
    border-radius: 9999px;
    background: var(--secondary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    text-transform: uppercase;
}

/* ===== Grids ===== */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* ===== Stat Cards ===== */
.stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 1rem 1.2rem;
    border: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-card .stat-left h4 {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--muted);
}

.stat-card .stat-left .number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
}

.stat-card .stat-icon i {
    font-size: 1.6rem;
    color: var(--secondary);
    opacity: 0.7;
}

.trend-up { color: var(--success); font-size: 0.8rem; }
.trend-up.danger { color: var(--danger); }
.trend-up.warning { color: var(--warning); }

/* ===== Project Cards ===== */
.project-card {
    background: white;
    border-radius: var(--radius);
    padding: 1rem 1.2rem;
    border: 1px solid var(--border);
    transition: 0.2s;
}

.project-card:hover {
    box-shadow: var(--shadow-lg);
}

/* ===== Activity Feed ===== */
.activity-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #F3F4F6;
}

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

/* ===== Chat ===== */
.chat-list {
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 0.5rem;
}

.chat-item {
    padding: 0.7rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
}
.chat-item:hover { background: #F9FAFB; }
.chat-item.active { background: #F3F4F6; }

.chat-window {
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 1rem;
    min-height: 300px;
}

/* ===== Login Page ===== */
.login-page {
    display: flex;
    min-height: 100vh;
}

.login-left {
    flex: 1;
    background: linear-gradient(135deg, #111827 0%, #1E293B 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
    color: white;
    position: relative;
}

.login-left .overlay {
    position: absolute;
    inset: 0;
    background: rgba(17,24,39,0.7);
    backdrop-filter: blur(2px);
}

.login-left .content { position: relative; z-index: 2; }
.login-left .logo {
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.login-left .slogan {
    font-size: 1.8rem;
    font-weight: 600;
    margin-top: 1rem;
    max-width: 300px;
}

.login-right {
    flex: 1;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-card {
    max-width: 380px;
    width: 100%;
}

.login-card h2 {
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 0.25rem;
}

.login-card .sub {
    color: var(--muted);
    margin-bottom: 2rem;
}

.login-card input[type="email"],
.login-card input[type="password"],
.login-card input[type="text"] {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
}

.login-card .forgot {
    text-align: right;
    font-size: 0.8rem;
    color: var(--secondary);
    cursor: pointer;
}

.login-card .btn-login { width: 100%; justify-content: center; }

/* ===== Mobile Menu Toggle ===== */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text);
    cursor: pointer;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .sidebar { width: 220px; }
    .main-area {
        padding: 1.5rem;
        max-width: calc(100% - 220px);
    }
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        transform: translateX(-100%);
        width: 280px;
        z-index: 999;
        height: 100vh;
        transition: transform 0.25s ease;
        box-shadow: 4px 0 20px rgba(0,0,0,0.1);
    }
    
    .sidebar.open { transform: translateX(0); }
    .menu-toggle { display: block; }
    
    .main-area {
        max-width: 100%;
        padding: 1rem;
    }
    
    .topbar .search { max-width: 100%; }
    .grid-4 { grid-template-columns: 1fr 1fr; }
    
    .login-left { display: none; }
    .login-right { flex: 1; }
    
    .grid-2 { grid-template-columns: 1fr; }
    .chat-list { margin-bottom: 1rem; }
    
    .messages-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .grid-4 { grid-template-columns: 1fr; }
    .stat-card .stat-left .number { font-size: 1.4rem; }
    .topbar { flex-direction: column; align-items: stretch; }
    .topbar-actions { justify-content: flex-end; }
}

/* ===== Skeleton Loading ===== */
.skeleton {
    background: var(--border);
    border-radius: var(--radius-sm);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 0.3; }
    100% { opacity: 0.6; }
}

/* ===== Micro-interactions ===== */
.hover-lift:hover {
    transform: translateY(-2px);
    transition: 0.2s;
}

.glass-notification {
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.4);
}

/* ===== Messages Grid ===== */
.messages-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1.5rem;
}

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

/* ===== File Items ===== */
.file-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 0.4rem 0;
    border-bottom: 1px solid #F3F4F6;
}

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

/* ===== Calendar Grid ===== */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.3rem;
    margin-top: 0.8rem;
}

.calendar-day {
    padding: 0.5rem;
    text-align: center;
    border-radius: var(--radius-sm);
    background: #F9FAFB;
    font-size: 0.85rem;
}

.calendar-day.available {
    background: #DBEAFE;
    color: #1D4ED8;
    cursor: pointer;
}

.calendar-day.available:hover {
    background: #BFDBFE;
}

.calendar-day.booked {
    background: #FEE2E2;
    color: #991B1B;
}

.calendar-day.today {
    border: 2px solid var(--secondary);
    font-weight: 600;
}

/* ===== Header Styles ===== */
.site-header {
    background: #FFFFFF;
    border-bottom: 1px solid #E5E7EB;
    padding: 0.75rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.site-branding {
    display: flex;
    align-items: center;
}

.site-branding .logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.4rem;
    font-weight: 700;
    color: #111827;
    text-decoration: none;
    transition: color 0.2s;
}

.site-branding .logo i {
    color: #3B82F6;
    font-size: 1.6rem;
}

.site-branding .logo:hover {
    color: #3B82F6;
}

.site-branding .logo span {
    letter-spacing: -0.5px;
}

/* Custom Logo */
.custom-logo-link {
    display: inline-block;
}

.custom-logo {
    max-height: 50px;
    width: auto;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    justify-content: flex-end;
}

.primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
}

.primary-menu li {
    position: relative;
}

.primary-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: #4B5563;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.primary-menu a:hover {
    background: #F3F4F6;
    color: #111827;
}

.primary-menu .current-menu-item a,
.primary-menu .current-page-ancestor a {
    background: #F3F4F6;
    color: #3B82F6;
}

/* Navigation Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

.btn-small i {
    font-size: 0.8rem;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #4B5563;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    transition: background 0.2s;
}

.mobile-menu-toggle:hover {
    background: #F3F4F6;
}

/* ===== Footer Styles ===== */
.site-footer {
    background: #111827;
    color: #F3F4F6;
    margin-top: 4rem;
    padding: 3rem 2rem 1.5rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-widgets {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-widget h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.footer-widget h3 i {
    color: #3B82F6;
    margin-right: 0.5rem;
}

.footer-widget h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-widget p {
    color: #9CA3AF;
    line-height: 1.6;
    max-width: 400px;
}

.footer-widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-widget ul li {
    margin-bottom: 0.5rem;
}

.footer-widget ul li a {
    color: #9CA3AF;
    text-decoration: none;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-widget ul li a:hover {
    color: #3B82F6;
}

.footer-widget ul li i {
    color: #3B82F6;
    width: 1.2rem;
}

/* Social Icons */
.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.06);
    color: #9CA3AF;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 1.1rem;
}

.footer-social a:hover {
    background: #3B82F6;
    color: white;
    transform: translateY(-2px);
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1.5rem;
}

.footer-copyright p {
    color: #6B7280;
    font-size: 0.85rem;
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: #6B7280;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: #3B82F6;
}

/* ===== Responsive Header & Footer ===== */
@media (max-width: 992px) {
    .footer-widgets {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 0.5rem 1rem;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .primary-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 0.5rem;
        border-top: 1px solid #E5E7EB;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }

    .primary-menu.open {
        display: flex;
    }

    .primary-menu li {
        width: 100%;
    }

    .primary-menu a {
        padding: 0.75rem 1rem;
        width: 100%;
        border-radius: 0.25rem;
    }

    .nav-actions {
        display: none;
    }

    .nav-actions.mobile-visible {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 0.5rem;
        gap: 0.5rem;
    }

    .nav-actions.mobile-visible .btn {
        width: 100%;
        justify-content: center;
    }

    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .site-branding .logo {
        font-size: 1.1rem;
    }
    
    .site-branding .logo i {
        font-size: 1.3rem;
    }
    
    .site-footer {
        padding: 2rem 1rem 1rem;
    }
}