/* =====================================================
   GLOBAL RESET & BASE
   ===================================================== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #2c2c2c;
    background-color: #f5f7f9;
}

/* =====================================================
   TYPOGRAPHY
   ===================================================== */
h1, h2, h3, h4, h5 {
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #1f2933;
}

h1 { font-size: 28px; }
h2 { font-size: 24px; }
h3 { font-size: 20px; }
h4 { font-size: 18px; }
h5 { font-size: 16px; }

p {
    margin: 0 0 12px 0;
    color: #4b5563;
}

.small {
    font-size: 13px;
}

.text-muted {
    color: #6b7280;
}

.fst-italic {
    font-style: italic;
}

/* =====================================================
   LINKS
   ===================================================== */
a {
    color: #1b7f3a;
    text-decoration: none;
}

a:hover {
    color: #145c2a;
    text-decoration: underline;
}

/* =====================================================
   LAYOUT CONTAINER
   ===================================================== */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 20px;
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
    display: inline-block;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease-in-out;
}

.btn-success {
    background-color: #1b7f3a;
    color: #ffffff;
}

.btn-success:hover {
    background-color: #145c2a;
}

.btn-outline-primary {
    border-color: #2563eb;
    color: #2563eb;
    background: transparent;
}

.btn-outline-primary:hover {
    background-color: #2563eb;
    color: #ffffff;
}

.btn-outline-success {
    border-color: #1b7f3a;
    color: #1b7f3a;
    background: transparent;
}

.btn-outline-success:hover {
    background-color: #1b7f3a;
    color: #ffffff;
}

.btn-outline-dark {
    border-color: #374151;
    color: #374151;
    background: transparent;
}

.btn-outline-dark:hover {
    background-color: #374151;
    color: #ffffff;
}

.btn-sm {
    font-size: 13px;
    padding: 6px 10px;
}

/* Smaller header buttons (safe addition) */
.navbar .btn-sm {
    padding: 5px 10px;
    font-size: 13px;
}

/* =====================================================
   GOOGLE HEADER BUTTON (SAFE ADDITION)
   ===================================================== */
.google-header-btn {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* =====================================================
   CARDS
   ===================================================== */
.card {
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.2s ease;
}

.card-body {
    padding: 16px;
}

.card-footer {
    padding: 12px 16px;
    border-top: 1px solid #e5e7eb;
    background-color: #ffffff;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.card:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* =====================================================
   GRID SYSTEM (LIGHTWEIGHT – RETAINED)
   ===================================================== */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -10px;
    margin-right: -10px;
}

.col-lg-4,
.col-md-6 {
    padding-left: 10px;
    padding-right: 10px;
}

.col-lg-4 {
    width: 33.3333%;
}

.col-md-6 {
    width: 50%;
}

/* Mobile */
@media (max-width: 768px) {
    .col-lg-4,
    .col-md-6 {
        width: 100%;
    }
}

/* =====================================================
   UTILITIES
   ===================================================== */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 24px; }

.mt-4 { margin-top: 24px; }

.text-center { text-align: center; }

.d-flex { display: flex; }

.justify-content-between { justify-content: space-between; }

.align-items-center { align-items: center; }

.d-grid { display: grid; }

.gap-2 { gap: 8px; }

/* =====================================================
   ALERTS
   ===================================================== */
.alert {
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.alert-info {
    background-color: #eef6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* =====================================================
   NAVBAR POLISH (SAFE ADDITION)
   ===================================================== */
.navbar {
    transition: all 0.2s ease;
}

.navbar-brand {
    font-weight: 700;
    font-size: 18px;
}

.nav-link:hover {
    color: #1b7f3a !important;
}

/* =====================================================
   DARK MODE
   ===================================================== */
body.dark {
    background-color: #0f172a;
    color: #e5e7eb;
}

body.dark .navbar {
    background-color: #111827 !important;
}

body.dark .card {
    background-color: #1f2937;
    border-color: #374151;
}

body.dark .dropdown-menu {
    background-color: #1f2937;
    color: #e5e7eb;
}

body.dark a {
    color: #86efac;
}

.modern-navbar {
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.92);
}

.navbar .nav-link {
  color: #333 !important;
  font-weight: 500;
}

.navbar .nav-link:hover {
  color: #198754 !important;
}

/* Modern dropdown */
.dropdown-modern {
  border-radius: 14px;
  border: none;
  padding: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.dropdown-modern .dropdown-item {
  border-radius: 10px;
  padding: 10px 14px;
  transition: all 0.2s ease;
}

.dropdown-modern .dropdown-item:hover {
  background: #f1f5f3;
}

/* Better spacing for split arrow */
.dropdown-toggle-split {
  padding-left: 4px;
}
