/* ========================================== */
/* NEW PREMIUM CSS - MALAIMUSIC.CO */
/* ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #5E72E4; /* Modern Blue/Purple */
    --secondary-color: #172B4D; /* Darker Blue for Text */
    --success-color: #2DCE89;
    --danger-color: #F5365C;
    --warning-color: #FB6340;
    --info-color: #11CDEF;
    --background-color: #F8F9FE;
    --white-color: #FFFFFF;
    --light-gray: #E9ECEF;
    --dark-gray: #8898AA;
    --font-family: 'Poppins', sans-serif;
    --border-radius: .375rem;
    --shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
    --transition: all 0.2s ease-in-out;
}

/* ===== BASE STYLES ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-family); line-height: 1.6; color: var(--secondary-color); background-color: var(--background-color); font-size: 15px; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; width: 100%; }
main.container { flex: 1; padding: 40px 20px; }
h1, h2, h3, h4 { font-weight: 600; }

/* ===== HEADER & NAVIGATION ===== */
.navbar { background: var(--white-color); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 1000; }
.navbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 70px; padding: 0 20px; }
.navbar-brand { font-size: 1.5rem; font-weight: 700; color: var(--primary-color); text-decoration: none; }
.navbar-nav { list-style: none; display: flex; align-items: center; gap: 10px; }
.navbar-nav a { text-decoration: none; color: var(--secondary-color); font-weight: 500; padding: 8px 16px; border-radius: var(--border-radius); transition: var(--transition); }
.navbar-nav a:hover, .navbar-nav .nav-item:hover > a { color: var(--primary-color); background-color: #f6f9fc; }

/* Dropdown Menu */
.nav-item { position: relative; }
.dropdown-menu { display: none; opacity: 0; visibility: hidden; position: absolute; top: 110%; right: 0; background-color: var(--white-color); box-shadow: var(--shadow); border-radius: var(--border-radius); list-style: none; width: 220px; z-index: 1001; border: 1px solid var(--light-gray); transition: all 0.25s ease; transform: translateY(10px); }
.dropdown-menu a { display: block; width: 100%; padding: 12px 20px; font-size: 0.9em; border-radius: 0; border-bottom: 1px solid var(--light-gray); }
.dropdown-menu a:last-child { border-bottom: none; }
.nav-item:hover .dropdown-menu { display: block; opacity: 1; visibility: visible; transform: translateY(0); }

/* ===== CARDS ===== */
.card { background: var(--white-color); border-radius: var(--border-radius); box-shadow: var(--shadow); margin-bottom: 30px; border: none; }
.card-header { background-color: var(--white-color); padding: 20px 25px; border-bottom: 1px solid var(--light-gray); display: flex; justify-content: space-between; align-items: center; }
.card-header h2, .card-header h3, .card-header h4 { margin: 0; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px; }
.card-body { padding: 30px; }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 25px; border: 1px solid transparent; border-radius: var(--border-radius); font-size: 0.9rem; font-weight: 600; cursor: pointer; text-decoration: none; color: var(--white-color); text-align: center; transition: var(--transition); text-transform: uppercase; letter-spacing: .5px; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 14px rgba(50,50,93,.1),0 3px 6px rgba(0,0,0,.08); }
.btn-primary { background: var(--primary-color); box-shadow: 0 4px 6px rgba(50,50,93,.11),0 1px 3px rgba(0,0,0,.08); }
.btn-secondary { background: var(--secondary-color); }
.btn-success { background: var(--success-color); }
.btn-danger { background: var(--danger-color); }
.btn-info { background: var(--info-color); }
.btn-block { display: block; width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 0.8rem; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 0.875rem; }
.form-control, .form-group input, .form-group select, .form-group textarea { width: 100%; padding: 10px 15px; border: 1px solid #dee2e6; border-radius: var(--border-radius); font-size: 0.9rem; transition: var(--transition); background-color: var(--white-color); }
.form-control:focus, .form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 2px rgba(94, 114, 228, 0.25); }

/* ===== DASHBOARD STATS ===== */
.dashboard-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px; margin-bottom: 30px; }
.stat-card { display: flex; align-items: center; background: var(--white-color); padding: 25px; border-radius: var(--border-radius); box-shadow: var(--shadow); transition: var(--transition); }
.stat-card:hover { transform: translateY(-5px); }
.stat-card-icon { font-size: 2rem; width: 64px; height: 64px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--white-color); flex-shrink: 0; margin-right: 20px; }
.stat-card-icon.bg-primary { background: var(--primary-color); }
.stat-card-icon.bg-success { background: var(--success-color); }
.stat-card-icon.bg-warning { background: var(--warning-color); }
.stat-card-icon.bg-danger { background: var(--danger-color); }
.stat-card-info h3 { margin: 0; font-size: 0.8rem; color: var(--dark-gray); text-transform: uppercase; font-weight: 600; }
.stat-card-info p { font-size: 1.5rem; font-weight: 700; color: var(--secondary-color); margin: 5px 0 0 0; }

