/* ============================================
   TYPOGRAPHY SYSTEM
   ============================================ */

/* Base Typography */
:root {
    --font-family-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-family-mono: 'Menlo', 'Monaco', 'Courier New', monospace;
    --line-height-base: 1.5;
    --line-height-heading: 1.2;
    --letter-spacing-base: -0.3px;
}

html, body {
    font-family: var(--font-family-base);
    font-size: 14px;
    line-height: var(--line-height-base);
    color: #111827;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #00446b !important;
}

#wrapper_content {
    background-color: #eef7fc !important;
    border-radius: 10px 10px 0px 20px !important;
    padding: 5px !important;
}

#header {
    height: 50px;
}

#middle{
    padding: 5px !important;
}

.btn {
    border-radius: 10px;
}

.card {
    border-radius: 10px;
}

p {
    font-size: 14px;
    line-height: 1.6;
    color: #111827;
    margin-bottom: 12px;
}

p.text-muted {
    color: #6b7280;
    font-size: 13px;
}

p.text-sm {
    font-size: 12px;
    line-height: 1.5;
}

p.text-lg {
    font-size: 16px;
    line-height: 1.7;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-base);
    line-height: var(--line-height-heading);
    color: #111827;
    margin-top: 0;
    margin-bottom: 16px;
    font-weight: 700;
    letter-spacing: var(--letter-spacing-base);
}

h1 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
}

h2 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.4px;
    margin-bottom: 18px;
}

h3 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.3px;
    margin-bottom: 16px;
}

h4 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.2px;
    margin-bottom: 14px;
}

h5 {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.1px;
    margin-bottom: 12px;
}

h6 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
}

/* Text Utilities */
small, .text-small {
    font-size: 12px;
    line-height: 1.5;
}

.text-xs {
    font-size: 11px;
    line-height: 1.4;
}

.text-base {
    font-size: 14px;
    line-height: 1.6;
}

.text-lg {
    font-size: 16px;
    line-height: 1.7;
}

.text-xl {
    font-size: 18px;
    line-height: 1.8;
}

.text-2xl {
    font-size: 20px;
    line-height: 1.9;
}

.text-3xl {
    font-size: 24px;
    line-height: 1.2;
}

/* Font Weights */
.font-light {
    font-weight: 300;
}

