@font-face {
    font-family: "Arya-Regular";
    src: url("fonts/Arya-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    /* Optional for better performance */
}

@font-face {
    font-family: "Kurale-Regular";
    src: url("fonts/Kurale-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    /* Optional for better performance */
}

@font-face {
    font-family: "NotoSans-Regular";
    src: url("fonts/NotoSans-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    /* Optional for better performance */
}

@font-face {
    font-family: "NotoSans-Bold";
    src: url("fonts/NotoSans-Bold.ttf") format("truetype");
    font-weight: bold;
    font-style: normal;
    font-display: swap;
    /* Optional for better performance */
}

html,
body {
    font-family: "NotoSans-Regular";
    height: 100%;
    background: #f5f5f5;
    font-size: 14px;
}

.arya {
    font-family: "NotoSans-Bold" !important;
}

/* Custom responsive spacing */
@media (max-width: 767.98px) {
    .footer-text {
        margin-bottom: 0.5rem;
    }

    .footer-text:last-child {
        margin-bottom: 0;
    }
}

.fill-primary {
    fill: #007bff;
}

.fill-secondary {
    fill: #6c757d;
}

.fill-success {
    fill: #28a745;
}

.fill-danger {
    fill: #dc3545;
}

.fill-warning {
    fill: #ffc107;
}

.fill-info {
    fill: #17a2b8;
}

.fill-dark {
    fill: #343a40;
}

.fill-light {
    fill: #f8f9fa;
}

.wrap>.container {
    padding: 40px 15px 40px;
}

.footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    padding: 1rem 0;
    margin-top: auto;
}

.jumbotron {
    text-align: center;
    background-color: transparent;
}

.jumbotron .btn {
    font-size: 21px;
    padding: 14px 24px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

.permissions {
    font-size: 16px;
    cursor: pointer;
}

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

.flex-grow09 {
    flex-grow: 0.9;
}

/* Container for horizontal scrolling */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* Smooth scrolling on iOS */
}

/* Table styling */
.scrollable-table {
    width: max-content;
    /* Force table to expand beyond container */
    min-width: 100%;
    border-collapse: collapse;
}

/* Mobile-specific adjustments */
@media (max-width: 767px) {
    .glass-grid .table-responsive {
        position: relative;
    }

    .glass-grid .sticky-column {
        position: sticky !important;
        z-index: 2 !important;
        backdrop-filter: blur(10px);
    }

    .glass-grid td.sticky-column {
        background: rgba(255, 255, 255, 0.95) !important;
    }

    /* First Column (#) */
    .glass-grid th:first-child,
    .glass-grid td:first-child {
        left: 0;
        min-width: 40px;
    }

    /* Second Column (First Name) */
    .glass-grid .second-column {
        left: 40px;
        /* Offset by the width of the first column */

        border-right: 2px solid rgba(0, 0, 0, 0.05) !important;
    }
}

/* Glassmorphism Design System */
.glass-container {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(12px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 1.5rem !important;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15) !important;
    overflow: hidden;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.glass-card {
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 1.25rem !important;
    box-shadow: 0 4px 15px 0 rgba(0, 0, 0, 0.05) !important;
}

.glass-grid .table {
    background: transparent !important;
    margin-bottom: 0;
}

.glass-grid thead th {
    background: rgba(248, 249, 250, 0.8) !important;
    backdrop-filter: blur(4px) !important;
    border-top: none !important;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05) !important;
    color: #495057;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-family: "NotoSans-Bold";
}

.glass-grid tbody td {
    padding: 0.5rem !important;
    vertical-align: middle !important;
    border-color: rgba(0, 0, 0, 0.03) !important;
    background: transparent !important;
    white-space: nowrap !important;
}

.glass-grid tr:hover {
    background: rgba(255, 255, 255, 0.4) !important;
}

.glass-grid td.sticky-column {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(10px) !important;
}

.glass-toolbar-wrapper .kv-panel-before {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    padding: 1rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 0.75rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.glass-toolbar-wrapper .btn-toolbar {
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.glass-toolbar {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    color: #495057 !important;
    font-weight: 600 !important;
    border-radius: 0.75rem !important;
    padding: 0.6rem 1.25rem !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.2s ease !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.8) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.06) !important;
    color: #0d6efd !important;
}

.btn-glass-success {
    color: #28a745 !important;
}

.btn-glass-info {
    color: #17a2b8 !important;
}

.btn-glass-primary {
    color: #0d6efd !important;
}

.btn-group-glass .btn {
    background: rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(4px) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    color: #495057 !important;
    padding: 0.6rem 1rem !important;
    transition: all 0.2s ease !important;
}

.btn-group-glass .btn:hover {
    background: rgba(255, 255, 255, 0.8) !important;
    color: #0d6efd !important;
}

.btn-group-glass .btn:first-child {
    border-top-left-radius: 0.75rem !important;
    border-bottom-left-radius: 0.75rem !important;
}

.btn-group-glass .btn:last-child {
    border-top-right-radius: 0.75rem !important;
    border-bottom-right-radius: 0.75rem !important;
}

/* Mobile optimization for toolbar */
@media (max-width: 576px) {
    .glass-toolbar {
        justify-content: center;
        padding: 0.75rem;
    }

    .btn-glass {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.85rem !important;
        flex-grow: 1;
    }

    .glass-toolbar .btn-group {
        width: 100%;
        display: flex;
    }

    .glass-toolbar .btn-group .btn {
        flex-grow: 1;
    }
}

.glass-panel-heading {
    background: linear-gradient(135deg,
            rgba(13, 110, 253, 0.1),
            rgba(13, 110, 253, 0.05)) !important;
    border-bottom: 1px solid rgba(13, 110, 253, 0.1) !important;
    padding: 1rem 1.25rem !important;
}

.glass-summary {
    font-size: 0.7rem !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.glass-footer {
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(5px) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
    z-index: 1030;
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    text-decoration: none;
    font-size: 11px;
    flex-grow: 1;
    height: 100%;
    transition: all 0.2s ease;
}

/* Profile Page Styles */
.profile-header {
    background: linear-gradient(135deg,
            rgba(13, 110, 253, 0.1),
            rgba(13, 110, 253, 0.05));
    padding: 2.5rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.profile-avatar-container {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.profile-avatar.area-manager-outline {
    border: 4px solid #0d6efd !important;
    box-shadow: 0 8px 24px rgba(13, 110, 253, 0.2);
}

.profile-avatar.region-manager-outline {
    border: 4px solid #dc3545 !important;
    box-shadow: 0 8px 24px rgba(220, 53, 69, 0.2);
}

.profile-avatar.backkeeper-outline {
    border: 4px solid #ffc107 !important;
    box-shadow: 0 8px 24px rgba(255, 193, 7, 0.2);
}

.profile-photo-edit-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #0d6efd;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
    margin-bottom: 0;
    z-index: 3;
}

.profile-photo-edit-btn:hover {
    background: #0b5ed7;
    transform: scale(1.15) rotate(5deg);
    color: white;
    box-shadow: 0 6px 15px rgba(13, 110, 253, 0.4);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #6c757d;
    font-size: 0.9rem;
}

.detail-value {
    color: #212529;
    font-weight: 500;
}

.activity-table td {
    font-size: 0.85rem;
    padding: 1rem 0.75rem !important;
}

.activity-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    background: #0d6efd;
}

.glass-table {
    border-collapse: separate !important;
    border-spacing: 0;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    border-radius: 0.75rem !important;
    overflow: hidden;
}

.glass-table thead th {
    background-color: rgba(0, 0, 0, 0.02) !important;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05) !important;
    text-align: center !important;
}

.glass-table td,
.glass-table th {
    border-color: rgba(0, 0, 0, 0.04) !important;
    text-align: center !important;
    vertical-align: middle !important;
}

@media (max-width: 576px) {
    .profile-header {
        padding: 2rem 1rem;
    }

    .profile-avatar {
        width: 100px;
        height: 100px;
    }
}

.app-wallpaper {
    background-color: transparent !important;
}

.app-wallpaper::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6)), url('../images/image.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

/* Global Blurred Site Loader */
.glass-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.glass-loader-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.colorful-loader {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    position: relative;
    background: conic-gradient(#ff00cc, #333399, #0d6efd, #0dcaf0, #ff00cc);
    animation: spin 1.5s linear infinite;
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(13, 110, 253, 0.4);
}

.colorful-loader::after {
    content: "";
    position: absolute;
    width: 80%;
    height: 80%;
    background-color: #f5f5f5;
    /* Matches body background pattern base */
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
}

.loader-text {
    font-size: 1.2rem;
    font-family: 'NotoSans-Bold', sans-serif;
    letter-spacing: 2px;
    font-weight: 700;
    text-transform: uppercase;
    background: -webkit-linear-gradient(45deg, #0d6efd, #ff00cc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulse 1.5s infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0% {
        opacity: 0.6;
        transform: scale(0.98);
    }

    50% {
        opacity: 1;
        transform: scale(1.02);
    }

    100% {
        opacity: 0.6;
        transform: scale(0.98);
    }
}

/* Global Site Loader */
#global-site-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #ffffff;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#global-site-loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-icon-anim {
    width: 80px;
    height: 80px;
}

/* Navbar Utilities */
.navbar-brand {
    font-size: 1.25rem;
    letter-spacing: -0.5px;
}

.navbar-main {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.main-wrapper {
    padding-bottom: 70px;
}

.profile-img-header {
    width: 35px !important;
    height: 35px !important;
    min-width: 35px !important;
    min-height: 35px !important;
    max-width: 35px !important;
    max-height: 35px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 2px solid rgba(13, 110, 253, 0.2) !important;
    padding: 2px !important;
    transition: all 0.3s ease;
}

.profile-img-header:hover {
    border-color: #0d6efd !important;
    transform: scale(1.05);
}

/* Mobile Bottom Navigation Layout Overrides */
.mobile-bottom-nav .nav-item.active {
    color: #0d6efd;
}

.mobile-bottom-nav .nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
    background: -webkit-linear-gradient(45deg, #0d6efd, #0dcaf0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mobile-bottom-nav .nav-item.active i {
    background: -webkit-linear-gradient(45deg, #fd7e14, #ffc107);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mobile-bottom-nav form.nav-item {
    padding: 0;
    margin: 0;
}

.mobile-bottom-nav .nav-item .btn {
    padding: 0;
    margin: 0;
    color: #6c757d;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
}