
:root {
  /* South Sudan Color Palette */
  --ss-caa-blue: #003366;       /* Dark blue for authority/professionalism */
  --ss-caa-red: #CC0000;        /* Red from flag for alerts/importance */
  --ss-caa-green: #006633;      /* Green from flag for success/positive */
  --ss-caa-gold: #FFCC00;       /* Gold for accents */
  --ss-caa-black: #000000;      /* Black for text/headers */
  --ss-caa-light: #F5F7FA;      /* Light background */
  --ss-caa-white: #FFFFFF;      /* Pure white */
  
  /* UI Elements */
  --border-radius: 10px;
  --box-shadow: 0 5px 25px rgba(0,0,0,0.08);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
/* ================== */
/* GLOBAL ENHANCEMENTS */
/* ================== */
.dataTables_wrapper .dataTable tfoot tr td {
	padding: .4rem .9375rem;
	font-weight: 600;
}

#frmentry .drpzone {
	min-height: auto;
}
#frmentry .drpzone .dz-preview {
	min-height: auto;
}
#frmentry .dz-preview .dz-image {
	width: 240px;
	height: 40px;
}
#frmentry .drpzone .dz-preview .dz-details {
	top:6px;
	line-height: 12px;
	padding: 0 !important;
}
#frmentry .drpzone .dz-preview .dz-details .dz-size {
	margin-bottom: 8px;
}

 .img-side {
        background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.7)), url('../images/auth/large-bg.jpg') center/cover no-repeat;
        padding: 2rem;
        display: flex;
        border-radius: 0 12px 12px 0;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        color: white;
        text-align: center;
        min-height: 100%;
    }
.auth.auth-img-bg .auth-form-transparent {
	background: rgba(255, 255, 255, 0.8);
}

.navbar .navbar-menu-wrapper .navbar-nav .nav-item.nav-profile .nav-link .nav-profile-name,
.navbar .navbar-menu-wrapper .navbar-nav .nav-item.nav-profile .nav-link::after {
	color: #fff !important;
}
.page-body-wrapper {
	background-color: #f4f4f4;
}
.auth ul .list-group-item {
	text-indent: 20px;
}
.list-group-item i {
	line-height: 1.6;
	left: -25px;
	font-size: 1rem;
	position: absolute;
}
th.actioncol,
td.actioncol {
	width: 90px !important;
	text-align: center !important;
}

.btn.btn-icon.btn-sm {
	width: 32px;
	height: 32px;
}
.btn.btn-icon.btn-sm i {
	font-size: 1.2rem !important;
	line-height: 1.9rem;
}

.form-select {
	font-size: 0.875rem;
	padding: 0.5rem 2.25rem 0.5rem 0.75rem;
}

.row div .form-check {
	margin-left: 10px;
}

label.error {
	color: var(--bs-red);
	font-size: 0.8rem;
}

.form-control:invalid,
.form-control.error {
	border-color: var(--bs-red);
	padding-right: calc(1.5em + 0.75rem);
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
	background-repeat: no-repeat;
	background-position: right calc(0.375em + 0.1875rem) center;
	background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}