.font-normal {
    font-weight: 400;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.font-extrabold {
    font-weight: 800;
}

/* Text Colors */
.text-primary {
    color: #00446b;
}

.text-secondary {
    color: #6b7280;
}

.text-success {
    color: #0da874;
}

.text-danger {
    color: #e04b4b;
}

.text-warning {
    color: #f59e0b;
}

.text-info {
    color: #3b82f6;
}

.text-light {
    color: #f3f4f6;
}

.text-dark {
    color: #111827;
}

/* Text Alignment */
.text-left {
    text-align: left;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-justify {
    text-align: justify;
}

/* Text Transform */
.text-uppercase {
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.text-lowercase {
    text-transform: lowercase;
}

.text-capitalize {
    text-transform: capitalize;
}

/* Letter Spacing */
.tracking-tight {
    letter-spacing: -0.02em;
}

.tracking-normal {
    letter-spacing: 0;
}

.tracking-wide {
    letter-spacing: 0.02em;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

/* Line Height */
.leading-tight {
    line-height: 1.2;
}

.leading-normal {
    line-height: 1.5;
}

.leading-relaxed {
    line-height: 1.75;
}

.leading-loose {
    line-height: 2;
}

/* Links */
a, a.link {
    color: #00446b;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #00b2e2;
}

a:active {
    color: #003450;
}

a:disabled,
a.disabled {
    color: #d1d5db;
    cursor: not-allowed;
    text-decoration: none;
}

/* Nav Links Typography */
.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    transition: color 0.3s ease;
}

.nav-link:hover:not(.disabled) {
    color: #00446b;
}

.nav-link.active {
    font-weight: 600;
    color: #00446b;
}

.nav-link:disabled,
.nav-link.disabled {
    color: #d1d5db;
    cursor: not-allowed;
}

/* Monospace / Code */
code, pre {
    font-family: var(--font-family-mono);
    font-size: 13px;
    line-height: 1.5;
    background-color: #f3f4f6;
    border-radius: 4px;
}

code {
    padding: 2px 6px;
    color: #d7336f;
}

pre {
    padding: 12px;
    overflow-x: auto;
    color: #111827;
}

pre code {
    background-color: transparent;
    color: inherit;
    padding: 0;
}

/* Lists */
ul, ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

ul li, ol li {
    line-height: 1.6;
}

dl {
    margin-bottom: 16px;
}

dt {
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

dd {
    margin-left: 24px;
    margin-bottom: 8px;
    color: #6b7280;
}

/* Blockquote */
blockquote {
    border-left: 3px solid #00b2e2;
    padding-left: 16px;
    margin-left: 0;
    margin-bottom: 16px;
    color: #6b7280;
    font-style: italic;
    font-size: 15px;
    line-height: 1.7;
}

/* Label Typography */
label {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    margin-bottom: 6px;
    display: block;
}

label.required::after {
    content: ' *';
    color: #e04b4b;
}

/* Badge Typography */
.badge {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Button Typography */
button, .btn {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: -0.2px;
    transition: all 0.3s ease;
}

button.btn-sm, .btn-sm {
    font-size: 12px;
}

button.btn-lg, .btn-lg {
    font-size: 16px;
}

nav.nav-deep-dark .nav-item > a.nav-link {
    color: #ffffff;
    font-weight: 500;
}



.nav-item > a.nav-link{
    border-radius: 10px;
    border: 1px solid #ffffff00 ;

}

.active > a.nav-link{
    border: 1px solid #ffffff38 ;
    border-left: 3px solid #ffffff ;
    background-color: rgb(0 0 0 / 24%) !important;
}

.nav-item:hover > a.nav-link{
    /* Add animation */
    transition: opacity 0.55s ease, visibility 0.55s ease;
    border: 1px solid #ffffff38 ;
    border-left: 3px solid #ffffffbc !important;
}

body.layout-admin {
    background-color: #eef7fc;
}

.aside-width, body:not(.aside-compact) aside.aside-start, body:not(.aside-compact) aside.aside-end {
    width: 220px;
}

@media only screen and (min-width: 992px) {
    body.aside-sticky:not(.aside-compact) #wrapper_content, body.aside-sticky:not(.aside-compact) #header, body.aside-sticky:not(.aside-compact) #js_header_spacer {
        margin-left: 220px;
    }
}

.aside-primary {
    color: #ffffff;
    background-color: #00446b;

}
#header.header-match-aside-primary {
    background-color: #00446b;
}

.bg-primary{
    background-color: #00446b !important;
}
.text-primary{
    color: #00446b !important;
}

.my-spinner{
    opacity: 1;
    visibility: visible;
    transition: opacity 0.55s ease, visibility 0.55s ease;
    will-change: opacity;
}

.btn-light-blue {
    --bs-btn-color: #fff;
    --bs-btn-bg: #00b2e2;
    --bs-btn-border-color: #00b2e2;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #00b2e2;
    --bs-btn-hover-border-color: #00b2e2;
    --bs-btn-focus-shadow-rgb: 18, 85, 247; /* RGB of #00446b */
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #00b2e2;
    --bs-btn-active-border-color: #00b2e2;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #00b2e2;
    --bs-btn-disabled-border-color: #00b2e2;
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #00446b;
    --bs-btn-border-color: #00446b;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #00446b;
    --bs-btn-hover-border-color: #00446b;
    --bs-btn-focus-shadow-rgb: 18, 85, 247; /* RGB of #00446b */
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #00446b;
    --bs-btn-active-border-color: #00446b;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #00446b;
    --bs-btn-disabled-border-color: #00446b;
}

.btn-outline-primary {
    --bs-btn-color: #00446b;
    --bs-btn-border-color: #00446b;

    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #00446b; /* darker hover shade */
    --bs-btn-hover-border-color: #00446b;

    --bs-btn-focus-shadow-rgb: 18, 85, 247; /* RGB of #00446b */

    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #00446b; /* darker active state */
    --bs-btn-active-border-color: #00446b;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);

    --bs-btn-disabled-color: #00446b;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #00446b;

    --bs-gradient: none;
}

/* Hide Scroll view */
    .scrollable-vertical {
        scrollbar-color: #ffffff7a #eeeeee00;
        scrollbar-width: thin;
    }

/* MODERN DASHBOARD STYLES */

/* Stat Cards */
.stat-card {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.07);
    border-radius: 14px;
    padding: 20px 22px;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    animation: slideUp 0.4s ease both;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: left;
}

.stat-card:hover {
    border-color: rgba(0,0,0,0.15);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.1);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--stat-color, #00446b);
    opacity: 0.8;
}

.stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    color: #6b7280;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.stat-label::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--stat-color, #00446b);
    flex-shrink: 0;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 12px;
    color: #111827;
}