/* ===== TABLES (Mobile Responsive) ===== */
.table-responsive { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 15px; text-align: left; border-top: 1px solid var(--light-gray); }
.table thead th { border-top: none; border-bottom: 2px solid var(--light-gray); font-size: 0.8rem; text-transform: uppercase; font-weight: 700; }
.table tbody tr:hover { background-color: #f6f9fc; }

/* ===== ADMIN LAYOUT ===== */
.admin-body { background-color: var(--background-color); }
.admin-layout { display: flex; }
.admin-sidebar {
    width: 250px;
    background: var(--white-color);
    border-right: 1px solid var(--light-gray);
    position: fixed;
    height: 100%;
    overflow-y: auto;  /* <-- यह नई लाइन जोड़ें */
    z-index: 100;
}
.sidebar-header { padding: 20px; text-align: center; border-bottom: 1px solid var(--light-gray); }
.sidebar-header h3 { font-size: 1.4rem; color: var(--primary-color); }
.sidebar-nav { padding-top: 20px; }
.sidebar-nav ul { list-style: none; }
.sidebar-nav a { display: flex; align-items: center; padding: 12px 25px; color: #525f7f; text-decoration: none; font-weight: 600; transition: var(--transition); }
.sidebar-nav a:hover, .sidebar-nav a.active { color: var(--primary-color); background-color: #f6f9fc; }
.sidebar-nav svg { width: 20px; margin-right: 15px; color: var(--primary-color); }
.sidebar-nav .badge { background-color: var(--danger-color); color: white; border-radius: 50px; padding: 2px 8px; font-size: 11px; margin-left: auto; }
.admin-main-content { margin-left: 250px; width: calc(100% - 250px); }
.admin-top-header { background: var(--white-color); padding: 15px 30px; display: flex; justify-content: space-between; align-items: center; box-shadow: var(--shadow); }
.admin-top-header h1 { font-size: 1.5rem; margin: 0; }
.admin-content-area { padding: 40px; }

/* ===== MOBILE RESPONSIVENESS ===== */
.mobile-menu-toggle { display: none; }
@media (max-width: 991px) {
    .navbar .container { min-height: 60px; padding: 0 15px; }
    .mobile-menu-toggle { display: flex; flex-direction: column; justify-content: space-around; width: 28px; height: 22px; background: transparent; border: none; cursor: pointer; padding: 0; z-index: 1001; }
    .mobile-menu-toggle span { width: 28px; height: 3px; background: var(--secondary-color); border-radius: 5px; transition: all 0.3s linear; }
    .navbar-nav { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: var(--white-color); flex-direction: column; padding: 10px; box-shadow: var(--shadow); }
    .navbar-nav.active { display: flex; }
    .nav-item { width: 100%; }
    .nav-item > a { font-weight: 600; }
    .dropdown-menu { display: block; position: static; width: 100%; box-shadow: none; border: none; padding-left: 0; }
    .dropdown-menu a { padding-left: 30px; }

    .admin-main-content { margin-left: 0; width: 100%; }
    .admin-sidebar { transform: translateX(-100%); transition: transform 0.3s ease; }
    .admin-sidebar.active { transform: translateX(0); }
    .admin-top-header .mobile-menu-toggle { /* Make toggle visible in admin header too */
        display: flex;
    }
    
    /* Responsive Admin Tables */
    .table thead { display: none; }
    .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
    .table tr { margin-bottom: 15px; border-radius: var(--border-radius); box-shadow: var(--shadow); border: 1px solid var(--light-gray); }
    .table td { text-align: right; padding-left: 50%; position: relative; border: none; border-bottom: 1px solid var(--light-gray); }
    .table td:last-child { border-bottom: none; }
    .table td:before { content: attr(data-label); position: absolute; left: 15px; width: 45%; padding-right: 10px; white-space: nowrap; text-align: left; font-weight: 600; }
}

/* Other general styles (minified for brevity, no changes needed here) */
.site-footer{background:var(--secondary-color);color:#fff;text-align:center;padding:25px 0;margin-top:auto}.site-footer p{margin:0;color:#fff}.alert{padding:15px 20px;margin-bottom:25px;border-radius:var(--border-radius);border:1px solid transparent;font-weight:500}.alert-success{background-color:#f6ffed;color:#52c41a;border-color:#b7eb8f}.alert-danger{background-color:#fff1f0;color:#f5222d;border-color:#ffccc7}.alert-info{background-color:#e6f7ff;color:#1890ff;border-color:#91d5ff}.status-badge{padding:6px 12px;border-radius:20px;font-size:.8em;font-weight:700;color:#fff;text-transform:uppercase}.status-active,.status-approved,.status-closed{background-color:var(--success-color)}.status-pending,.status-inprogress{background-color:var(--warning-color);color:#fff}.status-inactive,.status-banned,.status-rejected,.status-exhausted,.status-deleted{background-color:var(--danger-color)}.status-paused,.status-open{background-color:var(--secondary-color)}

/* ... (baaki sab CSS waisa hi rahega) ... */

/* Dropdown Menu CSS */
.nav-item { position: relative; }
.dropdown-menu { display: none; opacity: 0; visibility: hidden; position: absolute; top: 110%; right: 0; background-color: var(--white-color); box-shadow: var(--shadow); border-radius: var(--border-radius); list-style: none; width: 220px; z-index: 1001; border: 1px solid var(--light-gray); transition: all 0.25s ease; transform: translateY(10px); }
.dropdown-menu a { display: block; width: 100%; padding: 12px 20px; font-size: 0.9em; border-radius: 0; border-bottom: 1px solid var(--light-gray); }
.dropdown-menu a:last-child { border-bottom: none; }

/* YAHAN BADLAV KIYA GAYA HAI: hover ki jagah .active class ka istemal */
.dropdown-menu.active { display: block; opacity: 1; visibility: visible; transform: translateY(0); }

/* ===== NEW PREMIUM PLAN STYLES ===== */

.plans-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    align-items: stretch;
}

.plan-card {
    background: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(50, 50, 93, 0.15);
}

.plan-card.current-plan {
    border-color: var(--primary-color);
}

.current-plan-badge {
    position: absolute;
    top: 15px;
    right: -40px;
    background: var(--primary-color);
    color: var(--white-color);
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.plan-header {
    padding: 30px 20px;
    border-bottom: 1px solid var(--light-gray);
}

.plan-header h2 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--secondary-color);
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 10px;
}

.plan-features {
    list-style: none;
    padding: 20px 0;
    flex-grow: 1; /* This makes the cards equal height */
}

.plan-features li {
    padding: 12px 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.95rem;
    color: #525f7f;
    text-align: left;
}

.plan-features li svg {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.plan-footer {
    padding: 30px;
    background-color: #f6f9fc;
    margin-top: auto; /* Pushes footer to the bottom */
}

.plan-footer .btn {
    width: 100%;
}

/* Button Text Color Fix */
.btn-warning {
    color: var(--black-color);
}

/* Profile image in navbar */
.profile-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
}
.profile-nav-img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(0,0,0,0.1);
}

/* === NAYA PROFESSIONAL APP POPUP STYLE (FINAL) === */

#app-download-popup {
    position: fixed; /* YEH SABSE ZAROORI HAI: Taki popup tairta rahe */
    z-index: 1001;
    /* Mobile par niche-center mein */
    bottom: -100%; /* Shuruaat mein chhipa hua */
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 420px;
    
    background-color: var(--white-color);
    border-radius: 12px; 
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2); /* Professional Shadow */
    padding: 1rem;
    
    /* Smooth slide-in/out animation */
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Jab popup dikhega (JS se add hoga) */
#app-download-popup.active {
    bottom: 20px;
    transform: translateX(-50%);
}

