/* =========================================
   ADMIN PANEL – TINARI KOPI (FORE STYLE)
   ========================================= */

.admin-panel {
  --dark: #111;
  --gray: #666;
  --light: #f6f6f6;
  --white: #fff;
  --accent: #6f8f72;
  --danger: #c0392b;

  font-family: 'Poppins', sans-serif;
}

/* Dashboard container */
.admin-dashboard {
  padding: 40px;
  max-width: 900px;
  margin: 0 auto;
}

/* Title */
.admin-title {
  margin-bottom: 8px;
}

.admin-subtitle {
  color: var(--gray);
  margin-bottom: 30px;
}

/* Grid */
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

/* Card admin */
.admin-card {
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* Text */
.admin-card p {
  color: var(--gray);
}

/* Hover effect (FORE FEEL) */
.admin-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

/* Logout card */
.admin-card.logout {
  background: #fff5f5;
}

.admin-card.logout h4,
.admin-card.logout p {
  color: var(--danger);
}
/* ============================= */
/* LANDSCAPE DASHBOARD UPGRADE  */
/* ============================= */

.admin-dashboard {
    max-width: 1400px;
    margin: 40px auto;
}

.admin-wrapper {
    padding: 40px;
}

/* ===== Statistik ===== */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.stat-box {
    background: #ffffff;
    padding: 28px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    transition: 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-6px);
}

.stat-box span {
    font-size: 22px;
    font-weight: 700;
}

/* ===== Chart & Table side-by-side ===== */
.admin-chart,
.admin-latest {
    background: #ffffff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
}

.admin-chart {
    margin-top: 40px;
}

@media (min-width: 1100px) {
    .admin-chart,
    .admin-latest {
        display: inline-block;
        vertical-align: top;
        width: 48%;
    }

    .admin-latest {
        margin-left: 3%;
    }
}

/* ===== Action Panel ===== */
.action-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 20px;
}

.action-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 18px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 12px 35px rgba(0,0,0,0.05);
    transition: 0.3s ease;
}

.action-card:hover {
    transform: translateY(-5px);
}

/* ============================= */
/* RESPONSIVE MOBILE (AMAN)      */
/* ============================= */

@media (max-width: 992px) {

    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .action-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-chart,
    .admin-latest {
        width: 100%;
        margin-left: 0;
        margin-top: 25px;
        display: block;
    }
}

@media (max-width: 600px) {

    .admin-stats {
        grid-template-columns: 1fr;
    }

    .action-grid {
        grid-template-columns: 1fr;
    }
}
/* ============================= */
/* FORCE LANDSCAPE DASHBOARD     */
/* ============================= */

/* Override container lama */
.admin-dashboard.container {
    max-width: 1400px !important;
    width: 95% !important;
}

/* Biar wrapper ikut melebar */
.admin-wrapper {
    width: 100%;
}

/* Statistik jadi grid horizontal */
.admin-stats {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
}

/* Chart & tabel sejajar */
@media (min-width: 1100px) {
    .admin-chart {
        float: left;
        width: 60%;
        margin-top: 40px;
    }

    .admin-latest {
        float: right;
        width: 38%;
        margin-top: 40px;
    }

    .admin-actions {
        clear: both;
        margin-top: 60px;
    }
}

/* Responsive tetap aman */
@media (max-width: 992px) {

    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-chart,
    .admin-latest {
        float: none;
        width: 100%;
    }
}

@media (max-width: 600px) {

    .admin-stats {
        grid-template-columns: 1fr;
    }
}
/* =============================== */
/* FULL WIDTH ADMIN DASHBOARD FIX */
/* =============================== */

/* Hancurkan batasan container lama */
.admin-dashboard.container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 60px !important;
    padding-right: 60px !important;
}

/* Wrapper ikut melebar */
.admin-dashboard .admin-wrapper {
    max-width: 1600px;
    margin: 0 auto;
}

/* Statistik jadi horizontal */
.admin-stats {
    display: flex !important;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 25px;
}

.stat-box {
    flex: 1 1 18%;
    min-width: 200px;
}

/* Chart & Table sejajar */
@media (min-width: 1200px) {
    .admin-chart {
        float: left;
        width: 60%;
    }

    .admin-latest {
        float: right;
        width: 38%;
    }

    .admin-actions {
        clear: both;
        margin-top: 50px;
    }
}

/* Mobile tetap aman */
@media (max-width: 992px) {
    .admin-stats {
        flex-direction: column;
    }

    .admin-chart,
    .admin-latest {
        float: none;
        width: 100%;
    }
}