.stat-change {
    font-size: 12px;
    color: #6b7280;
    margin-top: auto;
}

.stat-change.positive {
    color: #0da874;
}

.stat-change.negative {
    color: #e04b4b;
}

/* Stat Card Variants */
.stat-card.primary { --stat-color: #00446b; }
.stat-card.success { --stat-color: #0da874; }
.stat-card.warning { --stat-color: #f59e0b; }
.stat-card.danger { --stat-color: #e04b4b; }
.stat-card.info { --stat-color: #3b82f6; }

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-new {
    background: rgba(91,142,240,0.12);
    color: #3b6ef5;
}

.status-new::before {
    background: #3b6ef5;
}

.status-progress {
    background: rgba(232,201,122,0.12);
    color: #d97706;
}

.status-progress::before {
    background: #d97706;
}

.status-review {
    background: rgba(180,130,240,0.12);
    color: #8b5cf6;
}

.status-review::before {
    background: #8b5cf6;
}

.status-completed {
    background: rgba(109,232,180,0.12);
    color: #0da874;
}

.status-completed::before {
    background: #0da874;
}

.status-hold {
    background: rgba(240,112,112,0.12);
    color: #e04b4b;
}

.status-hold::before {
    background: #e04b4b;
}

/* Priority Indicator */
.priority-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

.priority-high {
    background: #e04b4b;
    box-shadow: 0 0 6px #e04b4b;
}

.priority-medium {
    background: #f59e0b;
}

.priority-low {
    background: #b0b7c3;
}

/* Dashboard Card */
.dashboard-card {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.07);
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    transition: all 0.2s ease;
    animation: slideUp 0.4s ease both;
    cursor: pointer;
}

.dashboard-card:hover {
    border-color: rgba(0,0,0,0.15);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.1);
}

.card-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-value {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
}

.card-subtitle {
    font-size: 12px;
    color: #6b7280;
    margin-top: 8px;
}

/* Progress Bar */
.progress-item {
    margin-bottom: 18px;
}

.progress-item:last-child {
    margin-bottom: 0;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 7px;
    color: #6b7280;
}

.progress-label strong {
    font-weight: 600;
    color: #111827;
}

.progress-bar {
    height: 6px;
    background: #f3f4f6;
    border-radius: 20px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 20px;
    transition: width 0.6s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 30%;
    background: rgba(255,255,255,0.3);
    border-radius: 20px;
}

/* Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

/* Animation */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card:nth-child(1) { animation-delay: 0s; }
.stat-card:nth-child(2) { animation-delay: 0.06s; }
.stat-card:nth-child(3) { animation-delay: 0.12s; }
.stat-card:nth-child(4) { animation-delay: 0.18s; }
.stat-card:nth-child(5) { animation-delay: 0.24s; }
.stat-card:nth-child(6) { animation-delay: 0.3s; }

/* Section Header */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding: 0 4px;
}

.section-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.3px;
}

/* Premium Bootstrap 5 Nav-Tabs */
.nav-tabs {
    border-bottom: 2px solid #e5e7eb;
    gap: 6px;
}

.nav-tabs .nav-link {
    color: #6b7280;
    font-weight: 500;
    font-size: 14px;
    padding: 10px 16px;
    border: none;
    border-bottom: 2px solid transparent;
    background-color: transparent;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.nav-tabs .nav-link:hover {
    color: #00446b;
    background-color: rgba(0, 68, 107, 0.04);
    border-bottom-color: rgba(0, 68, 107, 0.2);
}

.nav-tabs .nav-link.active {
    color: #00446b;
    background-color: transparent;
    border-bottom-color: #00b2e2;
    font-weight: 600;
}

.nav-tabs .nav-link.active:hover {
    color: #00446b;
    background-color: rgba(0, 178, 226, 0.05);
    border-bottom-color: #00b2e2;
}

.nav-tabs .nav-link:disabled {
    color: #d1d5db;
    cursor: not-allowed;
    background-color: transparent;
}

/* Nav-Tabs Variants */

/* Primary (Default) - Already styled above */
.nav-tabs.nav-tabs-primary .nav-link.active {
    color: #00446b;
    border-bottom-color: #00b2e2;
}

.nav-tabs.nav-tabs-primary .nav-link:hover:not(.disabled) {
    color: #00446b;
    border-bottom-color: rgba(0, 178, 226, 0.3);
}

/* Secondary - Subtle muted style */
.nav-tabs.nav-tabs-secondary .nav-link {
    color: #9ca3af;
    font-weight: 400;
}

.nav-tabs.nav-tabs-secondary .nav-link:hover:not(.disabled) {
    color: #4b5563;
    background-color: rgba(75, 85, 99, 0.04);
}

.nav-tabs.nav-tabs-secondary .nav-link.active {
    color: #4b5563;
    border-bottom-color: #6b7280;
}

.nav-tabs.nav-tabs-secondary .nav-link.active:hover {
    color: #4b5563;
    background-color: rgba(75, 85, 99, 0.08);
    border-bottom-color: #6b7280;
}

/* Outline Tabs - Bordered boxes */
.nav-tabs.nav-tabs-outline {
    border-bottom: none;
}

.nav-tabs.nav-tabs-outline .nav-link {
    border: 1px solid #e5e7eb;
    border-radius: 6px 6px 0 0;
    margin-right: 4px;
}

.nav-tabs.nav-tabs-outline .nav-link:hover:not(.disabled) {
    border-color: #00b2e2;
    background-color: rgba(0, 178, 226, 0.05);
}

.nav-tabs.nav-tabs-outline .nav-link.active {
    border-color: #00b2e2;
    background-color: rgba(0, 178, 226, 0.08);
    border-bottom-color: #00b2e2;
}

.nav-tabs.nav-tabs-outline .nav-link.active:hover {
    border-color: #00b2e2;
    background-color: rgba(0, 178, 226, 0.12);
    border-bottom-color: #00b2e2;
}

/* Pill Tabs - Rounded corners with background */
.nav-tabs.nav-tabs-pills {
    border-bottom: none;
    gap: 8px;
}

.nav-tabs.nav-tabs-pills .nav-link {
    border-radius: 20px;
    background-color: #f3f4f6;
    border: 1px solid transparent;
    cursor: pointer;
}

.nav-tabs.nav-tabs-pills .nav-link:hover:not(.disabled) {
    background-color: #e5e7eb;
    color: #00446b;
}

.nav-tabs.nav-tabs-pills .nav-link.active {
    background-color: #00446b;
    color: #ffffff;
    border-bottom-color: transparent;
    font-weight: 600;
}

.nav-tabs.nav-tabs-pills .nav-link.active:hover {
    background-color: #003450;
    color: #ffffff;
    border-bottom-color: transparent;
}

/* Tab Content Animation */
.tab-content {
    animation: slideUp 0.3s ease;
}

.tab-pane {
    animation: slideUp 0.3s ease;
}

/* Color-Coded Tab Variants for .nav-link */
.nav-link.tab-danger {
    border-bottom-color: transparent;
}

.nav-link.tab-danger:hover {
    color: #e04b4b;
    border-bottom-color: rgba(224, 75, 75, 0.2);
}

.nav-link.tab-danger.active {
    color: #e04b4b;
    border-bottom-color: #e04b4b;
}

.nav-link.tab-success {
    border-bottom-color: transparent;
}

.nav-link.tab-success:hover {
    color: #0da874;
    border-bottom-color: rgba(13, 168, 116, 0.2);
}

.nav-link.tab-success.active {
    color: #0da874;
    border-bottom-color: #0da874;
}

.nav-link.tab-warning {
    border-bottom-color: transparent;
}

.nav-link.tab-warning:hover {
    color: #f59e0b;
    border-bottom-color: rgba(245, 158, 11, 0.2);
}

.nav-link.tab-warning.active {
    color: #f59e0b;
    border-bottom-color: #f59e0b;
}

.nav-link.tab-info {
    border-bottom-color: transparent;
}

.nav-link.tab-info:hover {
    color: #3b82f6;
    border-bottom-color: rgba(59, 130, 246, 0.2);
}

.nav-link.tab-info.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

    