#orderSelectionModal .modal-body {
  max-height: 60vh;
  overflow-y: auto;
}
/* your styles go here */

/* Modern CSS Variables for Consistent Theming */
:root {
    --bs-primary: #279989;
    --bs-primary-rgb: 39, 153, 137;
    --primary-light: #e8f4f2;
    --primary-dark: #1f4742;
    --primary-darker: #1a3d38;
    --primary-hover: rgba(39, 153, 137, 0.1);
    --primary-shadow: rgba(39, 153, 137, 0.3);
    --primary-border: rgba(39, 153, 137, 0.2);
    --primary-gradient: linear-gradient(135deg, var(--bs-primary) 0%, var(--primary-dark) 100%);
}

.table {
    table-layout: fixed;
    width: 100%;
}

/* Make table headers wider and more prominent */
.table thead th {
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: var(--primary-dark);
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.025em;
    background: linear-gradient(135deg, var(--primary-light) 0%, #f8f9fa 100%);
    border-bottom: 3px solid var(--bs-primary);
    min-width: 120px;
}

/* Ensure table cells have adequate padding */
.table td {
    padding: 1rem 1.25rem;
    vertical-align: middle;
}

/* Fix pagination button colors to match theme */
.pagination .page-item .page-link {
    color: #495057;
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pagination .page-item .page-link:hover {
    color: var(--bs-primary);
    background-color: var(--primary-hover);
    border-color: var(--primary-border);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--primary-shadow);
}

.pagination .page-item.active .page-link {
    background: var(--primary-gradient);
    border-color: var(--bs-primary);
    color: #ffffff;
    box-shadow: 0 4px 15px var(--primary-shadow);
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    background-color: #f8f9fa;
    border-color: #dee2e6;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Define column widths */
.col-quantity {
    width: 10%;
}

.col-code {
    width: 15%;
}

.col-description {
    width: 45%;
}

.col-price {
    width: 15%;
}

.col-net-price {
    width: 15%;
}

/* Handle text overflow - allow wrapping for better readability */
.table td, .table th {
    overflow: hidden;
    word-wrap: break-word;
    white-space: normal;
}

/* utility to wrap long table cell content without inline styles */
.cell-wrap {
    word-wrap: break-word;
    white-space: normal;
}

/* utility to preserve line breaks in long text blocks */
.pre-wrap {
    white-space: pre-wrap;
}

/* Document list component styles (moved from template) */
.document-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.document-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #ffffff 0%, rgba(var(--bs-primary-rgb), 0.02) 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.document-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-gradient);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.document-item:hover {
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.05) 0%, rgba(var(--bs-primary-rgb), 0.02) 100%);
    border-color: rgba(var(--bs-primary-rgb), 0.2);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(var(--bs-primary-rgb), 0.15);
}

.document-item:hover::before {
    transform: scaleY(1);
}

.document-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    color: white;
    border-radius: 10px;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 4px 8px rgba(var(--bs-primary-rgb), 0.25);
    transition: all 0.3s ease;
}

.document-item:hover .document-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 16px rgba(var(--bs-primary-rgb), 0.4);
}

.document-content {
    flex: 1;
    min-width: 0;
}

.document-name {
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.document-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: #6c757d;
}

.document-type {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    background: rgba(var(--bs-primary-rgb), 0.1);
    color: var(--bs-primary);
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
}

.document-action {
    color: var(--bs-primary);
    font-size: 1rem;
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.3s ease;
}

.document-item:hover .document-action {
    opacity: 1;
    transform: translateX(0);
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.1) 0%, rgba(var(--bs-primary-rgb), 0.05) 100%);
    border-radius: 50%;
    color: var(--bs-primary);
    font-size: 2rem;
}

.empty-state-text {
    color: #6c757d;
    font-size: 0.95rem;
    margin: 0;
}

@media (max-width: 576px) {
    .document-item {
        padding: 0.875rem 1rem;
        gap: 0.75rem;
    }

    .document-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .document-name {
        font-size: 0.9rem;
    }
}

.img-login-page {
    max-height: 100px;
}

.privacy-statement-footer {
    color: #ffffff;
}

.privacy-statement-footer:hover {
    color: #be3a34;
}

.clickable-row {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 3px solid var(--bs-primary);
    color: var(--primary-dark);
}

.clickable-row:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 4px 12px var(--primary-shadow);
    transform: translateX(4px);
}

.folder-row-icon {
    color: #ffc107;
}

.file-row-icon {
    color: #6c757d;
}

.clickable-row.folder-row {
    border-left-color: #ffc107;
}

.clickable-row.file-row {
    border-left-color: #6c757d;
}

.clickable-row.file-row:hover {
    background-color: #6c757d23;
}

.non-clickable-row {
    cursor: default;
    border-left: 2.5px solid #dee2e6;
    color: #6c757d;
}

/* Modern button hover effects without pop-up */
.btn-warning:hover {
    background-color: #e0a800 !important;
    border-color: #d39e00 !important;
    --bs-btn-hover-bg: #e0a800 !important;
    --bs-btn-hover-border-color: #d39e00 !important;
    --bs-btn-hover-color: #212529 !important;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3) !important;
}

.btn-secondary:hover {
    background-color: #a52d28 !important;
    border-color: #9c2722 !important;
    --bs-btn-hover-bg: #a52d28 !important;
    --bs-btn-hover-border-color: #9c2722 !important;
    --bs-btn-hover-color: #fff !important;
    box-shadow: 0 4px 12px rgba(190, 58, 52, 0.3) !important;
}

.btn-danger:hover {
    background-color: #bb2d3b !important;
    border-color: #b02a37 !important;
    --bs-btn-hover-bg: #bb2d3b !important;
    --bs-btn-hover-border-color: #b02a37 !important;
    --bs-btn-hover-color: #fff !important;
    box-shadow: 0 4px 12px rgba(187, 45, 59, 0.3) !important;
}

/* Override any green hover effects for main buttons */
.btn-primary:hover,
.btn-success:hover,
.btn-info:hover,
.btn-warning:hover {
    --bs-btn-hover-bg: inherit !important;
    --bs-btn-hover-border-color: inherit !important;
    --bs-btn-hover-color: #fff !important;
}

/* Modern card design with proper styling */
.card {
    border-radius: 20px !important;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background: linear-gradient(135deg, #ffffff 0%, rgba(var(--bs-primary-rgb), 0.02) 100%) !important;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--bs-primary) 0%, var(--primary-dark) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card:hover {
    box-shadow:
        0 12px 30px rgba(var(--bs-primary-rgb), 0.1),
        0 4px 12px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 1) !important;
    border-color: rgba(var(--bs-primary-rgb), 0.2) !important;
}

.card:hover::before {
    opacity: 1;
}

/* Colored counter cards styling */
.card.bg-primary {
    background: var(--primary-gradient) !important;
    box-shadow:
        0 10px 30px rgba(var(--bs-primary-rgb), 0.35),
        0 4px 12px rgba(0, 0, 0, 0.15) !important;
    border: none !important;
}

.card.bg-primary::before {
    display: none;
}

.card.bg-primary:hover {
    box-shadow:
        0 12px 35px rgba(var(--bs-primary-rgb), 0.45),
        0 6px 16px rgba(0, 0, 0, 0.2) !important;
    transform: translateY(-2px) !important;
}

.card.bg-success {
    background: linear-gradient(135deg, #198754 0%, #157347 100%) !important;
    box-shadow:
        0 10px 30px rgba(25, 135, 84, 0.35),
        0 4px 12px rgba(0, 0, 0, 0.15) !important;
    border: none !important;
}

.card.bg-success::before {
    display: none;
}

.card.bg-success:hover {
    box-shadow:
        0 12px 35px rgba(25, 135, 84, 0.45),
        0 6px 16px rgba(0, 0, 0, 0.2) !important;
    transform: translateY(-2px) !important;
}

.card.bg-info {
    background: linear-gradient(135deg, #0dcaf0 0%, #0aa2c0 100%) !important;
    box-shadow:
        0 10px 30px rgba(13, 202, 240, 0.35),
        0 4px 12px rgba(0, 0, 0, 0.15) !important;
    border: none !important;
}

.card.bg-info::before {
    display: none;
}

.card.bg-info:hover {
    box-shadow:
        0 12px 35px rgba(13, 202, 240, 0.45),
        0 6px 16px rgba(0, 0, 0, 0.2) !important;
    transform: translateY(-2px) !important;
}

.card.bg-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%) !important;
    box-shadow:
        0 10px 30px rgba(255, 193, 7, 0.35),
        0 4px 12px rgba(0, 0, 0, 0.15) !important;
    border: none !important;
}

.card.bg-warning::before {
    display: none;
}

.card.bg-warning:hover {
    box-shadow:
        0 12px 35px rgba(255, 193, 7, 0.45),
        0 6px 16px rgba(0, 0, 0, 0.2) !important;
    transform: translateY(-2px) !important;
}

.card-header {
    border-top-left-radius: 20px !important;
    border-top-right-radius: 20px !important;
    background: var(--primary-gradient) !important;
    border-bottom: 2px solid rgba(var(--bs-primary-rgb), 0.15) !important;
    padding: 1.5rem 2rem !important;
    font-weight: 600;
    color: #ffffff;
    position: relative;
}

