html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #1b5e20;
}

/* Sidebar Styles */
.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

.sidebar {
    min-width: 280px;
    max-width: 280px;
    background: #1b5e20;
    color: #fff;
    transition: all 0.3s;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 999;
    overflow-y: auto;
}

.sidebar.active {
    margin-left: -280px;
}

.sidebar-header {
    padding: 20px;
    background: #2e7d32;
    border-bottom: 1px solid #388e3c;
}

.sidebar-header h3 {
    color: #fff;
    margin: 0;
    font-size: 1.1em;
    font-weight: 600;
}

.sidebar ul.components {
    padding: 0;
    border-bottom: 1px solid #388e3c;
}

.sidebar ul li {
    border-bottom: 1px solid #388e3c;
}

.sidebar ul li a {
    padding: 12px 20px;
    font-size: 0.9em;
    display: block;
    color: #e8f5e8;
    text-decoration: none;
    transition: all 0.3s;
}

.sidebar ul li a:hover {
    color: #ffd700;
    background: #2e7d32;
    text-decoration: none;
}

.sidebar ul li.active > a {
    color: #fff;
    background: #388e3c;
}

.sidebar ul li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.sidebar-section {
    padding: 15px 20px 10px 20px;
    background: #2e7d32;
    border-bottom: 1px solid #388e3c;
}

.section-title {
    color: #c8e6c9;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title i {
    margin-right: 8px;
}

/* Content Styles */
.content {
    width: 100%;
    padding: 0;
    min-height: 100vh;
    transition: all 0.3s;
    margin-left: 280px;
}

.content.active {
    margin-left: 0;
}

.topbar {
    background: #f1f8e9 !important;
    border-bottom: 2px solid #2e7d32;
    padding: 10px 20px;
}

#sidebarCollapse {
    width: 40px;
    height: 40px;
    background: #2e7d32;
    border: none;
    border-radius: 5px;
    color: #fff;
}

#sidebarCollapse:hover {
    background: #1b5e20;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        margin-left: -280px;
    }
    .sidebar.active {
        margin-left: 0;
    }
    .content {
        margin-left: 0;
    }
    .content.active {
        margin-left: 280px;
    }
}

/* Table Improvements */
.table {
    margin-bottom: 0;
}

.table th {
    background-color: #e8f5e8;
    border-top: none;
    font-weight: 600;
    color: #1b5e20;
}

.btn-sm {
    margin-right: 5px;
}

/* Form Improvements */
.form-group {
    margin-bottom: 1rem;
}

.form-control, .form-select {
    border-radius: 5px;
}

/* Footer */
.footer {
    margin-left: 280px;
    transition: all 0.3s;
}

.footer.active {
    margin-left: 0;
}

/* Card Styling for Better Organization */
.card {
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: none;
    margin-bottom: 20px;
}

.card-header {
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    color: white;
    border-radius: 10px 10px 0 0 !important;
    border: none;
}

/* Breadcrumb Styling */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 20px;
}

.breadcrumb-item a {
    color: #2e7d32;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #6c757d;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* National Treasury Specific Styling */
.treasury-header {
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
    color: white;
    padding: 15px 0;
    border-bottom: 3px solid #ffd700;
}

.treasury-logo {
    color: #ffd700;
    font-weight: bold;
    font-size: 1.5em;
}

/* Primary Buttons */
.btn-primary {
    background-color: #2e7d32;
    border-color: #2e7d32;
    color: white;
}

.btn-primary:hover {
    background-color: #1b5e20;
    border-color: #1b5e20;
}

.btn-primary:focus {
    box-shadow: 0 0 0 0.2rem rgba(46, 125, 50, 0.5);
}

/* Secondary Buttons */
.btn-secondary {
    background-color: #ffd700;
    border-color: #ffd700;
    color: #1b5e20;
    font-weight: 600;
}

.btn-secondary:hover {
    background-color: #ffcc02;
    border-color: #ffcc02;
    color: #1b5e20;
}

/* Success Alerts */
.alert-success {
    background-color: #e8f5e8;
    border-color: #2e7d32;
    color: #1b5e20;
}

/* Warning Alerts */
.alert-warning {
    background-color: #fff8e1;
    border-color: #ffd700;
    color: #f57f17;
}

/* Links */
a {
    color: #2e7d32;
}

a:hover {
    color: #1b5e20;
}

/* Form Controls */
.form-control:focus {
    border-color: #2e7d32;
    box-shadow: 0 0 0 0.2rem rgba(46, 125, 50, 0.25);
}

.form-select:focus {
    border-color: #2e7d32;
    box-shadow: 0 0 0 0.2rem rgba(46, 125, 50, 0.25);
}

/* Treasury Badge */
.badge-treasury {
    background-color: #2e7d32;
    color: white;
}

.badge-treasury-gold {
    background-color: #ffd700;
    color: #1b5e20;
    font-weight: 600;
}

/* Data Tables */
.table-striped > tbody > tr:nth-of-type(odd) > td,
.table-striped > tbody > tr:nth-of-type(odd) > th {
    background-color: #f1f8e9;
}

/* Active navigation states */
.nav-link.active {
    color: #ffd700 !important;
    font-weight: 600;
}

/* Treasury accent borders */
.border-treasury {
    border-color: #2e7d32 !important;
}

.border-treasury-gold {
    border-color: #ffd700 !important;
}

/* Status indicators */
.status-approved {
    color: #2e7d32;
    font-weight: 600;
}

.status-pending {
    color: #f57f17;
    font-weight: 600;
}

.status-rejected {
    color: #d32f2f;
    font-weight: 600;
}

.text-primary {
    --bs-text-opacity: 1;
   /* color: rgba(var(--bs-primary-rgb), var(--bs-text-opacity)) !important; */
   color : white !important;;
}