﻿/* ========================================
   Modern Project Management Theme (Updated)
   Custom CSS for Bootstrap MVC Application
   ======================================== */

/* Global Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8fafc; /* Lighter background for cleaner look */
    color: #1e293b;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    margin-bottom: 60px;
}

/* Navbar Styling - Updated to Light/White */
.navbar {
    background-color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.75rem;
    color: #000 !important;
    letter-spacing: -0.5px;
    margin-left: 1rem;
    display: flex;
    align-items: center;
}

    .navbar-brand::after {
        content: "PspIq™ Inc.";
        font-weight: 800;
    }

    .navbar-brand img {
        max-height: 55px;
        padding-right: 20px;
    }

.navbar .nav-link {
    color: #475569 !important;
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.5rem 1rem !important;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    margin: 0 0.125rem;
}

    .navbar .nav-link:hover {
        color: #1663c5 !important;
        background-color: #f1f5f9;
        transform: translateY(-1px);
    }

    .navbar .nav-link i {
        margin-right: 0.5rem;
        font-size: 0.875rem;
    }

/* Dropdown Menu Styling */
.navbar .dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    padding: 0.5rem;
}

.navbar .dropdown-item {
    color: #475569;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

    .navbar .dropdown-item:hover {
        color: #1663c5;
        background-color: #f0f4ff;
    }

/* Sidebar Styling */
.sidebar {
    background: #ffffff !important;
    border-right: 1px solid #e2e8f0;
    padding: 1.5rem 0 !important;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.04);
    min-height: calc(100vh - 76px);
}

    .sidebar .nav {
        padding: 0 1rem;
    }

    .sidebar .nav-item {
        margin-bottom: 0.5rem;
    }

    .sidebar .nav-link {
        color: #64748b !important;
        font-weight: 500;
        padding: 0.75rem 1rem;
        border-radius: 0.5rem;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
    }

        .sidebar .nav-link:hover {
            color: #1663c5 !important;
            background-color: #f0f4ff;
            transform: translateX(4px);
        }

        .sidebar .nav-link.active {
            color: #1663c5 !important;
            background-color: #e0e7ff;
            font-weight: 600;
            box-shadow: 0 2px 6px rgba(22, 99, 197, 0.15);
        }

        .sidebar .nav-link i {
            width: 1.25rem;
            margin-right: 0.75rem;
            font-size: 1rem;
            text-align: center;
        }

/* Main Content Area */
.col-md-10.pt-3,
.col-md-5.pt-3 {
    background-color: #f8fafc !important;
    padding: 2rem !important;
}

/* Page Header */

/* 
.d-flex.justify-content-between h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 !important;
} */

.btn-outline-primary {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    box-shadow: 0 2px 4px rgba(22, 99, 197, 0.2);
    transition: all 0.3s ease;
}

    .btn-outline-primary:hover {
        background-color: #1356aa !important;
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(22, 99, 197, 0.3);
    }

/* Primary Button Styling */
.btn-primary {
    background-color: #1663c5 !important;
    color: white !important;
    border: none !important;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    box-shadow: 0 2px 4px rgba(22, 99, 197, 0.2);
    transition: all 0.3s ease;
}

    .btn-primary:hover {
        background-color: #1356aa !important;
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(22, 99, 197, 0.3);
    }

    .btn-primary:active,
    .btn-primary:focus {
        background-color: #104b94 !important;
        box-shadow: 0 1px 2px rgba(22, 99, 197, 0.3);
    }