.card-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--bs-primary) 0%, transparent 100%);
}

.card-footer {
    border-bottom-left-radius: 20px !important;
    border-bottom-right-radius: 20px !important;
    background: linear-gradient(135deg, #f8f9fa 0%, rgba(var(--bs-primary-rgb), 0.03) 100%) !important;
    border-top: 1px solid rgba(var(--bs-primary-rgb), 0.1) !important;
    padding: 1.25rem 2rem !important;
}

/* Modern card body enhancements */
.card-body {
    padding: 2rem !important;
    position: relative;
}

/* Card title styling */
.card-title {
    color: var(--primary-dark);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.card-subtitle {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* Card with accent border */
.card.accent-primary {
    border-left: 4px solid var(--bs-primary) !important;
}

.card.accent-success {
    border-left: 4px solid #198754 !important;
}

.card.accent-warning {
    border-left: 4px solid #ffc107 !important;
}

.card.accent-danger {
    border-left: 4px solid #dc3545 !important;
}

/* Card link hover effects */
.card a.stretched-link::after {
    border-radius: 20px;
}

/* Stats card enhancements */
.card .stats-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    color: white;
    font-size: 1.75rem;
    box-shadow: 0 8px 20px rgba(var(--bs-primary-rgb), 0.3);
    transition: all 0.3s ease;
}

.card:hover .stats-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(var(--bs-primary-rgb), 0.5);
}

/* Modern button styling without pop-up effects */
.btn {
    border-radius: 12px !important;
    border: none !important;
    font-weight: 500 !important;
    letter-spacing: 0.025em !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06) !important;
}

/* Gradient styling for create buttons */
.btn-primary {
    background: var(--primary-gradient) !important;
    box-shadow: 0 4px 8px var(--primary-shadow) !important;
    border: none !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-darker) 100%) !important;
    box-shadow: 0 8px 20px var(--primary-shadow) !important;
    transform: translateY(-2px) !important;
    color: #ffffff !important;
}

.btn-primary.active {
    background: linear-gradient(135deg, var(--primary-darker) 0%, #15332e 100%) !important;
    box-shadow: 0 2px 8px rgba(var(--bs-primary-rgb), 0.4) !important;
    transform: translateY(1px);
}

.btn-success {
    background: linear-gradient(135deg, #198754 0%, #157347 100%) !important;
    box-shadow: 0 2px 4px rgba(25, 135, 84, 0.2) !important;
}

.btn-success:hover {
    background: linear-gradient(135deg, #157347 0%, #146c43 100%) !important;
    box-shadow: 0 4px 8px rgba(25, 135, 84, 0.3) !important;
}

.btn-info {
    background: linear-gradient(135deg, #0dcaf0 0%, #0aa2c0 100%) !important;
    box-shadow: 0 2px 4px rgba(13, 202, 240, 0.2) !important;
}

.btn-info:hover {
    background: linear-gradient(135deg, #0aa2c0 0%, #099aa9 100%) !important;
    box-shadow: 0 4px 8px rgba(13, 202, 240, 0.3) !important;
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%) !important;
    box-shadow: 0 2px 4px rgba(255, 193, 7, 0.2) !important;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #e0a800 0%, #d39e00 100%) !important;
    box-shadow: 0 4px 8px rgba(255, 193, 7, 0.3) !important;
}

/* Modern navbar with subtle glass effect */
nav.navbar {
    background: var(--primary-gradient) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.08) !important;
}

/* Modern sidebar with depth */
nav.side-navbar {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-right: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 4px 0 6px -1px rgba(0, 0, 0, 0.1), 2px 0 4px -1px rgba(0, 0, 0, 0.06) !important;
}

/* Active sidebar item with navbar gradient */
.sidebar-item.active > .sidebar-link,
.sidebar-item li.active > .sidebar-link {
    background: var(--primary-gradient) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px var(--primary-shadow) !important;
    border-left: 4px solid rgba(255, 255, 255, 0.5) !important;
}

.sidebar-item.active > .sidebar-link:hover,
.sidebar-item li.active > .sidebar-link:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-darker) 100%) !important;
    box-shadow: 0 6px 16px rgba(var(--bs-primary-rgb), 0.4) !important;
    transform: translateX(4px) !important;
}

/* Regular sidebar item hover effects */
.sidebar-link:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, #f8f9fa 100%) !important;
    color: var(--bs-primary) !important;
    box-shadow: 0 4px 8px var(--primary-shadow) !important;
    transform: translateX(4px) !important;
    border-left: 3px solid var(--bs-primary) !important;
}

/* Modern form controls */
.form-control {
    border-radius: 12px !important;
    border: 2px solid #e9ecef !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-lightest) 100%) !important;
}

.form-control:focus {
    border-color: var(--bs-primary) !important;
    box-shadow: 0 0 0 4px rgba(var(--bs-primary-rgb), 0.15) !important;
    background: #ffffff !important;
    transform: translateY(-1px) !important;
}

/* Modern table styling */
.table {
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
}

.table thead th {
    background: transparent !important;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05) !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    font-size: 0.875rem !important;
}

.table thead {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
}

/* Modern dropdown styling */
.dropdown-menu {
    border-radius: 16px !important;
    border: 1px solid rgba(var(--bs-primary-rgb), 0.1) !important;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.12),
        0 8px 16px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(var(--bs-primary-rgb), 0.05) !important;
    background: linear-gradient(135deg, #ffffff 0%, rgba(var(--bs-primary-rgb), 0.02) 100%) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    padding: 0.5rem !important;
}

/* ===== Modern searchable select (Choices.js) theming ===== */
.choices {
  --select-border: rgba(var(--bs-primary-rgb), 0.25);
  --select-border-hover: rgba(var(--bs-primary-rgb), 0.45);
  --select-bg: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.choices__inner {
  border-radius: 12px !important;
  border: 2px solid var(--select-border) !important;
  background: var(--select-bg) !important;
  min-height: 44px !important;
  padding: 6px 10px !important;
  box-shadow: 0 1px 3px rgba(0,0,0,.05) !important;
}

.choices.is-focused .choices__inner {
  border-color: var(--bs-primary) !important;
  box-shadow: 0 0 0 4px rgba(var(--bs-primary-rgb), .15) !important;
}

.choices__list--dropdown {
  border-radius: 12px !important;
  border: 1px solid var(--select-border) !important;
  background: var(--select-bg) !important;
  box-shadow: 0 20px 40px rgba(0,0,0,.12), 0 8px 16px rgba(0,0,0,.08), 0 0 0 1px rgba(var(--bs-primary-rgb), .05) !important;
  overflow: hidden !important;
}

.choices__item--choice.is-highlighted {
  background: linear-gradient(135deg, var(--primary-hover) 0%, rgba(var(--bs-primary-rgb), 0.15) 100%) !important;
  color: var(--bs-primary) !important;
}

.choices__item--selectable {
  padding: 10px 12px !important;
}

.choices__placeholder {
  opacity: .7 !important;
}

.choices[data-type*=select-one]::after {
  border: none !important;
}

.choices[data-type*=select-one] .choices__input {
  margin-bottom: 0 !important;
  padding: 10px 12px !important;
  border-bottom: 1px solid rgba(0,0,0,.06) !important;
}

.choices__list--single .choices__item {
  font-weight: 500 !important;
}

.dropdown-item {
    border-radius: 10px !important;
    margin: 0.25rem 0 !important;
    transition: all 0.2s ease !important;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, rgba(var(--bs-primary-rgb), 0.15) 100%) !important;
    color: var(--bs-primary) !important;
    transform: translateX(4px) !important;
}

.dropdown-item:active {
    background: var(--primary-gradient) !important;
    color: white !important;
}

/* Modern modal styling */
.modal-content {
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.25),
        0 10px 25px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(var(--bs-primary-rgb), 0.1) !important;
    background: linear-gradient(135deg, #ffffff 0%, rgba(var(--bs-primary-rgb), 0.02) 100%) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    overflow: hidden;
}

.modal-header {
    border-bottom: 2px solid rgba(var(--bs-primary-rgb), 0.15) !important;
    background: linear-gradient(135deg, var(--primary-light) 0%, #ffffff 100%) !important;
    padding: 1.5rem 2rem !important;
}

.modal-title {
    color: var(--primary-dark);
    font-weight: 700;
}

.modal-footer {
    border-top: 1px solid rgba(var(--bs-primary-rgb), 0.1) !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%) !important;
    padding: 1.5rem 2rem !important;
}

/* Subtle body background with modern gradient */
body {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #dee2e6 100%) !important;
    min-height: 100vh !important;
}

/* Modern spacing and typography improvements */
.card-body {
    padding: 1.5rem !important;
}

.table td, .table th {
    padding: 1rem 1.25rem !important;
    vertical-align: middle !important;
}

/* Enhanced focus states for accessibility */
.btn:focus, .form-control:focus, .dropdown-toggle:focus {
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(var(--bs-primary-rgb), 0.3) !important;
    border-color: var(--bs-primary) !important;
}

/* Smooth scrolling for better UX */
html {
    scroll-behavior: smooth !important;
}

/* ===== LOGIN PAGE MODERNIZATION ===== */

