/**
 * Bright Infosystem Website
 *
 * @file admin.css
 * @description All styles for the new admin panel layout with a full dashboard.
 * @version 3.1 (Enhanced Dashboard)
 */

:root {
  --primary-color: #FFFFFF;
  --secondary-color: #0A0A0A;
  --text-color: #A7AABB;
  --bg-color: #060606;
  --accent-color: #DA21DC;
  --accent-secondary-color: #1097D2;
  --divider-color: #FFFFFF0F;
  --dark-divider-color: #FFFFFF33;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: "Manrope", sans-serif;
  margin: 0;
}

.admin-wrapper { display: flex; }

/* --- Sidebar --- */
.admin-sidebar { width: 260px; background-color: var(--secondary-color); border-right: 1px solid var(--divider-color); height: 100vh; position: sticky; top: 0; display: flex; flex-direction: column; padding: 20px; box-sizing: border-box; flex-shrink: 0; }
.sidebar-header { padding: 10px 0 20px 0; border-bottom: 1px solid var(--divider-color); margin-bottom: 20px; }
.sidebar-header .logo img { height: 40px; }
.sidebar-nav { flex-grow: 1; overflow-y: auto; }
.sidebar-nav ul { list-style: none; padding: 0; margin: 0; }
.sidebar-nav ul li a { display: flex; align-items: center; gap: 15px; padding: 15px; border-radius: 10px; color: var(--text-color); text-decoration: none; font-weight: 500; margin-bottom: 5px; transition: all 0.3s ease; }
.sidebar-nav ul li a:hover { background-color: var(--divider-color); color: var(--primary-color); }
.sidebar-nav ul li a.active { background-color: var(--accent-color); color: var(--primary-color); }
.sidebar-nav ul li a i { width: 20px; text-align: center; }
.has-submenu .submenu-toggle { justify-content: space-between; }
.submenu-arrow { font-size: 12px; transition: transform 0.3s ease; }
.has-submenu.open > a .submenu-arrow { transform: rotate(180deg); }
.submenu { list-style: none; padding: 0 0 0 35px; margin: 5px 0; max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; }
.has-submenu.open .submenu { max-height: 500px; }
.submenu li a { padding: 10px 15px; font-size: 14px; }
.submenu li a.active { background-color: var(--accent-secondary-color); }

/* --- Main Content --- */
.admin-main-content { flex-grow: 1; width: calc(100% - 260px); }

/* --- Top Header Bar --- */
.admin-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 30px; background-color: var(--secondary-color); }
.header-left .hamburger-menu { display: none; cursor: pointer; font-size: 24px; }
.header-right { display: flex; align-items: center; gap: 25px; }
.visit-site-btn { color: var(--primary-color); text-decoration: none; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.visit-site-btn:hover { color: var(--accent-color); }
.profile-dropdown { position: relative; }
.profile-avatar { width: 40px; height: 40px; border-radius: 50%; background-color: var(--accent-color); color: var(--primary-color); display: flex; align-items: center; justify-content: center; font-weight: bold; cursor: pointer; }
.dropdown-menu { display: none; position: absolute; top: 55px; right: 0; background-color: var(--secondary-color); border: 1px solid var(--divider-color); border-radius: 10px; width: 200px; overflow: hidden; z-index: 10; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.dropdown-menu.open { display: block; }
.dropdown-menu a { display: flex; align-items: center; gap: 10px; padding: 12px 15px; color: var(--text-color); text-decoration: none; transition: all 0.3s ease; }
.dropdown-menu a:hover { background-color: var(--divider-color); color: var(--primary-color); }
.dropdown-menu a i { width: 20px; text-align: center; }

/* --- Dashboard Content --- */
.admin-content { padding: 30px; }
.stat-cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; margin-bottom: 40px; }
.stat-card { background: var(--secondary-color); border-radius: 15px; padding: 25px; display: flex; align-items: center; gap: 20px; border: 1px solid var(--divider-color); }
.card-icon { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; color: var(--primary-color); }
.icon-projects { background: linear-gradient(45deg, #DA21DC, #1097D2); }
.icon-blogs { background: linear-gradient(45deg, #1097D2, #25D366); }
.icon-inquiries { background: linear-gradient(45deg, #ff1f71, #ff7d4d); }
.icon-subscribers { background: linear-gradient(45deg, #ffc107, #ff9800); }
.card-info .value { font-size: 28px; font-weight: 800; color: var(--primary-color); display: block; }
.card-info .label { font-size: 14px; }

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
    margin-bottom: 40px;
}
.chart-widget, .quick-actions-widget {
    background-color: var(--secondary-color);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid var(--divider-color);
}
.chart-widget h2, .quick-actions-widget h2, .recent-inquiries-widget h2 {
    color: var(--primary-color);
    margin: 0 0 20px 0;
    font-size: 20px;
}
.actions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}
.action-btn {
    background-color: var(--divider-color);
    color: var(--primary-color);
    text-decoration: none;
    padding: 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
}
.action-btn:hover {
    background-color: var(--accent-color);
}

.recent-inquiries-widget { background-color: var(--secondary-color); border-radius: 15px; padding: 30px; border: 1px solid var(--divider-color); }
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 15px; text-align: left; border-bottom: 1px solid var(--divider-color); }
th { color: var(--primary-color); font-size: 14px; }
td { font-size: 15px; }
.action-btn-view { background: var(--accent-secondary-color); color: var(--primary-color); text-decoration: none; padding: 6px 12px; border-radius: 6px; font-size: 13px; font-weight: 500; transition: background-color 0.3s ease; }
.action-btn-view:hover { background-color: var(--accent-color); }

/* --- Responsive --- */
@media (max-width: 1200px) {
    .stat-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .dashboard-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
    .admin-sidebar { position: fixed; left: -100%; top: 0; z-index: 1001; transition: left 0.4s ease; }
    .admin-sidebar.open { left: 0; }
    .admin-main-content { width: 100%; }
    .header-left .hamburger-menu { display: block; }
    .sidebar-overlay { position: fixed; inset: 0; background-color: rgba(0,0,0,0.5); z-index: 1000; display: none; }
    .sidebar-overlay.open { display: block; }
}
@media (max-width: 768px) {
    .stat-cards-grid { grid-template-columns: 1fr; }
}