/* Jab popup chhipega (JS se add hoga) */
#app-download-popup.app-popup-hidden {
    bottom: -100%;
}

#app-download-popup .popup-content {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

/* NAYA BADLAV: SVG Icon ke liye styling */
.popup-logo {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    flex-shrink: 0;
    /* Icon styling */
    background-color: var(--primary-color);
    color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
}
.popup-logo svg {
    width: 28px;
    height: 28px;
}
/* END NAYA BADLAV */

.popup-text {
    flex-grow: 1;
    line-height: 1.4;
}

.popup-text strong {
    font-size: 1rem;
    color: var(--secondary-color);
}

.popup-text p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--dark-gray);
}

#download-app-btn {
    padding: 10px 20px;
    font-size: 0.9em;
    font-weight: 700;
    text-transform: none;
    white-space: nowrap;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(50,50,93,.11),0 1px 3px rgba(0,0,0,.08);
}

#close-popup-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #fff;
    border: 1px solid var(--light-gray);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 20px;
    color: var(--dark-gray);
    cursor: pointer;
    line-height: 26px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Desktop par (768px se upar) - Niche-left corner mein */
@media (min-width: 768px) {
    #app-download-popup {
        left: 20px;
        transform: none; /* Center se hatayein */
        width: auto;
        max-width: 420px;
    }
    
    /* Animation ko left se slide karne ke liye badlein */
    #app-download-popup.active {
        bottom: 20px;
        left: 20px;
        transform: none;
    }
    
    #app-download-popup.app-popup-hidden {
        bottom: -100%;
        left: 20px;
        transform: none;
    }
}