/* Login page background and container */
.login-page {
  background: linear-gradient(135deg, var(--bs-primary) 0%, var(--primary-dark) 50%, var(--primary-darker) 100%);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.login-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
  z-index: 1;
}

.login-page .container {
  position: relative;
  z-index: 2;
}

/* Main login card */
.login-page .card {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px !important;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-page .card:hover {
  box-shadow: 
    0 35px 60px -12px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.15);
}

/* Logo panel (left side) */
.login-page .info {
  background: var(--primary-gradient);
  color: white;
  position: relative;
  overflow: hidden;
}

.login-page .info::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="logo-pattern" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="2" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23logo-pattern)"/></svg>');
  opacity: 0.3;
}

.login-page .info .py-5 {
  position: relative;
  z-index: 1;
}

.login-page .info h1 {
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  font-weight: 700;
  letter-spacing: -0.5px;
  color: white;
}

/* Form panel (right side) */
.login-page .col-lg-6.bg-white {
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(15px);
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

/* Login form styling */
.login-form {
  position: relative;
  z-index: 1;
}

.login-form h1 {
  color: var(--primary-dark);
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
  font-size: 2.5rem;
  letter-spacing: -0.5px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Modern input material styling */
.login-page .input-material-group {
  position: relative;
  margin-bottom: 2rem;
}

.login-page .input-material {
  background: rgba(255, 255, 255, 0.8) !important;
  border: 2px solid var(--primary-border) !important;
  border-radius: 16px !important;
  padding: 1rem 1.25rem !important;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.login-page .input-material:focus {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: var(--bs-primary) !important;
  box-shadow:
    0 0 0 4px rgba(var(--bs-primary-rgb), 0.15),
    0 10px 30px -10px var(--primary-shadow),
    0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px) !important;
}

.login-page .input-material:hover {
  border-color: var(--bs-primary) !important;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
}

.login-page .input-material.is-invalid {
  border-color: #dc3545 !important;
  box-shadow: 
    0 0 0 3px rgba(220, 53, 69, 0.1),
    0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Label styling */
.login-page .label-material {
  position: absolute;
  top: 1rem;
  left: 1.25rem;
  color: #6c757d;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  background: transparent;
  padding: 0 0.5rem;
}

.login-page .input-material:focus + .label-material,
.login-page .input-material:not(:placeholder-shown) + .label-material {
  top: -0.5rem;
  left: 1rem;
  font-size: 0.875rem;
  color: var(--bs-primary);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  padding: 0.25rem 0.75rem;
  box-shadow: 0 2px 4px var(--primary-shadow);
}

/* Error styling */
.login-page .js-validate-error-label {
  color: #dc3545;
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(220, 53, 69, 0.1);
  border-radius: 12px;
  border-left: 4px solid #dc3545;
}

/* Login button */
.login-page .btn-primary {
  background: var(--primary-gradient) !important;
  border: none !important;
  border-radius: 16px !important;
  padding: 1rem 2rem !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow:
    0 10px 25px -5px rgba(var(--bs-primary-rgb), 0.5),
    0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
  position: relative;
  overflow: hidden;
}

.login-page .btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.login-page .btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-darker) 100%) !important;
  box-shadow:
    0 20px 40px -10px rgba(var(--bs-primary-rgb), 0.6),
    0 8px 15px -3px rgba(0, 0, 0, 0.1) !important;
  transform: translateY(-2px) !important;
  color: #ffffff !important;
}

.login-page .btn-primary:hover::before {
  left: 100%;
}

.login-page .btn-primary:active {
  /* No transform on active state */
}

/* Footer links */
.login-page .text-center p {
  color: #6c757d;
  font-size: 0.9rem;
  margin-top: 1.5rem;
}

.login-page .text-center a {
  color: var(--bs-primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
}

.login-page .text-center a:hover {
  color: var(--primary-dark);
  background: var(--primary-hover);
  transform: translateX(2px);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .login-page .info {
    min-height: 200px;
  }
  
  .login-page .card {
    margin: 1rem;
  }
  
  .login-form h1 {
    font-size: 2rem;
  }
}

@media (max-width: 575.98px) {
  .login-page .card {
    border-radius: 16px !important;
  }
  
  .login-page .input-material {
    border-radius: 12px !important;
  }
  
  .login-page .btn-primary {
    border-radius: 12px !important;
    padding: 0.875rem 1.5rem !important;
  }
}

/* ===== BASE TEMPLATE MODERNIZATION ===== */

/* Modern navbar with glass morphism */
.header .navbar {
  background: var(--primary-gradient) !important;
  backdrop-filter: blur(20px);
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header .navbar:hover {
  box-shadow:
    0 12px 40px rgba(var(--bs-primary-rgb), 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.15);
}

/* Enhanced navbar brand */
.navbar-brand {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.navbar-brand img {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Modern menu button */
.menu-btn {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 12px !important;
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-btn:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.menu-btn span {
  background: white !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Enhanced nav links */
.nav-link {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 12px !important;
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0.5rem 1rem !important;
  margin: 0 0.25rem !important;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

.nav-link i {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover i {
  transform: scale(1.1);
}

/* Modern sidebar */
.side-navbar {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px);
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 
    8px 0 32px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(0, 0, 0, 0.05);
}

/* Enhanced sidebar header */
.sidebar-header {
  background: var(--primary-gradient) !important;
  margin: 1rem;
  border-radius: 16px;
  padding: 1.5rem !important;
  box-shadow:
    0 10px 30px var(--primary-shadow),
    0 4px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 2px solid transparent;
}

.sidebar-header:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-darker) 100%);
  box-shadow:
    0 15px 40px rgba(var(--bs-primary-rgb), 0.5),
    0 6px 15px rgba(0, 0, 0, 0.15);
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.3);
}

.sidebar-header:active {
  transform: translateY(0);
  box-shadow:
    0 6px 20px var(--primary-shadow),
    0 3px 8px rgba(0, 0, 0, 0.1);
}

.sidebar-header .ms-auto {
  opacity: 0.7;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-5px);
}

.sidebar-header:hover .ms-auto {
  opacity: 1;
  transform: translateX(0);
}

.sidebar-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="sidebar-pattern" width="30" height="30" patternUnits="userSpaceOnUse"><circle cx="15" cy="15" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23sidebar-pattern)"/></svg>');
  opacity: 0.3;
}

.sidebar-header .avatar {
  border: 3px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
  width: 55px !important;
  height: 55px !important;
  min-width: 55px !important;
  min-height: 55px !important;
}

.sidebar-header .avatar:hover {
  border-color: rgba(255, 255, 255, 0.5) !important;
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.sidebar-header .avatar i {
  font-size: 1.5rem;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.sidebar-header .title {
  position: relative;
  z-index: 1;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-header .title p {
  color: white !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Collapsed sidebar states */
.side-navbar.shrinked .sidebar-header {
  margin: 0.5rem;
  padding: 1rem 0.5rem !important;
  text-align: center;
}

.side-navbar.shrinked .sidebar-header .title {
  display: none !important;
}

.side-navbar.shrinked .sidebar-header .avatar {
  margin: 0 auto;
  display: block;
}

/* Responsive sidebar collapse */
@media (max-width: 1199.98px) {
  .side-navbar {
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .side-navbar.show {
    transform: translateX(0);
  }
  
  .side-navbar .sidebar-header {
    margin: 0.5rem;
    padding: 1rem !important;
  }
  
  .side-navbar .sidebar-header .title {
    display: block !important;
  }
  
  .side-navbar .sidebar-header .ms-auto {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Modern sidebar items */
.sidebar-item {
  margin: 0.25rem 1rem;
}

.sidebar-link {
  background: rgba(255, 255, 255, 0.8) !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  border-radius: 12px !important;
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.05),
    0 1px 3px rgba(0, 0, 0, 0.1);
  color: #495057 !important;
  font-weight: 500;
  padding: 0.75rem 1rem !important;
}

.sidebar-link:hover {
  background: var(--primary-hover) !important;
  border-color: var(--primary-border) !important;
  color: var(--bs-primary) !important;
  box-shadow:
    0 4px 12px var(--primary-shadow),
    0 2px 6px rgba(0, 0, 0, 0.1);
  transform: translateX(6px);
}

.sidebar-link i {
  color: #6c757d;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-link:hover i {
  color: var(--bs-primary);
  transform: scale(1.15);
}

/* Active sidebar item */
.sidebar-item.active .sidebar-link {
  background: var(--primary-gradient) !important;
  color: white !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  box-shadow:
    0 10px 30px rgba(var(--bs-primary-rgb), 0.5),
    0 4px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  border-left: 4px solid rgba(255, 255, 255, 0.6) !important;
}

.sidebar-item.active .sidebar-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="active-pattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23active-pattern)"/></svg>');
  opacity: 0.3;
}

.sidebar-item.active .sidebar-link i {
  color: white !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.sidebar-item.active .sidebar-link:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-darker) 100%) !important;
  box-shadow:
    0 15px 40px rgba(var(--bs-primary-rgb), 0.6),
    0 6px 15px rgba(0, 0, 0, 0.15);
  transform: translateX(6px);
}

/* Modern content area */
.content-inner {
  background: linear-gradient(135deg, var(--primary-lightest) 0%,#ffffff 50%);
  position: relative;
  min-height: 100vh;
}

.content-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="content-pattern" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="0.5" fill="rgba(39,153,137,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23content-pattern)"/></svg>');
  pointer-events: none;
}

/* Enhanced footer */
#footer {
  background: var(--primary-gradient) !important;
  backdrop-filter: blur(20px);
  border-top: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 -8px 32px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

#footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="footer-pattern" width="40" height="40" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23footer-pattern)"/></svg>');
  opacity: 0.3;
}

#footer .container-fluid {
  position: relative;
  z-index: 1;
}

#footer p {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  font-weight: 500;
}