/* Table Container - Clean Design (No Stripes) */
.table-responsive {
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    background: white;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.table {
    background-color: #ffffff;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

    /* Table Header - Clean Design */
    .table thead {
        /*background: #f8fafc !important;*/
        border: none !important;
    }

        .table thead th {
            color: #475569 !important;
            /*text-transform: uppercase;*/
            font-weight: 700;
            font-size: 1rem;
            letter-spacing: 0.5px;
            padding: 1rem 1.25rem;
            border: none;
            border-bottom: 1px solid #e2e8f0;
            /*background: #f8fafc;*/
        }

    /* Table Body - Clean Design (No Stripes) */
    .table tbody td {
        color: #334155;
        font-size: 0.9375rem;
        padding: 1rem 1.25rem;
        border-bottom: 1px solid #eae8e8;
        vertical-align: middle;
        transition: all 0.2s ease;
        background: #ffffff;
    }

    /* Remove striped rows - Clean uniform background */
    .table tbody tr {
        background-color: #ffffff;
    }

/* Hover Effects - Subtle */
.table-hover tbody tr:hover {
    background-color: #f8fafc !important;
    box-shadow: inset 0 0 0 1px #e2e8f0;
}

/* Action Buttons in Table */
.table .btn {
    font-size: 0.8125rem;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    box-shadow: none;
}

.table .btn-primary {
    box-shadow: 0 1px 2px rgba(22, 99, 197, 0.15);
}

.table .btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

/* Form in Table */
.table form {
    display: inline-block;
    margin: 0 0.25rem;
}

/* Empty State Styling */
.table tbody tr td.text-center {
    padding: 3rem 1rem;
    color: #64748b;
    /* font-style: italic; */
    background: #ffffff;
}

    .table tbody tr td.text-center .fa-inbox {
        color: #cbd5e1;
        margin-bottom: 1rem;
    }

/* Tooltip Styling */
[data-bs-toggle="tooltip"] {
    /*border-bottom: 1px dotted #1663c5;*/
    cursor: help;
}

/* Footer - Updated to Light/White */
.footer {
    background-color: #ffffff !important;
    color: #64748b !important;
    padding: 1.5rem 0 !important;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
    border-top: 1px solid #e2e8f0;
}

    .footer .container {
        font-weight: 500;
    }

/* Secondary Button */
.btn-secondary {
    background-color: #64748b !important;
    color: white !important;
    border: none !important;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    box-shadow: 0 2px 4px rgb(54 54 54 / 20%);
}

/* Section Headers in Sidebar */
.sidebar .nav-item h6 {
    color: #94a3b8;
    font-size: 0.6875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card-custom-glass{
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    background-color: rgba(255, 255, 255, 0.75);
    border-radius: 12px;
    border: 1px solid rgba(209, 213, 219, 0.3);
}



.card {
    border-radius: 1rem;
    overflow: hidden;
}

.card-header {
    border-bottom: none;
}

.form-control, .form-select {
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    padding: 0.75rem .75rem;
}

.form-control-lg {
    padding: 1rem 1rem;
}

.form-control:focus, .form-select:focus {
    border-color: #1663c5;
    box-shadow: 0 0 0 0.2rem rgba(22, 99, 197, 0.15);
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: #1663c5;
    font-weight: 600;
}

.form-check-input:checked {
    background-color: #1663c5;
    border-color: #1663c5;
}

.form-check-input:focus {
    border-color: #1663c5;
    box-shadow: 0 0 0 0.2rem rgba(22, 99, 197, 0.15);
}

.form-switch .form-check-input:checked {
    background-color: #1663c5;
    border-color: #1663c5;
}

.btn {
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-primary {
    background: linear-gradient(135deg, #1663c5 0%, #0d4a9c 100%);
    border: none;
    box-shadow: 0 2px 8px rgba(22, 99, 197, 0.3);
}

    .btn-primary:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(22, 99, 197, 0.4);
    }

/* .btn-outline-secondary {
    border: 2px solid #e2e8f0;
    color: #64748b;
} */

    /* .btn-outline-secondary:hover {
        background-color: #f8fafc;
        border-color: #cbd5e1;
        color: #475569;
    } */

.alert {
    border-radius: 0.5rem;
    border: none;
}

.invalid-feedback {
    font-weight: 500;
    margin-top: 0.25rem;
}

.form-label i {
    width: 16px;
}

/* Select2 Dropdown Custom Styles */
.select2-container {
    width: 100% !important;
}

.select2-container--default .select2-selection--single {
    background-color: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    height: auto;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    min-height: 56px;
    display: flex;
    align-items: center;
}

    .select2-container--default .select2-selection--single:focus {
        outline: none;
        border-color: #1663c5;
        box-shadow: 0 0 0 3px rgba(22, 99, 197, 0.1);
    }

.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #1663c5;
    box-shadow: 0 0 0 3px rgba(22, 99, 197, 0.1);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #334155;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.5;
    padding: 0;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    width: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .select2-container--default .select2-selection--single .select2-selection__arrow b {
        border-color: #64748b transparent transparent transparent;
        border-width: 6px 6px 0 6px;
        margin-top: -3px;
        transition: transform 0.2s ease;
    }

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #64748b transparent;
    border-width: 0 6px 6px 6px;
}

/* Dropdown Styles */
.select2-container--default .select2-dropdown {
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: #ffffff;
    overflow: hidden;
    margin-top: 4px;
}

.select2-container--default .select2-results__option {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    color: #334155;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f1f5f9;
}

    .select2-container--default .select2-results__option:last-child {
        border-bottom: none;
    }

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: linear-gradient(135deg, #1663c5 0%, #0d4a9c 100%);
    color: white;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: #f0f4ff;
    color: #1663c5;
    font-weight: 600;
}

.select2-container--default .select2-results__option:hover {
    background-color: #f8fafc;
    color: #1663c5;
}

/* Search Box in Dropdown */
.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 2px solid #e2e8f0;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
    margin: 0.5rem;
    width: calc(100% - 1rem);
}

    .select2-container--default .select2-search--dropdown .select2-search__field:focus {
        outline: none;
        border-color: #1663c5;
        box-shadow: 0 0 0 2px rgba(22, 99, 197, 0.1);
    }

/* Multiple Select Styles */
.select2-container--default .select2-selection--multiple {
    background-color: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    min-height: 56px;
    padding: 0.25rem 0.5rem;
    transition: all 0.3s ease;
}

    .select2-container--default .select2-selection--multiple:focus {
        border-color: #1663c5;
        box-shadow: 0 0 0 3px rgba(22, 99, 197, 0.1);
    }

.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #1663c5;
    box-shadow: 0 0 0 3px rgba(22, 99, 197, 0.1);
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background: linear-gradient(135deg, #1663c5 0%, #0d4a9c 100%);
    border: none !important;
    border-radius: 0.375rem !important;
    color: white;
    padding: 0.25rem 0.75rem !important;
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0.25rem;
    display: flex;
    align-items: center;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: white;
    margin-right: 0.5rem;
    font-size: 1rem;
    font-weight: bold;
    opacity: 0.8;
}

    .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
        color: white;
        opacity: 1;
    }

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    padding: 0;
}

