:root {
    --primary-color: #4A90E2;       /* A professional blue */
    --secondary-color: #50E3C2;     /* A vibrant teal/mint */
    --accent-color: #F5A623;        /* A warm orange for highlights */
    --neutral-dark: #4A4A4A;        /* A softer black for text */
    --neutral-medium: #9B9B9B;      /* A medium grey for secondary text */
    --neutral-light: #F4F5F7;       /* A light grey for backgrounds */
    --white: #FFFFFF;
    --success-color: #7ED321;       /* A bright green for success states */
    --error-color: #D0021B;         /* A strong red for errors */

    --font-family-main: 'Poppins', sans-serif;
    --box-shadow-light: 0 4px 6px rgba(0, 0, 0, 0.05);
    --box-shadow-medium: 0 8px 15px rgba(0, 0, 0, 0.1);
    --border-radius-main: 8px;
}

html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 14px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem var(--white), 0 0 0 0.25rem var(--primary-color);
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
    font-family: var(--font-family-main);
    background-color: var(--neutral-light);
    color: var(--neutral-dark);
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}
body.login-page {
    background-color: #1a202c;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.login-card {
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-logo {
    /* Add styles for your logo here */
    margin-bottom: 1rem;
    height: 50px; /* Example height */
}

.login-logo2 {
    /* Add styles for your logo here */
    margin-bottom: 1rem;
    height: 250px; /* Example height */
}


.login-card h2 {
    margin-bottom: 1.5rem;
    color: #2d3748;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #cbd5e0;
    border-radius: 0.25rem;
}

.btn-login {
    width: 100%;
    padding: 0.75rem;
    border: none;
    background-color: #008080;
    color: white;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 1rem;
}

.forgot-password {
    display: block;
    margin-top: 1rem;
    color: #4a5568;
    text-decoration: none;
}
.dashboard {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.logo-title {
    display: flex;
    align-items: center;
}

.logo-title img {
    height: 30px;
    margin-right: 1rem;
}

.main-nav a {
    margin: 0 1rem;
    color: #495057;
    text-decoration: none;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 1rem;
    flex-grow: 1;
}

.card-large { grid-column: span 2; }
.card-medium { grid-column: span 1; }
.card-full { grid-column: span 4; }

[class^="card-"] {
    background-color: #fff;
    border-radius: 0.25rem;
    padding: 1rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}
.metric {
    font-size: 2.5rem;
    font-weight: 600;
}

[class^="card-"] h3 {
    font-size: 1.25rem;
}

[class^="card-"] h4 {
    font-size: 1rem;
    font-weight: 600;
}
.row {
    display: flex;
    flex-wrap: wrap;
}
.row > [class*='col-'] {
    display: flex;
    flex-direction: column;
}
.card {
    flex: 1;
}
.card {
    border-radius: 0.5rem !important;
}
/* Ensure the card's rounded corners are visible by clipping internal content */
.card {
    overflow: hidden;
}

.card-border-blue { border: 2px solid #007bff !important; }
.card-border-purple { border: 2px solid #6f42c1 !important; }
.card-border-green { border: 2px solid #28a745 !important; }
.card-border-teal { border: 2px solid #20c997 !important; }
.card-border-yellow { border: 2px solid #ffc107 !important; }
.card-border-red { border: 2px solid #dc3545 !important; }

[class*="card-border-"] {
    background-color: #ffffff !important;
    color: #212529 !important;
}

[class*="card-border-"] small {
    color: #6c757d !important;
}

/* Uniform card sizing to keep dashboard compact and avoid scrolling */
.uniform-card {
    height: 200px; /* fixed uniform height for KPI and chart cards */
    display: flex;
    flex-direction: column;
}
.uniform-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically */
    align-items: center; /* Center content horizontally */
    text-align: center; /* Ensure text is centered */
    flex: 1 1 auto;
    padding: 0.75rem;
    overflow: hidden;
}

.uniform-card .card-body h3,
.uniform-card .card-body .card-text {
    font-size: 2.25rem; /* Increased font size for KPI values */
    font-weight: 600;
}
.uniform-card .card-body > .chart-container {
    /* allow chart to take remaining space */
    flex: 1 1 auto;
    min-height: 0;
}

/* Make chart containers respect the parent's rounded corners */
.chart-container {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    overflow: hidden;
}

@media (max-width: 767.98px) {
    /* On small screens, allow cards to grow naturally to maintain readability */
    .uniform-card { height: auto; }
}
.user-photo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 8px;
}
.btn.active {
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.5);
    border: 2px solid var(--primary-color) !important;
}
select:disabled {
    background-color: #e9ecef;
    opacity: 1;
}
.action-icons {
    display: flex;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    overflow: hidden;
}

.action-icons .btn {
    border-radius: 0;
    border: none;
    border-right: 1px solid #dee2e6;
}

.action-icons .btn:last-child {
    border-right: none;
}

.btn-success-outline {
    border-color: #198754;
    color: #198754;
}

.btn-danger-outline {
    border-color: #dc3545;
    color: #dc3545;
}

.btn-info-outline {
    border-color: #0dcaf0;
    color: #0dcaf0;
}

.navbar-nav .nav-item.user-info {
    margin-left: auto;
}

.navbar-nav .nav-link {
    font-weight: 600; /* Make all nav links bold */
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link.active i {
    background-color: var(--primary-color);
    color: var(--white) !important;
}
/* --- Icon Action Button Styles --- */
.action-buttons-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
}

.btn-icon-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.btn-icon-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-icon-action.btn-details {
    background-color: #20c997; /* Teal */
}

.btn-icon-action.btn-confirm {
    background-color: #28a745; /* Green */
}

.btn-icon-action.btn-reject {
    background-color: #dc3545; /* Red */
}

.btn-icon-action.btn-assign {
    background-color: #007bff; /* Blue */
}

.btn-icon-action.btn-view {
    background-color: #17a2b8; /* Info/Teal */
}
/* --- Filter Buttons --- */
.d-flex.gap-2 > .btn {
    white-space: nowrap;
}

.toast-body {
    color: var(--white);
}
.table .badge {
    font-size: 0.9em;
}