/* Modern toast notifications */
.toast {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px !important;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.15),
    0 8px 16px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.toast.bg-success {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

.toast.bg-danger {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

.toast-header {
  background: transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
  backdrop-filter: blur(10px);
}

.toast-body {
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Enhanced page transitions */
.page {
  background: linear-gradient(135deg, var(--primary-light) 0%, #f8f9fa 50%, #ffffff 100%);
  min-height: 100vh;
  position: relative;
}

/* Responsive improvements */
@media (max-width: 991.98px) {
  .sidebar-header {
    margin: 0.5rem;
    padding: 1rem !important;
  }
  
  .sidebar-item {
    margin: 0.125rem 0.5rem;
  }
  
  .sidebar-link {
    padding: 0.5rem 0.75rem !important;
    font-size: 0.9rem;
  }
}

/* Collapsed sidebar menu items */
.side-navbar.shrinked .sidebar-item {
  margin: 0.125rem 0.5rem;
  text-align: center;
}

.side-navbar.shrinked .sidebar-link {
  padding: 0.75rem 0.5rem !important;
  font-size: 0.8rem;
  text-align: center;
  justify-content: center;
}

.side-navbar.shrinked .sidebar-link span {
  display: none !important;
}

.side-navbar.shrinked .sidebar-link i {
  font-size: 1.2rem;
  margin: 0 !important;
  display: block;
  text-align: center;
}

/* Ensure proper spacing in collapsed state */
.side-navbar.shrinked .list-unstyled {
  padding: 0.5rem 0;
}

@media (max-width: 575.98px) {
  .nav-link {
    padding: 0.375rem 0.75rem !important;
    margin: 0 0.125rem !important;
    font-size: 0.875rem;
  }
  
  .toast {
    border-radius: 12px !important;
    margin: 0.5rem;
  }
}

/* ===== MOBILE SIDEBAR BEHAVIOR ===== */

/* Mobile sidebar behavior (screens smaller than 768px) */
@media (max-width: 767.98px) {
  /* Default state: sidebar is hidden */
  nav.side-navbar {
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: fixed;
    z-index: 1050;
    height: 100vh;
    height: 100dvh; /* Use dynamic viewport height for mobile */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    width: 280px !important;
    min-width: 280px !important;
    max-width: 280px !important;
    margin-left: 0 !important;
    background: var(--primary-gradient);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow:
      0 20px 40px rgba(0, 0, 0, 0.3),
      0 0 0 1px rgba(255, 255, 255, 0.1);
    /* Ensure hardware acceleration */
    -webkit-transform: translateX(-100%);
    -webkit-transform3d: translateX(-100%);
    will-change: transform;
  }
  
  /* When sidebar is shown (has .show class) */
  nav.side-navbar.show {
    transform: translateX(0);
  }
  
  /* Mobile sidebar header */
  nav.side-navbar .sidebar-header {
    padding: 1.5rem 1rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0 !important;
  }
  
  nav.side-navbar .sidebar-header .title {
    display: block !important;
    color: white;
    text-align: center;
  }
  
  nav.side-navbar .sidebar-header .avatar {
    margin: 0 auto 1rem auto !important;
    width: 60px !important;
    height: 60px !important;
  }
  
  /* Mobile sidebar links */
  nav.side-navbar .sidebar-link {
    padding: 1rem 1.5rem !important;
    border-left: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    flex-direction: row !important;
    justify-content: flex-start;
    align-items: center;
  }
  
  nav.side-navbar .sidebar-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
  }
  
  nav.side-navbar .sidebar-link i {
    margin-right: 1rem !important;
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
  }
  
  nav.side-navbar .sidebar-link span {
    display: block !important;
    font-weight: 500;
  }
  
  /* Active mobile sidebar item */
  nav.side-navbar .sidebar-item.active .sidebar-link {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-left: 4px solid rgba(255, 255, 255, 0.5) !important;
  }
  
  /* Adjust content area when sidebar is hidden */
  .content-inner {
    margin-left: 0 !important;
    width: 100% !important;
  }
  
  /* Ensure page content uses full width */
  .page-content {
    margin-left: 0 !important;
  }
  
  /* Add backdrop when sidebar is open */
  .sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh; /* Use dynamic viewport height for mobile */
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    /* Ensure touch events work properly */
    touch-action: none;
  }
  
  .sidebar-backdrop.show {
    opacity: 1;
    visibility: visible;
  }
  
  /* Mobile menu button styling */
  .menu-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Ensure touch target is large enough */
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Prevent text selection */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* Ensure proper touch handling */
    touch-action: manipulation;
  }
  
  .menu-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
  }
  
  .menu-btn.active {
    background: rgba(255, 255, 255, 0.25);
  }
  
  /* Ensure menu button spans are properly sized for touch */
  .menu-btn span {
    min-width: 20px;
    min-height: 2px;
    background: white;
    display: block;
    margin: 2px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
}

/* Keep the current collapsed behavior for tablets (768px - 1199px) */
@media (min-width: 768px) and (max-width: 1199.98px) {
  nav.side-navbar {
    min-width: 90px;
    max-width: 90px;
    margin-left: -90px;
    text-align: center;
  }
  
  nav.side-navbar.shrinked {
    margin-left: 0;
  }
}

/* Additional mobile-specific fixes for Samsung and other Android devices */
@media (max-width: 767.98px) {
  /* Prevent body scroll when sidebar is open */
  body.sidebar-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
  }
  
  /* Ensure proper touch handling on sidebar links */
  nav.side-navbar .sidebar-link {
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
    touch-action: manipulation;
  }
  
  /* Fix for Samsung browser issues */
  nav.side-navbar {
    -webkit-transform: translate3d(-100%, 0, 0);
    transform: translate3d(-100%, 0, 0);
    /* Fallback for devices that don't support transform3d */
    left: -280px;
  }
  
  nav.side-navbar.show {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    /* Fallback for devices that don't support transform3d */
    left: 0;
  }
  
  /* Ensure proper z-index stacking */
  .header {
    z-index: 1060 !important;
  }
  
  nav.side-navbar {
    z-index: 1050 !important;
  }
  
  .sidebar-backdrop {
    z-index: 1040 !important;
  }
}

/* ===== MODERN STEPPER COMPONENT ===== */

/* Modern stepper container */
.stepper-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2rem 0;
  position: relative;
  padding: 0 1rem;
}