.form-control:invalid:focus,
.form-control.error:focus {
	border-color: var(--bs-red);
	box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

textarea.form-control:invalid,
textarea.form-control.error {
	padding-right: calc(1.5em + 0.75rem);
	background-position: top calc(0.375em + 0.1875rem) right calc(0.375em + 0.1875rem);
}

.form-select:invalid,
.form-select.error {
	border-color: var(--bs-red);
}
.form-select:invalid:not([multiple]):not([size]),
.form-select:invalid:not([multiple])[size="1"],
.form-select.error:not([multiple]):not([size]),
.form-select.error:not([multiple])[size="1"] {
	padding-right: 4.125rem;
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"), url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
	background-position: right 0.75rem center, center right 2.25rem;
	background-size: 16px 12px, calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}
.form-select:invalid:focus,
.form-select.error:focus {
	border-color: var(--bs-red);
	box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.form-control-color:invalid,
.form-control-color.error {
	width: calc(3rem + calc(1.5em + 0.75rem));
}

.form-check-input:invalid,
.form-check-input.error {
	border-color: var(--bs-red);
}
.form-check-input:invalid:checked,
.form-check-input.error:checked {
	background-color: var(--bs-red);
}
.form-check-input:invalid:focus,
.form-check-input.error:focus {
	box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}
.form-check-input:invalid ~ .form-check-label,
.form-check-input.error ~ .form-check-label {
	color: var(--bs-red);
}

.form-check-inline .form-check-input ~ .invalid-feedback {
	margin-left: 0.5em;
}

.input-group > .form-control:not(:focus):invalid,
.input-group > .form-control:not(:focus).error,
.input-group > .form-select:not(:focus):invalid,
.input-group > .form-select:not(:focus).error,
.input-group > .form-floating:not(:focus-within):invalid,
.input-group > .form-floating:not(:focus-within).error {
	z-index: 4;
}

.form-control:read-only {
	background-color: #e9ecef;
}

.sidebar-dark .sidebar,
.navbar .navbar-menu-wrapper {
	background: #0C1A33;
}

.sidebar-dark .sidebar .nav .nav-item .nav-link {
	color: #d0cfcf;
}

.sidebar-dark .sidebar .nav .nav-item .nav-link i {
	color: inherit;
}

.sidebar-dark .sidebar .nav .nav-item .nav-link i.menu-icon {
	color: #d0cfcf;
}

.sidebar-dark .sidebar .nav .nav-item .nav-link .menu-title {
	color: inherit;
}

.sidebar-dark .sidebar .nav .nav-item.active > .nav-link {
	background: initial;
}

.sidebar-dark .sidebar .nav .nav-item.active > .nav-link .menu-title,
.sidebar-dark .sidebar .nav .nav-item.active > .nav-link i {
	color: #4d83ff;
}

.sidebar-dark .sidebar .nav:not(.sub-menu) > .nav-item {
	border-bottom: 1px solid #37404f;
}

.sidebar-dark .sidebar .nav:not(.sub-menu) > .nav-item:hover > .nav-link {
	background: #59606b;
	color: #d0cfcf;
}

.sidebar-dark .sidebar .nav.sub-menu .nav-item::before {
	background: #a0a1a5;
}

.sidebar-dark .sidebar .nav.sub-menu .nav-item .nav-link {
	color: #d0cfcf;
}

.sidebar-dark .sidebar .nav.sub-menu .nav-item .nav-link:before {
	color: #e9e9e9;
}

.sidebar-dark .sidebar .nav.sub-menu .nav-item .nav-link.active {
	color: #4d83ff;
	background: transparent;
}

.sidebar-dark .sidebar .nav.sub-menu .nav-item .nav-link:hover {
	color: #9a94a7;
}

.sidebar-dark .sidebar .nav.sub-menu .nav-item:hover {
	background: transparent;
}
.sidebar-dark .navbar .navbar-brand-wrapper {
	background: #282f3a;
	border-bottom: 1px solid #3f4959;
}

.sidebar-dark .navbar .navbar-brand-wrapper .navbar-brand-inner-wrapper .navbar-brand.brand-logo-white {
	display: block;
}
.sidebar .nav-item:hover .nav-link,
.sidebar .nav-item:hover .nav-link *,
.sidebar .sub-menu .nav-item:hover .nav-link {
    color: #007bff !important;
}

/* .sidebar-dark .navbar .navbar-brand-wrapper .navbar-brand-inner-wrapper .navbar-brand.brand-logo {
  display: none;
} */

.sidebar-dark .navbar .navbar-brand-wrapper .navbar-brand-inner-wrapper .navbar-toggler:not(.navbar-toggler-right) {
	color: #ffffff;
}

.sidebar-dark.sidebar-icon-only .sidebar .nav .nav-item.hover-open .nav-link .menu-title {
	background: #282f3a;
}

.sidebar-dark.sidebar-icon-only .sidebar .nav .nav-item.hover-open .nav-link .menu-title {
	color: #ffffff;
}

.sidebar-dark.sidebar-icon-only .sidebar .nav .nav-item.hover-open .nav-link:hover .menu-title {
	background: #282f3a;
}

.sidebar-dark.sidebar-icon-only .sidebar .nav .nav-item.hover-open .collapse,
.sidebar-dark.sidebar-icon-only .sidebar .nav .nav-item.hover-open .collapsing {
	background: #282f3a;
}


/* ============= */
/* DATA TABLES */
/* ============= */

.dataTables_wrapper .dataTable {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}

.dataTables_wrapper .dataTable thead th {
  background: var(--ss-caa-blue);
  color: white;
  padding: 12px 15px;
  border: none;
  font-weight: 600;
  position: sticky;
  top: 0;
}

.dataTables_wrapper .dataTable tbody td {
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
  vertical-align: middle;
}

.dataTables_wrapper .dataTable tbody tr:hover {
  background-color: rgba(0, 102, 153, 0.03);
}

.dataTables_wrapper .dataTable tfoot tr td {
  padding: 12px 15px;
  font-weight: 600;
  background: #f8f9fa;
  border-top: 2px solid var(--ss-caa-blue);
}

/* Action buttons in tables */
td.actioncol a.btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 3px;
}
.form-control, .form-select {
  border-radius: var(--border-radius);
  border: 1px solid #ddd;
  padding: 10px 15px;
  transition: var(--transition);
}

.form-control:focus, .form-select:focus {
  border-color: var(--ss-caa-blue);
  box-shadow: 0 0 0 0.2rem rgba(0, 102, 153, 0.25);
}

.input-group-text {
  background-color: #f8f9fa;
  border-color: #ddd;
}

/* Form validation */
.form-control:invalid, .form-control.error {
  border-color: var(--ss-caa-red);
}

.form-control:invalid:focus, .form-control.error:focus {
  box-shadow: 0 0 0 0.2rem rgba(204, 0, 0, 0.25);
}

label.error {
  color: var(--ss-caa-red);
  font-size: 0.8rem;
  margin-top: 5px;
}

/* ============ */
/* BUTTONS */
/* ============ */

.btn {
  border-radius: var(--border-radius);
  padding: 8px 20px;
  font-weight: 500;
  transition: var(--transition);
  letter-spacing: 0.5px;
  border: none;
}

.btn-primary {
  background: var(--ss-caa-blue);
  box-shadow: 0 4px 15px rgba(0, 102, 153, 0.3);
}

.btn-primary:hover {
  background: #002244;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 102, 153, 0.4);
}

.btn-danger {
  background: var(--ss-caa-red);
}

.btn-success {
  background: var(--ss-caa-green);
}

.btn-warning {
  background: var(--ss-caa-gold);
  color: #333;
}

/* Icon buttons */
.btn-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
}

