/* public/css/enterprise-dashboard.css */

:root {
    --sidebar-width: 260px;
    --topbar-height: 65px;
    --sidebar-bg: #1e293b;
    --sidebar-hover: #334155;
    --sidebar-active: #0f172a;
    --sidebar-text: #94a3b8;
    --sidebar-text-active: #ffffff;
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --body-bg: #f1f5f9;
    --card-bg: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #06b6d4;
  }
  
  /* Global Reset & Typography */
  body {
    background: var(--body-bg);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
  }
  
  h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--text-primary);
  }
  
  /* ─── SIDEBAR ─── */
  .app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    z-index: 1040;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    box-shadow: 4px 0 6px rgba(0,0,0,0.05);
  }
  
  .sidebar-brand {
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  
  .sidebar-nav {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
  }
  
  .sidebar-nav .nav-item {
    list-style: none;
  }
  
  .sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: var(--sidebar-text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    border-left: 3px solid transparent;
  }
  
  .sidebar-nav .nav-link i {
    font-size: 1.1rem;
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
  }
  
  .sidebar-nav .nav-link:hover {
    background: var(--sidebar-hover);
    color: #fff;
  }
  
  .sidebar-nav .nav-link.active {
    background: var(--sidebar-active);
    color: var(--sidebar-text-active);
    border-left-color: var(--primary-color);
  }
  
  .sidebar-bottom {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  
  .sidebar-user {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .sidebar-user .user-info {
    font-size: 0.85rem;
    color: #cbd5e1;
  }
  
  .sidebar-user .user-info small {
    display: block;
    color: var(--sidebar-text);
  }
  
  .sidebar-user .btn-logout {
    color: var(--sidebar-text);
    background: rgba(255,255,255,0.1);
    border: none;
    padding: 0.35rem 0.5rem;
    border-radius: 4px;
    transition: 0.2s;
  }
  
  .sidebar-user .btn-logout:hover {
    background: var(--danger);
    color: #fff;
  }
  
  /* ─── TOPBAR ─── */
  .app-topbar {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    height: var(--topbar-height);
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    z-index: 1030;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  }
  
  .topbar-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
  }
  
  /* ─── MAIN CONTENT ─── */
  .app-main {
    margin-left: var(--sidebar-width);
    padding-top: var(--topbar-height);
    min-height: 100vh;
  }
  
  .main-content {
    padding: 1.5rem;
  }
  
  /* ─── CARDS & STAT CARDS ─── */
  .card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    background: var(--card-bg);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }
  
  .card:hover {
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.08);
  }
  
  .card-header {
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
    font-weight: 600;
  }
  
  .card-body {
    padding: 1.25rem;
  }
  
  .stat-card {
    border-left: 4px solid var(--border-color);
    border-radius: 0.75rem;
    position: relative;
    overflow: hidden;
  }
  
  .stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(59,130,246,0.05) 0%, transparent 70%);
    transform: translate(20%, -20%);
  }
  
  .stat-card.orders { border-left-color: var(--primary-color); }
  .stat-card.posts { border-left-color: var(--success); }
  .stat-card.blogs { border-left-color: var(--info); }
  .stat-card.quota { border-left-color: var(--warning); }
  .stat-card.credits { border-left-color: var(--danger); }
  
  .stat-card .h3, .stat-card .h4, .stat-card .h5 {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
  }
  
  /* ─── TABLES ─── */
  .table-modern {
    font-size: 0.9rem;
    color: var(--text-secondary);
  }
  
  .table-modern thead th {
    background: #f8fafc;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    padding: 0.85rem 1rem;
  }
  
  .table-modern tbody td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
  }
  
  .table-modern tbody tr:hover {
    background: #f8fafc;
  }
  
  /* ─── BUTTONS & BADGES ─── */
  .btn {
    font-weight: 500;
    border-radius: 0.375rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    transition: all 0.2s;
  }
  
  .btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
  }
  
  .btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    box-shadow: 0 2px 4px rgba(59,130,246,0.3);
  }
  
  .badge {
    font-weight: 600;
    padding: 0.35em 0.65em;
    border-radius: 0.375rem;
    font-size: 0.75rem;
  }
  
  /* ─── FORMS ─── */
  .form-control, .form-select {
    border-radius: 0.5rem;
    border-color: var(--border-color);
    padding: 0.6rem 0.9rem;
    font-size: 0.9rem;
    color: var(--text-primary);
  }
  
  .form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(59,130,246,0.15);
  }
  
  /* ─── RESPONSIVE ─── */
  @media (max-width: 992px) {
    .app-sidebar {
      transform: translateX(-100%);
    }
    .app-sidebar.show {
      transform: translateX(0);
    }
    .app-topbar {
      left: 0;
    }
    .app-main {
      margin-left: 0;
    }
    .sidebar-overlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0,0,0,0.4);
      z-index: 1035;
    }
    .sidebar-overlay.show {
      display: block;
    }
  }