/* Progress line connecting steps - COMPLETELY REMOVED */
.stepper-wrapper::before {
  display: none !important;
  content: none !important;
  background: none !important;
  border: none !important;
  height: 0 !important;
  width: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

/* Individual step item */
.stepper-item {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  flex: 1;
  max-width: 200px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 140px;
}

/* Step counter (circle with icon) */
.step-counter {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 4px solid #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 8px 25px rgba(0, 0, 0, 0.12),
    0 4px 10px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.step-counter::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, transparent 50%, rgba(255, 255, 255, 0.1) 100%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.step-counter::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
  opacity: 0.8;
  z-index: 0;
}

.step-counter i {
  font-size: 1.5rem;
  color: #6c757d;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
  position: relative;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Step name */
.step-name {
  font-size: 1rem;
  font-weight: 700;
  color: #495057;
  text-align: center;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  line-height: 1.4;
  max-width: 120px;
  word-wrap: break-word;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(5px);
}

/* Completed step styling */
.stepper-item.completed .step-counter {
  background: linear-gradient(135deg, #279989 0%, #1f4742 50%, #1a3d38 100%);
  border-color: #279989;
  box-shadow: 
    0 12px 35px rgba(39, 153, 137, 0.5),
    0 6px 15px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: scale(1.15);
}

.stepper-item.completed .step-counter::before {
  opacity: 1;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, transparent 50%, rgba(255, 255, 255, 0.2) 100%);
}

.stepper-item.completed .step-counter::after {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
  opacity: 0.6;
}

.stepper-item.completed .step-counter i {
  color: white;
  transform: scale(1.1);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.stepper-item.completed .step-name {
  color: #279989;
  font-weight: 700;
  background: rgba(39, 153, 137, 0.1);
  border: 1px solid rgba(39, 153, 137, 0.2);
  box-shadow: 0 4px 12px rgba(39, 153, 137, 0.15);
}

/* Active step styling */
.stepper-item.active .step-counter {
  background: linear-gradient(135deg, #279989 0%, #1f4742 50%, #1a3d38 100%);
  border-color: #279989;
  box-shadow: 
    0 15px 40px rgba(39, 153, 137, 0.6),
    0 8px 20px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: scale(1.2);
  animation: activePulse 2s infinite;
}

.stepper-item.active .step-counter::before {
  opacity: 1;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, transparent 50%, rgba(255, 255, 255, 0.2) 100%);
}

.stepper-item.active .step-counter::after {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
  opacity: 0.6;
}

.stepper-item.active .step-counter i {
  color: white;
  transform: scale(1.3);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.stepper-item.active .step-name {
  color: #279989;
  font-weight: 700;
  background: rgba(39, 153, 137, 0.1);
  border: 1px solid rgba(39, 153, 137, 0.2);
  box-shadow: 0 4px 12px rgba(39, 153, 137, 0.15);
  transform: scale(1.05);
}

/* Enhanced pulsing animation for active step */
@keyframes activePulse {
  0% {
    box-shadow: 
      0 15px 40px rgba(39, 153, 137, 0.6),
      0 8px 20px rgba(0, 0, 0, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: scale(1.2);
  }
  50% {
    box-shadow: 
      0 20px 50px rgba(39, 153, 137, 0.8),
      0 12px 30px rgba(0, 0, 0, 0.25),
      0 0 0 0 rgba(39, 153, 137, 0.5),
      inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transform: scale(1.25);
  }
  100% {
    box-shadow: 
      0 15px 40px rgba(39, 153, 137, 0.6),
      0 8px 20px rgba(0, 0, 0, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: scale(1.2);
  }
}

/* Progress line for completed steps - COMPLETELY REMOVED */
.stepper-wrapper::after {
  display: none !important;
  content: none !important;
  background: none !important;
  border: none !important;
  height: 0 !important;
  width: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

/* Progress calculation removed since lines are hidden */

/* Enhanced hover effects */
.stepper-item:hover .step-counter {
  transform: scale(1.1);
  box-shadow: 
    0 12px 30px rgba(0, 0, 0, 0.18),
    0 6px 15px rgba(0, 0, 0, 0.12);
}

.stepper-item:hover .step-name {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.stepper-item.completed:hover .step-counter {
  transform: scale(1.2);
  box-shadow: 
    0 15px 40px rgba(39, 153, 137, 0.6),
    0 8px 20px rgba(0, 0, 0, 0.18);
}

.stepper-item.completed:hover .step-name {
  background: rgba(39, 153, 137, 0.15);
  border-color: rgba(39, 153, 137, 0.3);
  box-shadow: 0 6px 18px rgba(39, 153, 137, 0.2);
}

.stepper-item.active:hover .step-counter {
  transform: scale(1.25);
  box-shadow: 
    0 18px 45px rgba(39, 153, 137, 0.7),
    0 10px 25px rgba(0, 0, 0, 0.25);
}

.stepper-item.active:hover .step-name {
  background: rgba(39, 153, 137, 0.15);
  border-color: rgba(39, 153, 137, 0.3);
  box-shadow: 0 6px 18px rgba(39, 153, 137, 0.2);
}

/* Responsive design for stepper */
@media (max-width: 768px) {
  .stepper-wrapper {
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    margin: 1.5rem 0;
  }
  
  .stepper-wrapper::before,
  .stepper-wrapper::after {
    display: none !important;
    content: none !important;
    background: none !important;
    border: none !important;
    height: 0 !important;
    width: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }
  
  /* Remove mobile progress lines too */
  .stepper-item::before {
    display: none !important;
    content: none !important;
    background: none !important;
    border: none !important;
    height: 0 !important;
    width: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }
  
  .stepper-item {
    flex-direction: row;
    align-items: center;
    margin-bottom: 2rem;
    max-width: 100%;
    width: 100%;
  }
  
  .step-counter {
    width: 65px;
    height: 65px;
    margin-bottom: 0;
    margin-right: 1.5rem;
    flex-shrink: 0;
  }
  
  .step-counter i {
    font-size: 1.4rem;
  }
  
  .step-name {
    text-align: left;
    font-size: 1.1rem;
    max-width: 200px;
    padding: 0.75rem 1rem;
  }
  
  /* Mobile progress indicator - COMPLETELY REMOVED */
  .stepper-item::before {
    display: none !important;
    content: none !important;
    background: none !important;
    border: none !important;
    height: 0 !important;
    width: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }
}

@media (max-width: 480px) {
  .step-counter {
    width: 55px;
    height: 55px;
  }
  
  .step-counter i {
    font-size: 1.3rem;
  }
  
  .step-name {
    font-size: 1rem;
    max-width: 150px;
    padding: 0.5rem 0.75rem;
  }
  
  .stepper-item::before {
    display: none !important;
    content: none !important;
    background: none !important;
    border: none !important;
    height: 0 !important;
    width: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }
}

/* Enhanced stepper card styling */
.stepper-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 20px;
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.1),
    0 4px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  overflow: hidden;
  position: relative;
}

.stepper-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #279989 0%, #1f4742 100%);
}

.stepper-card .card-body {
  padding: 2rem;
}

.stepper-card h1 {
  color: #1f4742;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
  font-size: 1.75rem;
  letter-spacing: -0.5px;
}

/* Status indicator badges */
.status-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.status-badge.completed {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.status-badge.active {
  background: linear-gradient(135deg, #279989 0%, #1f4742 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(39, 153, 137, 0.3);
  animation: pulse 2s infinite;
}

.status-badge.pending {
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

/* Step tooltips for additional info */
.step-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  pointer-events: none;
}

.step-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.9);
}

.stepper-item:hover .step-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-5px);
}

/* Loading animation for steps in progress */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.stepper-item.processing .step-counter i {
  animation: spin 2s linear infinite;
}

/* Success checkmark animation */
@keyframes checkmark {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.stepper-item.completed .step-counter i {
  animation: checkmark 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== MODERN 2025 PASSWORD VALIDATION ===== */

/* Password requirements container */
.password-requirements {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 16px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  margin-bottom: 1rem;
}

.requirements-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.requirement-item {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 4px 0;
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.requirement-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-right: 12px;
}

.requirement-text {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.875rem;
  color: #6b7280;
}

/* Modern input styling for password fields */
.input-material {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 8px;
}

.input-material:focus {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  border-color: #3b82f6;
}

.input-material.is-valid {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.input-material.is-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Modern error message styling */
.password-error-message {
  font-size: 0.875rem;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 8px;
}

/* Modern button styling for password forms */
.register-form .btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.2);
}

.register-form .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 15px -3px rgba(59, 130, 246, 0.3);
}

.register-form .btn-primary:active {
  transform: translateY(0);
}

/* Password validation animations */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Enhanced password field focus states */
.input-material:focus {
  outline: none;
  border-color: #279989;
  box-shadow: 0 0 0 3px rgba(39, 153, 137, 0.1);
}

/* Success state for password fields */
.input-material.is-valid {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Error state for password fields */
.input-material.is-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* ===== MODERN 2025 PASSWORD TOGGLE ===== */

/* Password toggle container */
.password-toggle-container {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0;
}

/* Modern password toggle button */
.password-toggle-btn {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
  border: 2px solid rgba(39, 153, 137, 0.2);
  border-radius: 50px;
  padding: 12px 24px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #495057;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(10px);
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  min-width: 180px;
  justify-content: center;
}

.password-toggle-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(39, 153, 137, 0.1), transparent);
  transition: left 0.6s ease;
}

.password-toggle-btn:hover {
  background: linear-gradient(135deg, rgba(39, 153, 137, 0.1) 0%, rgba(39, 153, 137, 0.05) 100%);
  border-color: rgba(39, 153, 137, 0.4);
  color: #279989;
  transform: translateY(-2px);
  box-shadow: 
    0 8px 25px rgba(39, 153, 137, 0.2),
    0 4px 12px rgba(0, 0, 0, 0.08);
}

.password-toggle-btn:hover::before {
  left: 100%;
}

.password-toggle-btn:active {
  transform: translateY(0);
  box-shadow: 
    0 4px 15px rgba(39, 153, 137, 0.15),
    0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Active state when password is visible */
.password-toggle-btn.active {
  background: linear-gradient(135deg, rgba(39, 153, 137, 0.15) 0%, rgba(39, 153, 137, 0.08) 100%);
  border-color: rgba(39, 153, 137, 0.5);
  color: #279989;
  box-shadow: 
    0 6px 20px rgba(39, 153, 137, 0.25),
    0 3px 10px rgba(0, 0, 0, 0.06);
}

.password-toggle-btn.active:hover {
  background: linear-gradient(135deg, rgba(39, 153, 137, 0.2) 0%, rgba(39, 153, 137, 0.1) 100%);
  border-color: rgba(39, 153, 137, 0.6);
  box-shadow: 
    0 10px 30px rgba(39, 153, 137, 0.3),
    0 5px 15px rgba(0, 0, 0, 0.08);
}

/* Password icon styling */
.password-icon {
  font-size: 1rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.password-toggle-btn:hover .password-icon {
  transform: scale(1.1);
  filter: drop-shadow(0 2px 4px rgba(39, 153, 137, 0.3));
}

.password-toggle-btn.active .password-icon {
  transform: scale(1.1);
  filter: drop-shadow(0 2px 4px rgba(39, 153, 137, 0.4));
}

/* Toggle text styling */
.toggle-text {
  font-weight: 500;
  letter-spacing: 0.025em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.password-toggle-btn:hover .toggle-text {
  transform: translateX(2px);
}

/* Focus state for accessibility */
.password-toggle-btn:focus {
  outline: none;
  box-shadow: 
    0 0 0 3px rgba(39, 153, 137, 0.25),
    0 4px 15px rgba(0, 0, 0, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Responsive design */
@media (max-width: 480px) {
  .password-toggle-btn {
    padding: 10px 20px;
    font-size: 0.85rem;
    min-width: 160px;
  }
  
  .password-icon {
    font-size: 0.9rem;
  }
}

/* Animation for password field transitions */
.input-material[type="password"],
.input-material[type="text"] {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Subtle pulse animation for active state */
@keyframes togglePulse {
  0% {
    box-shadow: 
      0 6px 20px rgba(39, 153, 137, 0.25),
      0 3px 10px rgba(0, 0, 0, 0.06);
  }
  50% {
    box-shadow: 
      0 8px 25px rgba(39, 153, 137, 0.35),
      0 4px 12px rgba(0, 0, 0, 0.08);
  }
  100% {
    box-shadow: 
      0 6px 20px rgba(39, 153, 137, 0.25),
      0 3px 10px rgba(0, 0, 0, 0.06);
  }
}

.password-toggle-btn.active {
  animation: togglePulse 2s ease-in-out infinite;
}

/* ===== MODERN 2025 INLINE PASSWORD TOGGLE ===== */

/* Password field with inline toggle - preserve original styling */
.password-field-with-toggle .input-material[type="password"] {
  padding-right: 48px !important;
}

/* Inline password toggle button - positioned absolutely to not affect layout */
.password-toggle-inline {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  padding: 8px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  color: #279989;
  width: 32px;
  height: 32px;
}

.password-toggle-inline:hover {
  color: #1f4742;
  background: rgba(39, 153, 137, 0.1);
}

.password-toggle-inline:active {
  transform: translateY(-50%) scale(0.95);
}

.password-toggle-inline.active {
  color: #1f4742;
  background: rgba(39, 153, 137, 0.1);
}

.password-icon-inline {
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.password-toggle-inline:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(39, 153, 137, 0.25);
}

/* Inline password toggle button */
.password-toggle-inline {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  padding: 8px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  color: #279989;
  backdrop-filter: blur(5px);
}

.password-toggle-inline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(5px);
}

.password-toggle-inline:hover {
  color: #1f4742;
  transform: translateY(-50%) scale(1.1);
}

.password-toggle-inline:hover::before {
  opacity: 1;
}

.password-toggle-inline:active {
  transform: translateY(-50%) scale(0.95);
}

/* Active state when password is visible */
.password-toggle-inline.active {
  color: #1f4742;
}

.password-toggle-inline.active::before {
  background: rgba(39, 153, 137, 0.1);
  opacity: 1;
}

.password-toggle-inline.active:hover {
  color: #15332e;
}

.password-toggle-inline.active:hover::before {
  background: rgba(39, 153, 137, 0.2);
}

/* Inline password icon styling */
.password-icon-inline {
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.password-toggle-inline:hover .password-icon-inline {
  transform: scale(1.1);
  filter: drop-shadow(0 2px 4px rgba(39, 153, 137, 0.3));
}

.password-toggle-inline.active .password-icon-inline {
  filter: drop-shadow(0 2px 4px rgba(39, 153, 137, 0.4));
}



/* Focus state for accessibility */
.password-toggle-inline:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(39, 153, 137, 0.25);
}

.password-toggle-inline:focus::before {
  opacity: 1;
  background: rgba(39, 153, 137, 0.1);
}

/* Responsive design for inline toggle */
@media (max-width: 480px) {
  .password-toggle-inline {
    padding: 6px;
    right: 8px;
  }
  
  .password-icon-inline {
    font-size: 0.9rem;
  }
  
  .password-field-container .input-material {
    padding-right: 40px !important;
  }
}

/* Enhanced hover effects for login form */
.login-form .password-field-container:hover .password-toggle-inline {
  color: #1f4742;
}

.login-form .password-field-container:hover .password-toggle-inline::before {
  opacity: 0.5;
}

/* Smooth transitions for password field */
.password-field-container .input-material {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Subtle animation for active inline toggle */
@keyframes inlineTogglePulse {
  0% {
    transform: translateY(-50%) scale(1);
  }
  50% {
    transform: translateY(-50%) scale(1.05);
  }
  100% {
    transform: translateY(-50%) scale(1);
  }
}

.password-toggle-inline.active {
  animation: inlineTogglePulse 2s ease-in-out infinite;
}

/* ===== MODERN 2025 ORDER STATUS TRACKER ===== */

/* Main tracker container */
.order-status-tracker {
  margin: 3rem 0;
}

.tracker-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  position: relative;
}

/* Individual tracker step */
.tracker-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.08),
    0 4px 16px rgba(0, 0, 0, 0.04);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.tracker-step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #e9ecef 0%, #dee2e6 100%);
  opacity: 0.3;
}

/* Step indicator with icon and progress ring */
.step-indicator {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 3px solid #dee2e6;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 2;
}

.step-icon i {
  font-size: 1.5rem;
  color: #6c757d;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Progress ring animation */
.step-progress-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top: 3px solid #e9ecef;
  animation: spin 2s linear infinite;
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* Step content */
.step-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.step-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #495057;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-description {
  font-size: 0.9rem;
  color: #6c757d;
  margin: 0;
  line-height: 1.4;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Completed step styling */
.tracker-step.completed {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(39, 153, 137, 0.2);
  box-shadow: 
    0 12px 40px rgba(39, 153, 137, 0.15),
    0 6px 20px rgba(0, 0, 0, 0.06);
  transform: translateY(-4px);
}

.tracker-step.completed::before {
  background: linear-gradient(90deg, #279989 0%, #1f4742 100%);
  opacity: 1;
}

.tracker-step.completed .step-icon {
  background: linear-gradient(135deg, #279989 0%, #1f4742 100%);
  border-color: #279989;
  box-shadow: 
    0 8px 25px rgba(39, 153, 137, 0.4),
    0 4px 12px rgba(0, 0, 0, 0.1);
  transform: scale(1.1);
}

.tracker-step.completed .step-icon i {
  color: white;
  transform: scale(1.1);
}

.tracker-step.completed .step-title {
  color: #279989;
}

.tracker-step.completed .step-description {
  color: #495057;
}

/* Active step styling */
.tracker-step.active {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(39, 153, 137, 0.3);
  box-shadow: 
    0 16px 48px rgba(39, 153, 137, 0.2),
    0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-6px);
  animation: activeGlow 2s ease-in-out infinite alternate;
}

.tracker-step.active::before {
  background: linear-gradient(90deg, #279989 0%, #1f4742 100%);
  opacity: 1;
}

.tracker-step.active .step-icon {
  background: linear-gradient(135deg, #279989 0%, #1f4742 100%);
  border-color: #279989;
  box-shadow: 
    0 12px 35px rgba(39, 153, 137, 0.5),
    0 6px 18px rgba(0, 0, 0, 0.15);
  transform: scale(1.15);
}

.tracker-step.active .step-icon i {
  color: white;
  transform: scale(1.2);
}

.tracker-step.active .step-progress-ring {
  opacity: 1;
  border-top-color: rgba(255, 255, 255, 0.6);
}

.tracker-step.active .step-title {
  color: #279989;
  transform: scale(1.05);
}

.tracker-step.active .step-description {
  color: #495057;
}

/* Hover effects */
.tracker-step:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 12px 36px rgba(0, 0, 0, 0.12),
    0 6px 18px rgba(0, 0, 0, 0.06);
}

.tracker-step.completed:hover {
  transform: translateY(-6px);
  box-shadow: 
    0 16px 48px rgba(39, 153, 137, 0.2),
    0 8px 24px rgba(0, 0, 0, 0.08);
}

.tracker-step.active:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 20px 56px rgba(39, 153, 137, 0.25),
    0 10px 28px rgba(0, 0, 0, 0.1);
}

/* Animations */
@keyframes activeGlow {
  0% {
    box-shadow: 
      0 16px 48px rgba(39, 153, 137, 0.2),
      0 8px 24px rgba(0, 0, 0, 0.08);
  }
  100% {
    box-shadow: 
      0 20px 56px rgba(39, 153, 137, 0.3),
      0 10px 28px rgba(0, 0, 0, 0.1),
      0 0 0 0 rgba(39, 153, 137, 0.4);
  }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive design */
@media (max-width: 768px) {
  .tracker-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .tracker-step {
    padding: 1.5rem 1rem;
    flex-direction: row;
    text-align: left;
    align-items: center;
  }
  
  .step-indicator {
    width: 60px;
    height: 60px;
    margin-bottom: 0;
    margin-right: 1.5rem;
    flex-shrink: 0;
  }
  
  .step-icon {
    width: 50px;
    height: 50px;
  }
  
  .step-icon i {
    font-size: 1.25rem;
  }
  
  .step-progress-ring {
    width: 60px;
    height: 60px;
  }
  
  .step-content {
    flex: 1;
  }
  
  .step-title {
    font-size: 1rem;
  }
  
  .step-description {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .tracker-step {
    padding: 1.25rem 1rem;
  }
  
  .step-indicator {
    width: 50px;
    height: 50px;
    margin-right: 1rem;
  }
  
  .step-icon {
    width: 40px;
    height: 40px;
  }
  
  .step-icon i {
    font-size: 1rem;
  }
  
  .step-progress-ring {
    width: 50px;
    height: 50px;
  }
  
  .step-title {
    font-size: 0.9rem;
  }
  
  .step-description {
    font-size: 0.8rem;
  }
}

/* Success celebration for completed orders */
.tracker-step.completed .step-icon::after {
  content: '✓';
  position: absolute;
  top: -5px;
  right: -5px;
  width: 24px;
  height: 24px;
  background: #28a745;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
  animation: checkmarkPop 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes checkmarkPop {
  0% {
    transform: scale(0) rotate(-180deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.2) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

/* ===== MODERN LOGIN PAGE LINKS (2025 COMPLIANT) ===== */

/* Modern Link Base Styles */
.modern-link {
  display: inline-flex;
  align-items: center;
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border-radius: 16px;
  background: linear-gradient(135deg, #4a9c8f 0%, #2d5a54 100%);
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 8px 20px -5px rgba(39, 153, 137, 0.3),
    0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.modern-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.5s;
}

.modern-link:hover {
  color: white;
  background: linear-gradient(135deg, #3d8a7e 0%, #264d47 100%);
  transform: translateY(-2px);
  box-shadow: 
    0 12px 30px -5px rgba(39, 153, 137, 0.4),
    0 6px 12px -3px rgba(0, 0, 0, 0.15);
}

.modern-link:hover::before {
  left: 100%;
}

.modern-link:focus {
  outline: none;
  box-shadow: 
    0 0 0 3px rgba(39, 153, 137, 0.25),
    0 12px 30px -5px rgba(39, 153, 137, 0.4);
}

.modern-link:active {
  transform: translateY(0);
  transition: transform 0.1s;
}

/* Forgot Password Link Specific Styling */
.forgot-password-container {
  text-align: center;
}

.forgot-password-link {
  width: 100%;
  justify-content: center;
  background: linear-gradient(135deg, #4a9c8f 0%, #2d5a54 100%);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.forgot-password-link:hover {
  background: linear-gradient(135deg, #3d8a7e 0%, #264d47 100%);
}

/* Login Button Centering */
.login-form .btn-primary {
  display: block;
  width: 100%;
  margin: 0 auto;
}

/* Login Footer Styling */
.login-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(39, 153, 137, 0.1);
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-link {
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  background: linear-gradient(135deg, #5baa9d 0%, #3a6b64 100%);
  border: none;
  box-shadow: 
    0 4px 12px -3px rgba(39, 153, 137, 0.25),
    0 2px 6px -1px rgba(0, 0, 0, 0.1);
}

.footer-link:hover {
  background: linear-gradient(135deg, #4a9c8f 0%, #2d5a54 100%);
  box-shadow: 
    0 6px 20px -3px rgba(39, 153, 137, 0.35),
    0 4px 10px -1px rgba(0, 0, 0, 0.15);
}

.link-separator {
  color: #6c757d;
  font-weight: 300;
  opacity: 0.6;
}

/* Icon Animations */
.modern-link i {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-link:hover i:first-child {
  transform: scale(1.1);
}

.modern-link:hover i:last-child {
  transform: translateX(3px);
}

/* External Link Indicators */
.modern-link[target="_blank"] i.fa-external-link-alt {
  font-size: 0.8em;
  opacity: 0.8;
}

.modern-link[target="_blank"]:hover i.fa-external-link-alt {
  opacity: 1;
  transform: translateX(2px) translateY(-2px);
}

/* Loading State for Links */
.modern-link.loading {
  pointer-events: none;
  opacity: 0.7;
}

.modern-link.loading i {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 575.98px) {
  .footer-links {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .link-separator {
    display: none;
  }
  
  .modern-link {
    width: 100%;
    justify-content: center;
    padding: 0.875rem 1rem;
  }
  
  .footer-link {
    width: 100%;
    justify-content: center;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .modern-link {
    border: 2px solid white;
    background: linear-gradient(135deg, #4a9c8f 0%, #2d5a54 100%);
  }
  
  .modern-link:hover {
    background: linear-gradient(135deg, #3d8a7e 0%, #264d47 100%);
    border: 2px solid white;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .modern-link,
  .modern-link::before,
  .modern-link i {
    transition: none;
  }
  
  .modern-link:hover {
    transform: none;
  }
  
  .modern-link:hover i:last-child {
    transform: none;
  }
}

/* Dark Mode Support (if needed in future) */
@media (prefers-color-scheme: dark) {
  .modern-link {
    background: linear-gradient(135deg, #4a9c8f 0%, #2d5a54 100%);
    color: white;
  }
  
  .modern-link:hover {
    background: linear-gradient(135deg, #3d8a7e 0%, #264d47 100%);
    color: white;
  }
}

/* ===== MODERN LOGIN HEADER ===== */

.login-header {
  text-align: center;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(39, 153, 137, 0.1);
}

.login-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #279989 0%, #1f4742 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 15px 35px -5px rgba(39, 153, 137, 0.4),
    0 8px 15px -3px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.login-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

.login-icon i {
  font-size: 2.5rem;
  color: white;
  z-index: 1;
  position: relative;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.login-title {
  color: #1f4742;
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.login-subtitle {
  color: #6c757d;
  font-size: 1.1rem;
  font-weight: 400;
  margin: 0;
  opacity: 0.8;
}

/* Responsive adjustments for login header */
@media (max-width: 575.98px) {
  .login-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
  }
  
  .login-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 1rem;
  }
  
  .login-icon i {
    font-size: 2rem;
  }
  
  .login-title {
    font-size: 1.875rem;
  }
  
  .login-subtitle {
    font-size: 1rem;
  }
}

/* ===== OVERVIEW TABLES - COMPLETELY NEW STYLES ===== */

/* Container for overview tables */
.overview-table-container {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(39, 153, 137, 0.1);
  overflow: hidden;
  border: 1px solid rgba(39, 153, 137, 0.15);
  margin-bottom: 1.5rem;
}

/* Base table styles */
.overview-table {
  margin-bottom: 0;
  background: transparent;
  border: none;
  width: 100%;
}

/* Header styling */
.overview-table thead {
  background: linear-gradient(135deg, #279989 0%, #1f4742 100%);
}

.overview-table thead th {
  background: transparent !important;
  border: none !important;
  color: white !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  font-size: 0.75rem !important;
  padding: 0.75rem 1rem !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Body styling */
.overview-table tbody {
  background: transparent;
}

.overview-table tbody tr {
  border: none;
  transition: background-color 0.2s ease;
}

.overview-table tbody tr:nth-child(even) {
  background: rgba(39, 153, 137, 0.03);
}

.overview-table tbody tr:nth-child(odd) {
  background: rgba(255, 255, 255, 0.9);
}

/* Cell styling */
.overview-table tbody td {
  padding: 0.75rem 1rem !important;
  border: none !important;
  vertical-align: middle !important;
  font-size: 0.875rem !important;
  color: #495057 !important;
}

/* Clickable row styles */
.overview-table tbody tr.overview-clickable {
  cursor: pointer;
}

.overview-table tbody tr.overview-clickable:hover {
  background: rgba(39, 153, 137, 0.12) !important;
  box-shadow: inset 0 0 0 1px rgba(39, 153, 137, 0.2);
}

.overview-table tbody tr.overview-clickable:hover td {
  color: #1f4742 !important;
  font-weight: 500;
}

/* Non-clickable row styles */
.overview-table tbody tr.overview-non-clickable {
  background: rgba(108, 117, 125, 0.05) !important;
  opacity: 0.7;
  cursor: not-allowed;
}

.overview-table tbody tr.overview-non-clickable:hover {
  background: rgba(108, 117, 125, 0.08) !important;
}

/* Badge styling */
.overview-table .badge {
  font-size: 0.7rem !important;
  font-weight: 600 !important;
  padding: 0.4rem 0.6rem !important;
  border-radius: 6px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.025em !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Status badge colors */
.overview-table .badge.bg-primary {
  background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%) !important;
}

.overview-table .badge.bg-success {
  background: linear-gradient(135deg, #198754 0%, #157347 100%) !important;
}

.overview-table .badge.bg-warning {
  background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%) !important;
  color: #000 !important;
}

.overview-table .badge.bg-danger {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
}

.overview-table .badge.bg-info {
  background: linear-gradient(135deg, #0dcaf0 0%, #0aa2c0 100%) !important;
}

.overview-table .badge.bg-secondary {
  background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%) !important;
}

.overview-table .badge.bg-dark {
  background: linear-gradient(135deg, #212529 0%, #1a1d20 100%) !important;
}

.overview-table .badge.bg-light {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
  color: #495057 !important;
}

/* Icon styling */
.overview-table .fas.fa-check {
  color: #279989 !important;
  font-size: 0.9rem !important;
  text-shadow: 0 1px 2px rgba(39, 153, 137, 0.2);
}

/* Form select styling for overview pages */
.form-select {
  border-radius: 8px !important;
  border: 2px solid #e9ecef !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
  font-size: 0.875rem !important;
  padding: 0.5rem 0.75rem !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

.form-select:focus {
  border-color: #279989 !important;
  box-shadow: 0 0 0 3px rgba(39, 153, 137, 0.1) !important;
  background: #ffffff !important;
}

.form-select:hover {
  border-color: rgba(39, 153, 137, 0.3) !important;
  box-shadow: 0 2px 6px rgba(39, 153, 137, 0.1) !important;
}

/* Form label styling */
.form-label {
  font-weight: 600 !important;
  color: #495057 !important;
  font-size: 0.875rem !important;
  margin-bottom: 0.5rem !important;
  margin-right: 0.75rem !important;
}

/* Responsive design */
@media (max-width: 768px) {
  .overview-table-container {
    border-radius: 8px;
    margin-bottom: 1rem;
  }
  
  .overview-table thead th {
    padding: 0.6rem 0.75rem !important;
    font-size: 0.7rem !important;
  }
  
  .overview-table tbody td {
    padding: 0.6rem 0.75rem !important;
    font-size: 0.8rem !important;
  }
  
  .overview-table .badge {
    font-size: 0.65rem !important;
    padding: 0.3rem 0.5rem !important;
  }
  
  .form-select {
    font-size: 0.8rem !important;
    padding: 0.4rem 0.6rem !important;
  }
  
  .form-label {
    font-size: 0.8rem !important;
    margin-right: 0.5rem !important;
  }
}

/* Radio Card List - Modern radio button design for selection lists */
.radio-card-list {
  display: grid;
  gap: 0.75rem;
}

.radio-card-item {
  position: relative;
  border: 2px solid #e0e0e0;
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.radio-card-item:hover {
  border-color: #0d6efd;
  background: #f8f9fa;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(13, 110, 253, 0.15);
}

.radio-card-item input[type="radio"] {
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
  flex-shrink: 0;
  accent-color: var(--bs-primary);
}

.radio-card-item.selected {
  border-color: var(--bs-primary);
  background: #f0f7ff;
  box-shadow: 0 2px 8px rgba(13, 110, 253, 0.2);
}

.radio-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.radio-card-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: #212529;
  line-height: 1.4;
}

.radio-card-meta {
  font-size: 0.85rem;
  color: #6c757d;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.radio-card-meta i {
  font-size: 0.75rem;
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .radio-card-item {
    padding: 0.875rem 1rem;
  }

  .radio-card-title {
    font-size: 0.9rem;
  }

  .radio-card-meta {
    font-size: 0.8rem;
  }
}

/* Modern Info Card - Replace alert-info with better design */
.info-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #f0f7ff 0%, #e3f2fd 100%);
  border-left: 4px solid #0d6efd;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.info-card-icon {
  font-size: 1.5rem;
  color: #0d6efd;
  flex-shrink: 0;
}

.info-card-content {
  flex: 1;
  color: #004085;
  font-size: 0.9rem;
  line-height: 1.5;
}

.info-card.warning {
  background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
  border-left-color: #ffc107;
}

.info-card.warning .info-card-icon {
  color: #ffc107;
}

.info-card.warning .info-card-content {
  color: #856404;
}

/* ==========================================================================
   RMA Confirmation Modal Styles
   ========================================================================== */

/* Modal container styling - match main card design */
#rmaConfirmationModal .modal-content,
#orderSelectionModal .modal-content {
  border: none;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(39, 153, 137, 0.15);
  background: white;
}

/* Modal header with gradient - matches card-header design */
#rmaConfirmationModal .modal-header,
#orderSelectionModal .modal-header {
  background: var(--primary-gradient) !important;
  border: none;
  padding: 2rem;
  position: relative;
}

#rmaConfirmationModal .modal-header::after,
#orderSelectionModal .modal-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
}

#rmaConfirmationModal .modal-header .icon-circle,
#orderSelectionModal .modal-header .icon-circle {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  padding: 1rem;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

#rmaConfirmationModal .modal-header .icon-circle i,
#orderSelectionModal .modal-header .icon-circle i {
  color: #ff6b35;
  font-size: 1.5rem;
}

/* Modal body - match card-body design */
#rmaConfirmationModal .modal-body,
#orderSelectionModal .modal-body {
  padding: 2rem;
  background: white;
}

/* Warning alert box - using primary colors */
#rmaConfirmationModal .warning-alert,
#orderSelectionModal .warning-alert {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.08) 0%, rgba(255, 107, 53, 0.03) 100%);
  border: none;
  border-radius: 12px;
  border-left: 4px solid #ff6b35;
  padding: 1rem;
}

#rmaConfirmationModal .warning-alert i,
#orderSelectionModal .warning-alert i {
  color: #ff6b35;
  font-size: 1.25rem;
  margin-top: 2px;
}

#rmaConfirmationModal .warning-alert p,
#orderSelectionModal .warning-alert p {
  color: var(--primary-dark);
}

/* Service charge card - using primary gradient like other cards */
#rmaConfirmationModal .charge-card,
#orderSelectionModal .charge-card {
  background: linear-gradient(135deg, var(--primary-light) 0%, rgba(39, 153, 137, 0.08) 100%);
  border: 1px solid var(--primary-border);
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(39, 153, 137, 0.1);
  transition: all 0.3s ease;
}

#rmaConfirmationModal .charge-card:hover,
#orderSelectionModal .charge-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(39, 153, 137, 0.2);
}

#rmaConfirmationModal .charge-card .card-body,
#orderSelectionModal .charge-card .card-body {
  padding: 1.5rem;
}

#rmaConfirmationModal .charge-card .charge-label,
#orderSelectionModal .charge-card .charge-label {
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

#rmaConfirmationModal .charge-card .charge-label i,
#orderSelectionModal .charge-card .charge-label i {
  color: var(--bs-primary);
}

#rmaConfirmationModal .charge-card .charge-amount,
#orderSelectionModal .charge-card .charge-amount {
  color: var(--primary-dark);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0;
  text-shadow: 0 2px 4px rgba(39, 153, 137, 0.1);
}

#rmaConfirmationModal .charge-card .icon-badge,
#orderSelectionModal .charge-card .icon-badge {
  background: var(--primary-gradient);
  border-radius: 50%;
  padding: 1rem;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px var(--primary-shadow);
}

#rmaConfirmationModal .charge-card .icon-badge i,
#orderSelectionModal .charge-card .icon-badge i {
  color: white;
  font-size: 1.75rem;
}

#rmaConfirmationModal .charge-card .card-divider,
#orderSelectionModal .charge-card .card-divider {
  border-top: 2px solid var(--primary-border);
  margin-top: 1rem;
  padding-top: 1rem;
}

#rmaConfirmationModal .charge-card .included-text,
#orderSelectionModal .charge-card .included-text {
  color: var(--primary-dark);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0;
}

#rmaConfirmationModal .charge-card .included-text i,
#orderSelectionModal .charge-card .included-text i {
  color: var(--bs-primary);
}

/* Info box - using primary accent */
#rmaConfirmationModal .info-box,
#orderSelectionModal .info-box {
  background: linear-gradient(135deg, var(--primary-light) 0%, rgba(39, 153, 137, 0.05) 100%);
  border: 1px solid var(--primary-border);
  border-radius: 12px;
  padding: 1rem;
}

#rmaConfirmationModal .info-box i,
#orderSelectionModal .info-box i {
  color: var(--bs-primary);
}

#rmaConfirmationModal .info-box p,
#orderSelectionModal .info-box p {
  color: var(--primary-dark);
  font-size: 0.875rem;
  margin-bottom: 0;
}

/* Modal footer */
#rmaConfirmationModal .modal-footer,
#orderSelectionModal .modal-footer {
  border: none;
  padding: 1.5rem 2rem;
  padding-top: 0;
  background: white;
}

/* Cancel button - subtle with primary accent */
#rmaConfirmationModal .btn-cancel,
#orderSelectionModal .btn-cancel {
  border-radius: 10px;
  font-weight: 600;
  border: 2px solid var(--primary-border);
  padding: 0.65rem 1.75rem;
  transition: all 0.3s ease;
  color: var(--primary-dark);
}

#rmaConfirmationModal .btn-cancel:hover,
#orderSelectionModal .btn-cancel:hover {
  background: var(--primary-light);
  border-color: var(--bs-primary);
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--primary-shadow);
}

/* Confirm button - matches primary gradient */
#rmaConfirmationModal .btn-confirm,
#orderSelectionModal .btn-confirm {
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  padding: 0.65rem 1.75rem;
  box-shadow: 0 4px 15px var(--primary-shadow);
  transition: all 0.3s ease;
}

#rmaConfirmationModal .btn-confirm:hover,
#orderSelectionModal .btn-confirm:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--primary-shadow);
}

#rmaConfirmationModal .btn-confirm:active,
#orderSelectionModal .btn-confirm:active {
  transform: translateY(0);
}

/* RMA Notice Box - Info notice before submit button */
.rma-info-notice {
  background-color: #e7f3ff;
  border-left: 4px solid var(--bs-primary);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.rma-info-notice .notice-icon {
  font-size: 1.5rem;
  color: var(--bs-primary);
  flex-shrink: 0;
}

.rma-info-notice .notice-title {
  color: var(--bs-primary);
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.rma-info-notice .notice-text {
  color: #495057;
  margin-bottom: 0;
  line-height: 1.6;
  font-size: 0.95rem;
}