/* =============== */
/* CARD COMPONENTS */
/* =============== */

.card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.card-header {
  background: var(--ss-caa-white);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  font-weight: 600;
  padding: 1.25rem 1.5rem;
  border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
  color: var(--ss-caa-blue);
  font-size: 1.1rem;
}

.card-body {
  padding: 1.5rem;
}

/* ================= */
/* SPECIAL COMPONENTS */
/* ================= */

/* File dropzone */
#frmentry .drpzone {
  min-height: auto;
  border: 2px dashed #ccc;
  border-radius: var(--border-radius);
  padding: 20px;
  text-align: center;
  transition: var(--transition);
}

#frmentry .drpzone:hover {
  border-color: var(--ss-caa-blue);
  background: rgba(0, 102, 153, 0.05);
}

#frmentry .dz-preview .dz-image {
  width: 240px;
  height: 40px;
  border-radius: 4px;
  overflow: hidden;
}

/* Auth pages */
.auth-full {
  background: linear-gradient(135deg, var(--ss-caa-blue) 0%, #002244 100%);
  background-size: cover;
}

.auth.auth-img-bg .auth-form-transparent {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--border-radius);
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  border-top: 4px solid var(--ss-caa-gold);
}

/* ================ */
/* RESPONSIVE DESIGN */
/* ================ */

@media (max-width: 768px) {
  .dashboard-tabs .item {
    min-width: 100%;
  }
  
  .navbar-brand-wrapper {
    width: auto !important;
  }
  
  .sidebar-dark .sidebar {
    box-shadow: none;
  }
}

/* =============== */
/* ANIMATIONS/UTILS */
/* =============== */

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.card, .dashboard-tabs .item {
  animation: fadeIn 0.5s ease-out forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* Utility classes */
.rounded-lg {
  border-radius: var(--border-radius);
}

.shadow-sm {
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.shadow-lg {
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.transition {
  transition: var(--transition);
}

/* Aviation-themed loading spinner */
.loading-spinner {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  border: 3px solid rgba(0, 102, 153, 0.2);
  border-radius: 50%;
  border-top-color: var(--ss-caa-blue);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Status indicators */
.status-indicator {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
}

.status-active {
  background: var(--ss-caa-green);
  box-shadow: 0 0 8px rgba(0, 204, 102, 0.5);
}

.status-inactive {
  background: var(--ss-caa-red);
  box-shadow: 0 0 8px rgba(204, 0, 0, 0.3);
}