.select2-container--default .select2-selection--multiple .select2-search__field {
    color: #334155;
    font-size: 0.95rem;
    padding: 0.5rem 0;
}

    .select2-container--default .select2-selection--multiple .select2-search__field::placeholder {
        color: #94a3b8;
    }

/* Disabled State */
.select2-container--default .select2-selection--single[aria-disabled=true] {
    background-color: #f8fafc;
    border-color: #e2e8f0;
    opacity: 0.6;
}

.select2-container--default .select2-selection--multiple[aria-disabled=true] {
    background-color: #f8fafc;
    border-color: #e2e8f0;
    opacity: 0.6;
}

/* Error State */
.select2-container--default.is-invalid .select2-selection--single,
.select2-container--default.is-invalid .select2-selection--multiple {
    border-color: #dc2626;
}

.select2-container--default.is-invalid.select2-container--focus .select2-selection--single,
.select2-container--default.is-invalid.select2-container--focus .select2-selection--multiple {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Success State */
.select2-container--default.is-valid .select2-selection--single,
.select2-container--default.is-valid .select2-selection--multiple {
    border-color: #16a34a;
}

.select2-container--default.is-valid.select2-container--focus .select2-selection--single,
.select2-container--default.is-valid.select2-container--focus .select2-selection--multiple {
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

/* Loading State */
.select2-container--default .select2-selection__clear {
    color: #64748b;
    font-size: 1.25rem;
    font-weight: bold;
    margin-right: 0.5rem;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

    .select2-container--default .select2-selection__clear:hover {
        color: #dc2626;
        opacity: 1;
    }

/* Group Headers */
.select2-container--default .select2-results__group {
    background-color: #f8fafc;
    color: #475569;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e2e8f0;
}

/* No Results */
.select2-container--default .select2-results__message {
    color: #64748b;
    font-style: italic;
    padding: 1rem;
    text-align: center;
}

/* Loading Results */
.select2-container--default .select2-results__option--loading {
    color: #64748b;
    background-color: transparent;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .select2-container--default .select2-selection--single {
        padding: 0.625rem 0.875rem;
        min-height: 52px;
    }

        .select2-container--default .select2-selection--single .select2-selection__rendered {
            font-size: 0.9rem;
        }

    .select2-container--default .select2-dropdown {
        border-radius: 0.375rem;
    }

    .select2-container--default .select2-results__option {
        padding: 0.625rem 0.875rem;
        font-size: 0.9rem;
    }
}

/* Animation for dropdown open/close */
.select2-container--open .select2-dropdown {
    animation: select2DropdownFadeIn 0.2s ease-out;
}

@keyframes select2DropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom scrollbar for dropdown */
.select2-container--default .select2-results > .select2-results__options {
    max-height: 200px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

    .select2-container--default .select2-results > .select2-results__options::-webkit-scrollbar {
        width: 6px;
    }

    .select2-container--default .select2-results > .select2-results__options::-webkit-scrollbar-track {
        background: #f1f5f9;
        border-radius: 3px;
    }

    .select2-container--default .select2-results > .select2-results__options::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 3px;
    }

        .select2-container--default .select2-results > .select2-results__options::-webkit-scrollbar-thumb:hover {
            background: #94a3b8;
        }


/* Badge Base Styles */
.badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 1rem;
    line-height: 1.2;
    letter-spacing: 0.025em;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
    vertical-align: middle;
}

/* Badge Sizes */
.badge-sm {
    font-size: 0.6875rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.875rem;
}

.badge-lg {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 1.25rem;
}

.badge-xl {
    font-size: 1rem;
    padding: 0.75rem 1.25rem;
    border-radius: 1.5rem;
    font-weight: 700;
}

/* Badge Variants - Solid */
.badge-primary {
    background: linear-gradient(135deg, #1663c5 0%, #0d4a9c 100%);
    color: white;
    border-color: #0d4a9c;
    box-shadow: 0 2px 4px rgba(22, 99, 197, 0.2);
}

.badge-secondary {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: white;
    border-color: #475569;
    box-shadow: 0 2px 4px rgba(100, 116, 139, 0.2);
}

.badge-success {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: white;
    border-color: #15803d;
    box-shadow: 0 2px 4px rgba(22, 163, 74, 0.2);
}

.badge-danger {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    border-color: #b91c1c;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2);
}

.badge-warning {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    color: white;
    border-color: #b45309;
    box-shadow: 0 2px 4px rgba(217, 119, 6, 0.2);
}

.badge-info {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    border-color: #0284c7;
    box-shadow: 0 2px 4px rgba(14, 165, 233, 0.2);
}

.badge-light {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: #475569;
    border-color: #e2e8f0;
    box-shadow: 0 2px 4px rgba(148, 163, 184, 0.1);
}

.badge-dark {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    border-color: #0f172a;
    box-shadow: 0 2px 4px rgba(30, 41, 59, 0.3);
}

/* Outline Variants */
.badge-outline-primary {
    background: transparent;
    color: #1663c5;
    border: 2px solid #1663c5;
    box-shadow: none;
}

.badge-outline-secondary {
    background: transparent;
    color: #64748b;
    border: 2px solid #64748b;
    box-shadow: none;
}

.badge-outline-success {
    background: transparent;
    color: #16a34a;
    border: 2px solid #16a34a;
    box-shadow: none;
}

.badge-outline-danger {
    background: transparent;
    color: #dc2626;
    border: 2px solid #dc2626;
    box-shadow: none;
}

.badge-outline-warning {
    background: transparent;
    color: #d97706;
    border: 2px solid #d97706;
    box-shadow: none;
}

.badge-outline-info {
    background: transparent;
    color: #0ea5e9;
    border: 2px solid #0ea5e9;
    box-shadow: none;
}

.badge-outline-light {
    background: transparent;
    color: #64748b;
    border: 2px solid #cbd5e1;
    box-shadow: none;
}

.badge-outline-dark {
    background: transparent;
    color: #1e293b;
    border: 2px solid #1e293b;
    box-shadow: none;
}

/* Soft Variants */
.badge-soft-primary {
    background: rgba(22, 99, 197, 0.1);
    color: #1663c5;
    border: 1px solid rgba(22, 99, 197, 0.2);
    box-shadow: none;
}

.badge-soft-secondary {
    background: rgba(100, 116, 139, 0.1);
    color: #475569;
    border: 1px solid rgba(100, 116, 139, 0.2);
    box-shadow: none;
}

.badge-soft-success {
    background: rgba(22, 163, 74, 0.1);
    color: #15803d;
    border: 1px solid rgba(22, 163, 74, 0.2);
    box-shadow: none;
}

.badge-soft-danger {
    background: rgba(220, 38, 38, 0.1);
    color: #b91c1c;
    border: 1px solid rgba(220, 38, 38, 0.2);
    box-shadow: none;
}

.badge-soft-warning {
    background: rgba(217, 119, 6, 0.1);
    color: #b45309;
    border: 1px solid rgba(217, 119, 6, 0.2);
    box-shadow: none;
}

.badge-soft-info {
    background: rgba(14, 165, 233, 0.1);
    color: #0284c7;
    border: 1px solid rgba(14, 165, 233, 0.2);
    box-shadow: none;
}

.badge-soft-light {
    background: rgba(248, 250, 252, 0.8);
    color: #475569;
    border: 1px solid rgba(226, 232, 240, 0.5);
    box-shadow: none;
}

.badge-soft-dark {
    background: rgba(30, 41, 59, 0.1);
    color: #1e293b;
    border: 1px solid rgba(30, 41, 59, 0.2);
    box-shadow: none;
}

/* Status Badges */
.badge-status-active {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: white;
    border-color: #15803d;
}

.badge-status-inactive {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: white;
    border-color: #475569;
}

.badge-status-pending {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    color: white;
    border-color: #b45309;
}

.badge-status-completed {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    border-color: #0284c7;
}

.badge-status-rejected {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    border-color: #b91c1c;
}

/* Icon Badges */
.badge-with-icon {
    padding-left: 0.5rem;
}

.badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    font-size: 0.75rem;
}

.badge-icon-start {
    margin-right: 0.375rem;
}

.badge-icon-end {
    margin-left: 0.375rem;
}

/* Pill Badges (More rounded) */
.badge-pill {
    border-radius: 2rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

    .badge-pill.badge-sm {
        border-radius: 1.5rem;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .badge-pill.badge-lg {
        border-radius: 2.5rem;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

/* Interactive Badges */
.badge-clickable {
    cursor: pointer;
    transition: all 0.3s ease;
}

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

    .badge-clickable:active {
        transform: translateY(0);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

/* Badge in Tables */
.table .badge {
    margin: 0.125rem;
}

/* Badge Groups */
.badge-group {
    display: inline-flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Counter Badges */
.badge-counter {
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    font-size: 0.6875rem;
    font-weight: 700;
}

/* Dot Badges */
.badge-dot {
    width: 0.5rem;
    height: 0.5rem;
    padding: 0;
    border-radius: 50%;
    display: inline-block;
}

.badge-dot-sm {
    width: 0.375rem;
    height: 0.375rem;
}

.badge-dot-lg {
    width: 0.75rem;
    height: 0.75rem;
}

/* Animated Badges */
.badge-pulse {
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(22, 99, 197, 0.4);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(22, 99, 197, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(22, 99, 197, 0);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .badge {
        font-size: 0.6875rem;
        padding: 0.25rem 0.5rem;
    }

    .badge-lg {
        font-size: 0.8125rem;
        padding: 0.375rem 0.75rem;
    }

    .badge-xl {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
}

/* Focus States for Accessibility */
.badge:focus {
    outline: 2px solid #1663c5;
    outline-offset: 2px;
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .container-fluid {
        padding: 1rem;
    }

    .card-body {
        padding: 1.5rem !important;
    }

    .btn-lg {
        padding: 0.75rem 1.5rem;
    }

    .d-flex.gap-3 {
        gap: 1rem !important;
    }

        .d-flex.gap-3 .btn {
            flex: 1;
            min-width: 140px;
        }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.5rem;
        margin-left: 0.5rem;
    }

    .navbar .nav-link {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.875rem;
    }

    .table-responsive {
        border-radius: 0.5rem;
        margin: 0 -0.5rem;
        border: 1px solid #e2e8f0;
    }

    .table thead th,
    .table tbody td {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }

    .sidebar {
        min-height: auto;
        padding: 1rem 0 !important;
    }

    .col-md-10.pt-3,
    .col-md-5.pt-3 {
        padding: 1rem !important;
    }
}

.cursor-pointer {
    cursor: pointer;
}