/* ------------------------------------------------
   GLOBAL THEME
--------------------------------------------------*/
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: #eef3fa;
    color: #333;
}

/* -----------------------------------------------
   SIDEBAR
------------------------------------------------*/
.sidebar {
    width: 260px;
    height: 100vh;
    background: #0a3d62;
    padding: 25px;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
}

.sidebar-logo {
    width: 140px;
    margin: 0 auto 40px auto;
}

.sidebar a {
    color: #cfe8ff;
    text-decoration: none;
    padding: 14px 18px;
    margin-bottom: 12px;
    border-radius: 10px;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: 0.3s;
}

.sidebar a:hover,
.sidebar a.active {
    background: #1e6091;
    color: #fff;
}

/* -----------------------------------------------
   MAIN CONTENT
------------------------------------------------*/
.content {
    margin-left: 300px;
    padding: 40px;
}

/* -----------------------------------------------
   DASHBOARD CARDS (Bloom Style)
------------------------------------------------*/
.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.card {
    background: rgba(255, 255, 255, 0.69);
    backdrop-filter: blur(15px);
    width: 260px;
    padding: 25px;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 30px rgba(0,0,0,0.15);
}

.card h3 {
    font-size: 34px;
    margin: 0 0 8px 0;
    color: #0a3d62;
}

.card p {
    margin: 0;
    font-size: 14px;
    color: #444;
}

/* -----------------------------------------------
   LOGIN PAGE
------------------------------------------------*/
/* -------------------------------
   New Modern Login Design
--------------------------------*/
.demo-creds {
    margin-top: 20px;
    color: #eaeaea;
    font-size: 14px;
    text-align: left;
    background: rgba(255,255,255,0.12);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.2);
}

.demo-creds p {
    margin: 6px 0;
}

.demo-creds strong {
    color: #fff;
    font-size: 15px;
}

.login-logo-box {
    background: rgba(255, 255, 255, 0.85);
    padding: 10px 18px;
    border-radius: 12px;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.login-bg {
    background: radial-gradient(circle at top left, #0a3d62, #1e6091, #102542);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-wrapper {
    width: 100%;
    max-width: 420px;
}

.new-login {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(18px);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.login-logo {
    width: 120px;
    margin-bottom: 18px;
}

.login-header {
    text-align: center;
    margin-bottom: 25px;
}

.login-header h2 {
    color: #fff;
    font-size: 26px;
    margin-bottom: 5px;
    font-weight: 600;
}

.subtitle {
    color: #e8e8e8;
    font-size: 14px;
}

.input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
}

.input-group label {
    color: #fff;
    font-size: 14px;
    margin-bottom: 6px;
}

.input-group input {
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: rgba(255,255,255,0.7);
    font-size: 15px;
}

.input-group input:focus {
    outline: 2px solid #1e6091;
}

.login-btn {
    margin-top: 10px;
    padding: 14px;
    border-radius: 12px;
    background: #1e6091;
    border: none;
    color: white;
    font-size: 16px;
    width: 100%;
    cursor: pointer;
    transition: 0.3s;
}

.login-btn:hover {
    background: #144a70;
}

.error-msg {
    color: #ffb4a6;
    text-align: center;
    margin-top: 12px;
    display: none;
}

/* -------------------------------------------
   TABLE (Glass + Clean)
--------------------------------------------*/
.table {
    width: 100%;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border-collapse: collapse;
    margin-top: 25px;
}

.table th {
    background: #0a3d62;
    color: white;
    padding: 14px;
    text-align: left;
}

.table td {
    padding: 14px;
    border-bottom: 1px solid #eaeaea;
}

.btn-edit,
.btn-delete {
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
}

.btn-edit {
    background: #1e88e5;
    color: white;
}

.btn-delete {
    background: #ef5350;
    color: white;
}

/* -------------------------------------------
   FORM CARD
--------------------------------------------*/
.form-card {
    background: white;
    padding: 25px;
    border-radius: 18px;
    width: 500px;
    box-shadow: 0 12px 22px rgba(0,0,0,0.1);
}

input, textarea {
    border: 1px solid #bbb;
    border-radius: 10px;
    padding: 12px;
    width: 100%;
    margin-bottom: 15px;
}



/* ----------------------------------------------
   PAGE HEADER for Admin Dashboard
-----------------------------------------------*/
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.add-btn {
    font-size: 15px;
    padding: 10px 20px;
    border-radius: 10px;
}

/* ----------------------------------------------
   TABLE (Glass Bloom Style)
-----------------------------------------------*/
.glass-table {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(12px);
    border-radius: 15px;
    overflow: hidden;
}

.glass-table th {
    background: #0a3d62;
    color: #fff;
    font-weight: 500;
}

.glass-table td {
    background: rgba(255,255,255,0.4);
}

/* ----------------------------------------------
   MODAL POPUP
-----------------------------------------------*/
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(6px);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.modal {
    width: 420px;
    background: white;
    padding: 30px;
    border-radius: 18px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
    from { transform: scale(0.85); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.modal h2 {
    margin-top: 0;
    color: #0a3d62;
}

/* Modal form */
.modal-group label {
    font-size: 14px;
    margin-bottom: 5px;
    display: block;
}

.modal-group input {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #ccc;
    margin-bottom: 15px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn-secondary {
    background: #cccccc;
    padding: 10px 18px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}


/* ----------------------------------------------
   Admin Distributors
-----------------------------------------------*/
/* DELETE MODAL */
.delete-modal p {
    text-align: left;
}

.btn-danger {
    background: #e53935;
    padding: 10px 18px;
    border: none;
    color: white;
    border-radius: 10px;
    cursor: pointer;
}

.btn-danger:hover {
    background: #c62828;
}


/* ----------------------------------------------
   Admin Enquiries PAGINATION
-----------------------------------------------*/
.pagination {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.page-btn {
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid #0a3d62;
    background: white;
    cursor: pointer;
    font-size: 14px;
    transition: 0.3s;
}

.page-btn:hover {
    background: #0a3d62;
    color: white;
}

.active-page {
    background: #0a3d62;
    color: white;
}

/* Improve table row hover */
.glass-table tbody tr:hover {
    background: rgba(255,255,255,0.7);
    transition: 0.25s;
}


/* ============================
   Enquiries Module Additions
   ============================ */
.filters-row {
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
  margin-bottom:18px;
}

.filter-input, .filter-select {
  padding:10px 12px;
  border-radius:10px;
  border:1px solid #d0d7df;
  background: #fff;
  font-size:14px;
  min-width: 160px;
}

.filter-date {
  display:flex;
  gap:8px;
  align-items:center;
}

.controls {
  display:flex;
  gap:10px;
  margin-left:auto;
  align-items:center;
}

.badge {
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  font-size:13px;
  font-weight:600;
  color:#fff;
}

.badge-pending { background: #f39c12; }       /* orange */
.badge-inprogress { background:#1976d2; }     /* blue */
.badge-completed { background:#43a047; }      /* green */

.table .small {
  font-size:13px;
  color:#666;
}

.toolbar {
  display:flex;
  gap:10px;
  margin-bottom:12px;
  align-items:center;
}

/* Export button */
.btn-export {
  padding:10px 14px;
  border-radius:10px;
  border:none;
  background:#0a3d62;
  color:white;
  cursor:pointer;
}

/* Page-level header layout (if needed) */
.page-header .title-actions {
  display:flex;
  align-items:center;
  gap:18px;
}

/* pagination small tweak */
.page-btn {
  min-width:40px;
  text-align:center;
}
