﻿/* =========================
   CSS ORGANIZATION TEMPLATE
   ========================= */

/* =========================
   0. EXTERNAL RESOURCES / IMPORTS
   ========================= */

/* =========================
   1. GLOBAL RESET AND UTILITIES
   ========================= */
/* =========================
   Base Elements Reset
   ========================= */
body {
    padding-top: 0 !important;
    padding-bottom: 0;
    /* Cross-platform system font stack for LinkedIn-like appearance */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, 
                 Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

div {
    scrollbar-width: thin !important;
    scrollbar-color: white transparent !important;
}

/* =========================
   Layout & Sizing Utilities
   ========================= */
.mw-20 {
    min-width: 20%;
}

.min-width-auto {
    min-width: auto !important;
}

.border-rounded-radius {
    border-radius: 50px;
}

.message-right {
    margin-left: auto;
}

.message-left {
    margin-right: auto;
}

/* =========================
   Typography Utilities
   ========================= */
.fs-14 {
    font-size: 14px;
}

.fs-12 {
    font-size: 12px;
}

[data-bs-theme="dark"] .text-secondary {
    --bs-text-opacity: none;
}

/* Message Typography */
.message {
    font-size: 0.9em;
}

.message-time {
    font-size: 0.7em;
}

.resolve-checkbox {
    font-size: 0.8em;
}

.delay-info {
    font-size: 0.9em;
    opacity: 0.9;
}

/* =========================
   Form & Input Utilities
   ========================= */
.input-group span {
    justify-content: right;
}

/* =========================
   Table Utilities
   ========================= */
.dataTables_info,
.dataTables_length,
.dataTables_filter {
    color: var(--link-color);
}

/* =========================
   Interactive States
   ========================= */
.cursor-pointer {
    cursor: pointer;
}

.back-to-list:focus {
    border: none !important;
}

/* =========================
   2. TYPOGRAPHY
   ========================= */
/* =========================
   Sign In/Up Typography
   ========================= */
.signin-card-title {
    font-size: 32px;
    font-weight: 600;
}

.signin-card-subtitle {
    font-size: 14px;
    font-weight: 400;
}

.signin-validation-text,
.signup-validation-text {
    font-size: 14px;
}

/* =========================
   Page Elements Typography
   ========================= */
.forgot-password-div {
    font-size: 16px;
}

.page-report-button {
    font-size: 16px;
}

table {
    font-size: 14px;
}

/* =========================
   Control Panel Typography
   ========================= */
/* Control Panel Card Typography */
.control-panel-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.control-panel-card .card-subtitle {
    font-size: 0.9rem;
    font-weight: 400;
}

.control-panel-card .card-body {
    font-size: 0.95rem;
}

.control-panel-card .icon {
    font-size: 2rem;
}

.control-panel-card .manage-link {
    font-weight: bold;
}

/* =========================
   3. LAYOUT AND GRID
   ========================= */
.homepage {
    min-height: 445px;
}

/* =========================
   4. COMPONENTS
   ========================= */

/* =========================
   Pagination
   ========================= */
.pagination-container .pagination {
    transform: scale(0.9);
}

.pagination {
    padding-left: 2rem !important;
}

/* =========================
   Navigation Bar
   ========================= */
.dropdown-toggle::after {
    position: relative;
    top: 2px;
}

.navbar-toggler {
    padding: 0.5rem 1rem;
    font-size: 1.25rem;
    line-height: 1;
    border: none;
    border-radius: 0.25rem;
    transition: box-shadow 0.15s ease-in-out;
    background-repeat: round;
}

.navbar-toggler-icon {
    width: auto;
    height: auto;
    padding-left: 15px;
}

.navbar-custom {
    padding-top: 0;
    padding-bottom: 0;
}

.navbar-padding {
    padding: 8px 16px;
}

/* =========================
   Dashboard Card
   ========================= */
.dashboard-card {
    transition: transform 0.2s;
    border-top-color: var(--warm-primary) !important;
}

    .dashboard-card:hover {
        transform: scale(1.05);
    }

/* =========================
   Card Text
   ========================= */
.card-text {
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Number of lines to show */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    height: 4.5em; /* Adjust based on line height and number of lines */
}

/* =========================
   Sign-In and Sign-Up Forms
   ========================= */
.signin-textboxes, .signup-textboxes {
    margin-bottom: 20px;
}

.signin-textbox-group, .signup-textbox-group {
    margin-top: 30px;
}

.signin-card, .signup-card {
    width: max-content;
    margin: 75px auto;
    border: none;
    position: relative;
    top: 75px;
}

.signin-card-body, .signup-card-body {
    margin: auto;
}

.signin-button, .signup-button {
    font-size: 16px;
    border-radius: 28px;
    margin: auto;
    width: 250px;
}

.forgot-password-link {
    text-decoration: none;
}

.forgot-password-div {
    position: relative;
    top: -15px;
}

/* Sign In/Up Cards */
.signin-custom-card,
.signup-custom-card {
    box-shadow: rgba(34, 34, 34, 0.24) 0 0 16px 0;
    padding: 1.5rem 2rem;
}

/* OR Separator */
.or-separator {
    display: flex;
    box-sizing: border-box;
    align-items: center;
    margin: 6px 0;
}

    .or-separator .or-text {
        font-size: 14px;
        line-height: 20px;
        color: var(--text-muted);
        margin: 0 12px;
    }

    .or-separator::before,
    .or-separator::after {
        content: "";
        width: 18%;
        height: 1px;
        background-color: var(--separator-color);
    }

/* =========================
   Account/Login Links
   ========================= */
.join-now-link, .sign-in-link {
    text-decoration: none;
}

.join-now-div, .sign-in-div {
    display: flex;
    justify-content: center;
    padding-top: 10px;
}

/* =========================
   Validation Text Components
   ========================= */
.signin-validation-text {
    position: relative;
    top: -18px;
    left: 5px;
    max-width: 250px;
    display: block;
    margin-bottom: 20px;
}

.signup-validation-text {
    max-width: 250px;
    display: block;
    margin-bottom: 20px;
}

    .signup-validation-text ul {
        list-style-type: lower-greek;
        margin-bottom: 20px;
    }

/* =========================
   Input and Cards Styling
   ========================= */
.page-input-card {
    max-width: 720px;
    margin: auto;
    border: none;
    box-shadow: rgba(0, 0, 0, 0.1) 0 0 5px, rgba(0, 0, 0, 0.1) 0 0 1px;
}

.page-input-box {
    max-width: initial;
}

.input-text-name {
    min-width: 145px;
}

.page-input-row {
    padding-left: 15px;
    padding-right: 15px;
    justify-content: center;
}

/* =========================
   Buttons
   ========================= */
.page-report-button {
    border-radius: 28px;
    margin: auto;
    width: max-content;
}

.page-button-transform {
    transform: scale(0.81);
    transform-origin: top left;
}

/* =========================
   Navigation Pills
   ========================= */
.nav-pills .nav-link.active {
    border-radius: 0;
}

/* =========================
   Validation Summary
   ========================= */
.validation-summary-errors {
    /*max-width: min-content;*/
}

/* =========================
   Profile Images
   ========================= */
.circular-image, .circular-image-mini {
    border-radius: 50%;
    object-fit: cover;
    border-width: 2px;
    border-style: solid;
}

.circular-image {
    width: 200px;
    height: 200px;
}

.circular-image-mini {
    width: 36px;
    height: 36px;
    position: relative;
    top: 2px;
}

/* =========================
   Control Panel Cards
   ========================= */
.control-panel-card {
    margin: 2.5px 0 15px;
    transition: transform 0.2s;
    min-width: 16.5rem;
    border-top-width: 1px;
    border-top-style: solid;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

    .control-panel-card:hover {
        transform: scale(1.05);
    }

    .control-panel-card .card-header {
        border-bottom: none;
        display: flex;
        align-items: center;
    }

    .control-panel-card .card-title {
        margin: 0.25rem 0 0;
    }

    .control-panel-card .icon {
        margin-right: 10px;
        border-width: 1px;
        border-style: solid;
    }

    .control-panel-card .card-footer {
        border-top: none;
        text-align: left;
    }

    .control-panel-card .manage-link {
        text-decoration: none;
    }

        .control-panel-card .manage-link:hover {
            text-decoration: underline;
        }

/* =========================
   Chat Components
   ========================= */
.chat-area {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid var(--separator-color);
    margin-bottom: 10px;
}

.message {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 10px;
    max-width: 70%;
    color: var(--warm-white);
    position: relative;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.message-actions {
    display: flex;
    align-items: center;
}

.message-input-container {
    display: flex;
    margin-top: 10px;
}

.message-input {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--separator-color);
    border-radius: 5px;
    margin-right: 10px;
}

.send-message-button {
    padding: 10px;
    background-color: var(--warm-primary);
    color: var(--warm-white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Message States */
.message.resolved {
    opacity: 0.8;
}

    .message.resolved.hidden {
        display: none !important;
    }

    .message.resolved::after {
        content: '✓';
        position: absolute;
        top: 5px;
        right: 5px;
        font-size: 12px;
        color: var(--warm-white);
    }

    .message.resolved .message-content {
        text-decoration: line-through;
        opacity: 0.8;
    }

.resolve-checkbox {
    color: var(--warm-white);
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

    .resolve-checkbox input {
        cursor: pointer;
    }

/* Time Display */
.message-time {
    display: block;
    color: var(--message-time);
    margin-top: 5px;
}

/* =========================
   Status Components
   ========================= */
.status-badge {
    cursor: pointer;
}

    .status-badge:hover {
        opacity: 0.9;
    }

/* =========================
   Modal Components
   ========================= */
#statusDetailModal .modal-body {
    max-height: 500px;
    overflow-y: auto;
}

/* =========================
   5. FORMS AND INPUTS
   ========================= */
/* Removing the blue highlight from inputs and buttons */
.form-control:focus {
    box-shadow: none;
}

.btn:focus {
    box-shadow: none;
}

/* =========================
   6. HEADER AND NAVIGATION
   ========================= */


/* =========================
   7. FOOTER
   ========================= */


/* =========================
   8. COLORS AND THEMES
   ========================= */

/* =========================
   Color Variables
   ========================= */
:root {
    /* Existing variables... */
    /* Brand Colors */
    --warm-primary: #0d6efd;
    --warm-light: #e7f0ff;
    --warm-lighter: #f3f8ff;
    --warm-black: #0b0f19;
    --warm-red: #ec232a;
    --warm-white: #fff;
    /* Text Colors */
    --link-color: #0d6efd;
    --text-muted: rgba(0, 0, 0, 0.6);
    --separator-color: rgba(0, 0, 0, 0.15);
    --table-stripe-color: rgba(182, 211, 254, 0.1);
    /* Dashboard Colors */
    --scrollbar-color: #888;
    --scrollbar-hover: #555;
    --scrollbar-track: #f1f1f1;
    --nav-text: #495057;
    --nav-active: #0d6efd;
    --shadow-color: rgba(0, 0, 0, 0.3);
    /* Sidebar Colors */
    --sidebar-bg: #fff;
    --sidebar-scrollbar: #aab7cf;
    --sidebar-shadow: rgba(1, 41, 112, 0.1);
    --sidebar-link-color: #0d6efd;
    --sidebar-link-bg: #f6f9ff;
    --sidebar-heading-color: #899bbd;
    --sidebar-collapsed-color: #012970;
    --sidebar-collapsed-icon: #899bbd;
    /* Chat Theme Colors */
    --message-time: #ddd;
    --user-color-1: #1f77b4; /* Blue */
    --user-color-2: #2ca02c; /* Green */
    --user-color-3: #d62728; /* Red */
    --user-color-4: #9467bd; /* Purple */
    --user-color-5: #8c564b; /* Brown */
    
    /* Typography System - LinkedIn style */
    --font-family-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, 
                        Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
    --font-family-mono: SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 
                        'Courier New', monospace;
    
    /* Font weights that render consistently across platforms */
    --font-weight-normal: 400;
    --font-weight-medium: 500; 
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* LinkedIn standard sizes */
    --font-size-xs: 12px;
    --font-size-sm: 14px; 
    --font-size-base: 16px;
    --font-size-lg: 20px;
    --font-size-xl: 24px;
    --font-size-xxl: 30px;
    
    /* Line heights for consistent text blocks */
    --line-height-tight: 1.2;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
}

[data-bs-theme="dark"] {
    /* Base Colors - VS Code Dark Inspired */
    --warm-primary: #CCCCCC; /* Neutral Gray for buttons/actions */
    --warm-light: #313131; /* Light Charcoal */
    --warm-lighter: #424242; /* Medium Charcoal */
    --warm-black: #D4D4D4; /* VS Code Text Color */
    --warm-red: #FF616B; /* Soft Red */
    --warm-white: #252526; /* VS Code Background */
    /* Text Colors - Consistent with VS Code */
    --link-color: #D4D4D4; /* VS Code Text (was blue) */
    --text-muted: #CCCCCC; /* Light Gray */
    --separator-color: #424242; /* Medium Charcoal */
    --table-stripe-color: rgba(124, 124, 124, 0.05);
    /* Component Colors */
    --scrollbar-color: #424242;
    --scrollbar-hover: #525252;
    --scrollbar-track: #313131;
    --nav-text: #D4D4D4; /* VS Code Text */
    --nav-active: #D4D4D4; /* VS Code Text (was blue) */
    --shadow-color: rgba(0, 0, 0, 0.2);
    /* Sidebar Colors - Text Consistency */
    --sidebar-bg: #252526; /* VS Code Background */
    --sidebar-scrollbar: #424242;
    --sidebar-shadow: rgba(0, 0, 0, 0.15);
    --sidebar-link-color: #D4D4D4; /* VS Code Text (was blue) */
    --sidebar-link-bg: #2D2D2D; /* Slightly Lighter */
    --sidebar-heading-color: #CCCCCC;
    --sidebar-collapsed-color: #D4D4D4;
    --sidebar-collapsed-icon: #888888;
    /* Bootstrap Overrides */
    --bs-body-color: #D4D4D4; /* VS Code Text */
    --bs-body-bg: #252526; /* VS Code Background */
    --bs-border-color: #424242;
    --bs-secondary-color: #CCCCCC;
    --bs-tertiary-color: #888888;
    --bs-emphasis-color: #FFFFFF;
    --bs-card-bg: #2D2D2D;
    --bs-dropdown-bg: #2D2D2D;
    --bs-dropdown-link-hover-bg: #373737;
    --bs-dropdown-link-active-bg: #424242;
    /* Form Controls */
    --bs-input-bg: #3C3C3C;
    --bs-input-color: #D4D4D4;
    --bs-input-border-color: #424242;
    --bs-input-focus-border-color: #707070;
}

/* Text Color Utilities */
.global-link-text-color,
.global-link-text-color::placeholder,
.global-link-text-color:not(:placeholder-shown) {
    color: var(--link-color);
}

/* Icon Color Utilities */
a i .bi {
    color: var(--warm-white);
}

a i .bi {
    color: var(--warm-white);
}

.btn:hover .bi,
.btn:focus .bi {
    color: var(--link-color);
}

.btn:active .bi {
    color: var(--warm-white);
}

/* User Colors */
.user-color-1 {
    background-color: var(--user-color-1);
}

.user-color-2 {
    background-color: var(--user-color-2);
}

.user-color-3 {
    background-color: var(--user-color-3);
}

.user-color-4 {
    background-color: var(--user-color-4);
}

.user-color-5 {
    background-color: var(--user-color-5);
}

/* =========================
   Pagination
   ========================= */
.pagination-container .pagination {
    transform: scale(0.9);
}

.pagination {
    padding-left: 2rem !important;
}

/* =========================
   Navigation Bar
   ========================= */
.dropdown-toggle::after {
    position: relative;
    top: 2px;
}

.navbar-toggler {
    padding: 0.5rem 1rem;
    font-size: 1.25rem;
    line-height: 1;
    border: none;
    border-radius: 0.25rem;
    transition: box-shadow 0.15s ease-in-out;
    background-repeat: round;
}

.navbar-toggler-icon {
    width: auto;
    height: auto;
    padding-left: 15px;
}

.navbar-custom {
    padding-top: 0;
    padding-bottom: 0;
}

.navbar-padding {
    padding: 8px 16px;
}

.nav-link {
    color: var(--link-color);
}

/* =========================
   Card Text
   ========================= */
.card-text {
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Number of lines to show */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    height: 4.5em; /* Adjust based on line height and number of lines */
}

/* =========================
   Sign-In and Sign-Up Forms
   ========================= */
.signin-textboxes, .signup-textboxes {
    margin-bottom: 20px;
}

.signin-textbox-group, .signup-textbox-group {
    margin-top: 30px;
}

.signin-card, .signup-card {
    width: max-content;
    margin: 75px auto;
    border: none;
    position: relative;
    top: 75px;
}

.signin-card-body, .signup-card-body {
    margin: auto;
}

.signin-button, .signup-button {
    font-size: 16px;
    border-radius: 28px;
    margin: auto;
    width: 250px;
}

.forgot-password-link {
    text-decoration: none;
}

.forgot-password-div {
    position: relative;
    top: -15px;
}

/* =========================
   Account/Login Links
   ========================= */
.join-now-link, .sign-in-link {
    text-decoration: none;
}

.join-now-div, .sign-in-div {
    display: flex;
    justify-content: center;
    padding-top: 10px;
}

/* =========================
   Validation Text Components
   ========================= */
.signin-validation-text {
    position: relative;
    top: -18px;
    left: 5px;
    max-width: 250px;
    display: block;
    margin-bottom: 20px;
}

.signup-validation-text {
    max-width: 250px;
    display: block;
    margin-bottom: 20px;
}

    .signup-validation-text ul {
        list-style-type: lower-greek;
        margin-bottom: 20px;
    }

/* =========================
   Input and Cards Styling
   ========================= */
.page-input-card {
    max-width: 720px;
    margin: auto;
    border: none;
    box-shadow: rgba(0, 0, 0, 0.1) 0 0 5px, rgba(0, 0, 0, 0.1) 0 0 1px;
}

.page-input-box {
    max-width: initial;
}

.input-text-name {
    min-width: 145px;
}

.page-input-row {
    padding-left: 15px;
    padding-right: 15px;
    justify-content: center;
}

/* =========================
   Buttons
   ========================= */
.page-report-button {
    border-radius: 28px;
    margin: auto;
    width: max-content;
}

.page-button-transform {
    transform: scale(0.81);
    transform-origin: top left;
}

.btn-warm {
    background-color: var(--warm-primary);
    border-color: var(--warm-primary);
    color: var(--warm-white);
}

    .btn-warm:active,
    .btn-warm:focus,
    .btn-warm:hover {
        background-color: transparent;
        border-color: var(--warm-primary);
        color: var(--warm-primary);
    }

    .btn-warm:hover {
        background-image: none;
    }

/* Light Variant */
.btn-warm_light {
    background-color: transparent;
    color: var(--warm-primary);
}

    .btn-warm_light:active,
    .btn-warm_light:focus,
    .btn-warm_light:hover {
        background-color: var(--warm-primary);
        color: var(--warm-white);
    }

/* Transparent Variant */
.btn-warm_transparent {
    background-color: var(--warm-lighter);
    border-color: var(--warm-primary);
    color: var(--warm-primary);
}

    .btn-warm_transparent:active,
    .btn-warm_transparent:focus,
    .btn-warm_transparent:hover {
        background-color: var(--warm-light);
        border-color: var(--warm-primary);
        color: var(--warm-primary);
    }

/* Transparent Alt Variant */
.btn-warm_transparent_alt {
    background-color: transparent;
    border-color: var(--warm-white);
    color: var(--warm-white);
}

    .btn-warm_transparent_alt:active,
    .btn-warm_transparent_alt:focus,
    .btn-warm_transparent_alt:hover {
        background-color: transparent;
        border-color: var(--warm-white);
        color: var(--warm-white);
    }

/* Transparent White Variant */
.btn-warm_transparent_white {
    background-color: transparent;
    border: 2px solid var(--warm-white);
    color: var(--warm-white);
}

    .btn-warm_transparent_white:active,
    .btn-warm_transparent_white:focus,
    .btn-warm_transparent_white:hover {
        background-color: var(--warm-white);
        border-color: var(--warm-white);
        color: var(--warm-primary);
    }

/* Translucent Variant */
.btn-warm_transluscent {
    background-color: transparent;
    border-color: var(--warm-primary);
    color: var(--warm-primary);
}

    .btn-warm_transluscent:active,
    .btn-warm_transluscent:focus,
    .btn-warm_transluscent:hover {
        background-image: linear-gradient(310deg, var(--gradient-start), var(--gradient-end));
        color: var(--warm-white);
    }

/* =========================
   Text and Background Colors
   ========================= */

/* Text Colors */
.text-warm {
    color: var(--warm-primary) !important;
}

.text-red {
    color: var(--warm-red) !important;
}

.text-warm_black {
    color: var(--warm-black);
}

.text-warm_light {
    color: var(--warm-light);
}

/* Background Colors */
.bg-warm {
    background-color: var(--warm-primary);
}

.bg-warm_light {
    background-color: var(--warm-lighter);
}

/* Border Colors */
.border-color-warm {
    border-color: var(--warm-primary) !important;
}

.border-color-warm_light {
    border-color: var(--warm-light) !important;
}

/* =========================
   Navigation Pills
   ========================= */
.nav-pills .nav-link {
    color: var(--primary);
}

    .nav-pills .nav-link.active {
        background-color: var(--primary);
        border-radius: 0;
    }

/* =========================
   Validation Summary
   ========================= */
.validation-summary-errors {
    /*max-width: min-content;*/
    color: var(--primary) !important;
}

/* =========================
   Profile Images
   ========================= */
.circular-image, .circular-image-mini {
    border-radius: 50%;
    object-fit: cover;
    border-width: 2px;
    border-style: solid;
    border-color: var(--primary);
}

.circular-image {
    width: 200px;
    height: 200px;
}

.circular-image-mini {
    width: 36px;
    height: 36px;
    position: relative;
    top: 2px;
}

/* =========================
   Control Panel Cards
   ========================= */
.control-panel-card {
    margin: 2.5px 0 15px;
    transition: transform 0.2s;
    min-width: 16.5rem;
    border-top-width: 1px;
    border-top-style: solid;
    border-top-color: var(--primary-light);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

    .control-panel-card:hover {
        transform: scale(1.05);
    }

    .control-panel-card .card-header {
        border-bottom: none;
        display: flex;
        align-items: center;
        background-color: transparent;
    }

    .control-panel-card .card-title {
        margin: 0.25rem 0 0;
    }

    .control-panel-card .icon {
        margin-right: 10px;
        border-width: 1px;
        border-style: solid;
        color: var(--primary);
        border-color: var(--primary);
    }

    .control-panel-card .card-footer {
        border-top: none;
        text-align: left;
        background-color: transparent;
    }

    .control-panel-card .manage-link {
        text-decoration: none;
        color: var(--primary);
    }

        .control-panel-card .manage-link:hover {
            text-decoration: underline;
        }

/* =========================
    8. DATA TABLES
    ========================= */

/* DataTables Styling */
table.dataTable.table-striped > tbody > tr.odd > * {
    box-shadow: inset 0 0 0 9999px var(--table-stripe-color) !important;
}

/* Hide specific columns in the PublicWifi and LastMile Sites tables */
.hide-column,
td.hide-column,
th.hide-column,
#publicWifi-sitesTable td:nth-child(2),
#publicWifi-sitesTable td:nth-child(3),
#publicWifi-sitesTable td:nth-child(4),
#publicWifi-sitesTable td:nth-child(5),  /* Add this line to hide Status column */
#lastMile-sitesTable td:nth-child(2),
#lastMile-sitesTable td:nth-child(3),
#lastMile-sitesTable td:nth-child(4),
#lastMile-sitesTable td:nth-child(5) {   /* Add this line to hide Status column */
    display: none !important;
}

/* Set font size for Site Name, Region, County, Sub County, and Status columns */
#lastMile-sitesTable tbody td:nth-child(1),
#lastMile-sitesTable tbody td:nth-child(2),
#lastMile-sitesTable tbody td:nth-child(3),
#lastMile-sitesTable tbody td:nth-child(4),
#lastMile-sitesTable tbody td:nth-child(5),  /* Add Status column */
#publicWifi-sitesTable tbody td:nth-child(1),
#publicWifi-sitesTable tbody td:nth-child(2),
#publicWifi-sitesTable tbody td:nth-child(3),
#publicWifi-sitesTable tbody td:nth-child(4),
#publicWifi-sitesTable tbody td:nth-child(5) {  /* Add Status column */
    font-size: 13px !important;
}

/* Set font size for table headers of these columns */
#lastMile-sitesTable thead th:nth-child(1),
#lastMile-sitesTable thead th:nth-child(2),
#lastMile-sitesTable thead th:nth-child(3),
#lastMile-sitesTable thead th:nth-child(4),
#lastMile-sitesTable thead th:nth-child(5),  /* Add Status column */
#publicWifi-sitesTable thead th:nth-child(1),
#publicWifi-sitesTable thead th:nth-child(2),
#publicWifi-sitesTable thead th:nth-child(3),
#publicWifi-sitesTable thead th:nth-child(4),
#publicWifi-sitesTable thead th:nth-child(5) {  /* Add Status column */
    font-size: 13px !important;
}

/* =========================
   9. MEDIA QUERIES
   ========================= */
@media screen and (min-width: 992px) {
    .navbar-padding {
        padding: 8px 125px 8px 125px;
    }
}

@media (max-width: 576px) {
    .margin-top-mobile {
        margin-top: 0.5rem;
    }

    .margin-bottom-mobile {
        margin-bottom: 0.5rem;
    }

    .margin-top-mobile-1 {
        margin-top: 1rem;
    }

    .margin-bottom-mobile-1 {
        margin-bottom: 1rem;
    }
}

/* =========================
   Navigation Tabs - Updated Styling
   ========================= */
.dashboard-nav-tabs .nav-link {
    color: var(--nav-text) !important;
    transition: all 0.2s ease;
    border: none;
    font-weight: 500;
}

.dashboard-nav-tabs .nav-link:hover {
    background-color: rgba(13, 110, 253, 0.1);
    color: var(--warm-primary) !important;
}

.dashboard-nav-tabs .nav-link.active {
    color: #fff !important; /* White text for better contrast */
    background-color: var(--warm-primary) !important; /* Use your primary blue color */
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-weight: 600;
}

/* Mobile dropdown styling to match tab appearance */
#mobileNavSelect {
    border-color: var(--warm-primary);
}

#mobileNavSelect option:checked {
    background-color: var(--warm-primary);
    color: #fff;
}

/* =========================
   10. ANIMATION DEFINITIONS
   ========================= */
@keyframes fadeIn {
    /* Initial State */
    0% {
        --initial-opacity: 0;
        --initial-offset: -50px;
        opacity: var(--initial-opacity);
        transform: translateX(var(--initial-offset));
    }
    /* Final State */
    100% {
        --final-opacity: 1;
        --final-offset: 0;
        opacity: var(--final-opacity);
        transform: translateX(var(--final-offset));
    }
}

/* =========================
   11. DASHBOARD
   ========================= */
/* =========================
   Dashboard Variables
   ========================= */
:root {
    --header-height: 56px;
    --content-padding: 4rem;
    --card-stats-height: 190px;
    --card-stats-width: 200px;
    --table-max-height: 300px;
    --scrollbar-width: 10px;
    --border-radius: 8px;
}

/* =========================
   Layout Components
   ========================= */
.content-wrapper {
    min-height: calc(100vh - var(--header-height));
    padding-top: var(--content-padding);
    overflow-x: hidden;
    background: transparent;
}

.card.stats-card {
    height: var(--card-stats-height);
    width: var(--card-stats-width);
}

/* =========================
   Map Components
   ========================= */
#map {
    height: 100%;
}

    #map .leaflet-popup-close-button {
        display: none;
    }

#EARTTDFP-map {
    height: 100%; /* Make it responsive to the parent div's width */
}

    #EARTTDFP-map .leaflet-popup-close-button {
        display: none;
    }

#DSH-map {
    height: 100%; /* Make it responsive to the parent div's width */
}

    #DSH-map .leaflet-popup-close-button {
        display: none;
    }

#OGNSites-map {
    height: 100%; /* Make it responsive to the parent div's width */
}

    #OGNSites-map .leaflet-popup-close-button {
        display: none;
    }

.leaflet-control-zoom.leaflet-bar.leaflet-control {
    box-shadow: 0 1px 4px var(--shadow-color);
    border: none;
}

.leaflet-touch .leaflet-bar a:first-child {
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
}

.leaflet-touch .leaflet-bar a:last-child {
    border-bottom-left-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
}

/* Map Control Styling */
.leaflet-control-zoom a,
.reset-view-button {
    /* Consistent background and styling */
    background-color: #fff !important;
    color: #333 !important;
    font-size: 16px !important;
    width: 30px !important;
    height: 30px !important;
    line-height: 30px !important;
    text-align: center !important;
    border-radius: 4px !important;
    box-shadow: 0 1px 5px rgba(0,0,0,0.2) !important;
    cursor: pointer !important;
    border: 1px solid rgba(0,0,0,0.2) !important;
    
    /* Flex layout to center icons */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0 !important;
}

/* Add space between zoom buttons */
.leaflet-control-zoom-in {
    margin-bottom: 5px !important;
}

/* Fix for the reset button spacing to maintain alignment */
.leaflet-control-container .leaflet-top .leaflet-bar:not(.leaflet-control-zoom) {
    margin-top: 15px !important;
}

/* Clean up borders */
.leaflet-bar {
    border: none !important;
    box-shadow: none !important;
}

/* Vertical alignment and spacing */
.leaflet-control {
    margin-top: 0 !important;
    margin-bottom: 5px !important;
}

/* Same top position for reset control */
.leaflet-control-container .leaflet-top .leaflet-bar:not(.leaflet-control-zoom) {
    margin-top: 10px !important; /* Match zoom control's top margin */
}

/* Hover effects */
.leaflet-control-zoom a:hover,
.reset-view-button:hover {
    background-color: #f4f4f4 !important;
}

/* Icon sizing */
.leaflet-control-zoom a i,
.reset-view-button i {
    font-size: 14px !important;
    line-height: 1 !important;
}

/* =========================
   Table Scrollbar Styling
   ========================= */
#scrollableTableContainer {
    max-height: var(--table-max-height);
    min-height: var(--table-max-height);
    overflow-y: scroll;
    scrollbar-color: var(--scrollbar-color) var(--scrollbar-track) !important;
}

    #scrollableTableContainer::-webkit-scrollbar {
        width: var(--scrollbar-width);
    }

    #scrollableTableContainer::-webkit-scrollbar-thumb {
        background-color: var(--scrollbar-color);
        border-radius: calc(var(--scrollbar-width) / 2);
    }

        #scrollableTableContainer::-webkit-scrollbar-thumb:hover {
            background-color: var(--scrollbar-hover);
        }

/* =========================
   Navigation Tabs
   ========================= */
.dashboard-nav-tabs .nav-link {
    color: var(--nav-text) !important;
}

.dashboard-nav-tabs .active {
    color: var(--nav-active) !important;
}

/* =========================
   Map Container Settings
   ========================= */
.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {
    -ms-touch-action: none;
    touch-action: none;
}

.leaflet-container {
    overflow: hidden;
}

.leaflet-grab {
    cursor: -webkit-grab;
    cursor: -moz-grab;
    cursor: grab;
}

/* =========================
   11. LOADERS AND SPINNERS
   ========================= */

/* =========================
   Loaders and Spinners
   ========================= */
:root {
    --loader-primary: #0d6efd;
    --loader-secondary: #ccc;
    --loader-size: 70px;
    --loader-primary-dot: 16px;
    --loader-secondary-dot: 12px;
    --loader-circle: 8px;
    --loader-offset: 16px;
    --loader-animation-duration: 1s;
    --loader-circle-duration: 0.5s;
}

.loader {
    width: var(--loader-size);
    aspect-ratio: 1;
    background: radial-gradient(farthest-side, var(--loader-primary) 90%, transparent 0) center/var(--loader-primary-dot) var(--loader-primary-dot), radial-gradient(farthest-side, var(--loader-primary) 90%, transparent 0) bottom/var(--loader-secondary-dot) var(--loader-secondary-dot);
    background-repeat: no-repeat;
    animation: loader-spin var(--loader-animation-duration) infinite linear;
    position: relative;
    top: 42%;
}

    .loader::before {
        content: "";
        position: absolute;
        width: var(--loader-circle);
        aspect-ratio: 1;
        inset: auto 0 var(--loader-offset);
        margin: auto;
        background: var(--loader-secondary);
        border-radius: 50%;
        transform-origin: 50% calc(100% + 10px);
        animation: inherit;
        animation-duration: var(--loader-circle-duration);
    }

@keyframes loader-spin {
    100% {
        transform: rotate(1turn);
    }
}

/* Responsive Display */
@media (max-width: 991.98px) {
    .non-mobile {
        display: none;
    }

    .mobile-only {
        display: block;
    }
}

@media (min-width: 992px) {
    .mobile-only {
        display: none;
    }
}

@media (min-width: 599px) {
    .signin-custom-card,
    .signup-custom-card {
        width: 400px;
    }
}

/* =========================
   12. SIDEBAR
   ========================= */

/* =========================
   Sidebar Variables
   ========================= */
:root {
    /* Layout */
    --sidebar-width: 285px;
    --sidebar-hidden-offset: -300px;
    --sidebar-top-offset: 62px;
    --sidebar-padding: 20px;
    --sidebar-z-index: 996;
    --sidebar-transition: 0.3s;
    /* Typography */
    --sidebar-font-size: 15px;
    --sidebar-heading-size: 11px;
    --sidebar-icon-size: 16px;
    --sidebar-content-size: 14px;
}

/* =========================
   Side Navigation Links
   ========================= */
.sidemenu-link {
    position: relative;
    top: -2px;
    color: var(--sidebar-link-color);
    text-decoration: none;
}

    .sidemenu-link:hover {
        color: var(--sidebar-link-color);
        text-decoration: none;
    }

/* =========================
   Sidebar Toggle Button
   ========================= */
.toggle-sidebar {
    margin-bottom: 0 !important;
    border: none !important;
}

    .toggle-sidebar:hover,
    .toggle-sidebar:hover:focus,
    .toggle-sidebar:hover:active {
        border: none !important;
    }

.toggle-sidebar-btn {
    font-size: 42px;
}

/* =========================
   Side Navigation Links
   ========================= */
.sidemenu-link {
    position: relative;
    top: -2px;
}

/* =========================
   Sidebar Base
   ========================= */
.sidebar {
    position: fixed;
    top: var(--sidebar-top-offset);
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    z-index: var(--sidebar-z-index);
    transition: all var(--sidebar-transition);
    padding: var(--sidebar-padding);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--sidebar-scrollbar) transparent;
    box-shadow: 0 0 20px var(--sidebar-shadow);
    background-color: var(--sidebar-bg);
}

    /* Sidebar Scrollbar */
    .sidebar::-webkit-scrollbar {
        width: 5px;
        height: 8px;
        background-color: var(--sidebar-bg);
    }

    .sidebar::-webkit-scrollbar-thumb {
        background-color: var(--sidebar-scrollbar);
    }

/* =========================
   Sidebar Navigation
   ========================= */
.sidebar-nav {
    padding: 0;
    margin: 0;
    list-style: none;
}

    .sidebar-nav li {
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .sidebar-nav .nav-item {
        margin-bottom: 5px;
    }

    /* Navigation Heading */
    .sidebar-nav .nav-heading {
        font-size: var(--sidebar-heading-size);
        text-transform: uppercase;
        color: var(--sidebar-heading-color);
        font-weight: 600;
        margin: 10px 0 5px 15px;
    }

    /* Navigation Links */
    .sidebar-nav .nav-link {
        display: flex;
        align-items: center;
        font-size: var(--sidebar-font-size);
        font-weight: 600;
        color: var(--sidebar-link-color);
        transition: var(--sidebar-transition);
        background: var(--sidebar-link-bg);
        padding: 10px 15px;
        border-radius: 4px;
        font-family: var(--font-family-sans);
        font-weight: var(--font-weight-medium);
    }

        .sidebar-nav .nav-link i {
            font-size: var(--sidebar-icon-size);
            margin-right: 10px;
            color: var(--sidebar-link-color);
        }

        /* Collapsed State */
        .sidebar-nav .nav-link.collapsed {
            color: var(--sidebar-collapsed-color);
            background: var(--sidebar-bg);
        }

            .sidebar-nav .nav-link.collapsed i {
                color: var(--sidebar-collapsed-icon);
            }

        /* Hover States */
        .sidebar-nav .nav-link:hover {
            color: var(--sidebar-link-color);
            background: var(--sidebar-link-bg);
        }

            .sidebar-nav .nav-link:hover i {
                color: var(--sidebar-link-color);
            }

        /* Chevron Animation */
        .sidebar-nav .nav-link .bi-chevron-down {
            margin-right: 0;
            transition: transform 0.2s ease-in-out;
        }

        .sidebar-nav .nav-link:not(.collapsed) .bi-chevron-down {
            transform: rotate(180deg);
        }

    /* Navigation Content */
    .sidebar-nav .nav-content {
        padding: 5px 0 0 0;
        margin: 0;
        list-style: none;
    }

        .sidebar-nav .nav-content a {
            display: flex;
            align-items: center;
            font-size: var(--sidebar-content-size);
            font-weight: 600;
            color: var(--sidebar-collapsed-color);
            transition: var(--sidebar-transition);
            padding: 10px 0 10px 40px;
        }

            .sidebar-nav .nav-content a i {
                font-size: 6px;
                margin-right: 8px;
                line-height: 0;
                border-radius: 50%;
            }

            .sidebar-nav .nav-content a:hover,
            .sidebar-nav .nav-content a.active {
                color: var(--sidebar-link-color);
            }

                .sidebar-nav .nav-content a.active i {
                    background-color: var(--sidebar-link-color);
                }

/* =========================
   Responsive Behavior
   ========================= */
@media (max-width: 1199px) {
    .sidebar {
        left: var(--sidebar-hidden-offset);
    }

    .toggle-sidebar .sidebar {
        left: 0;
    }
}

@media (min-width: 1200px) {
    #main,
    #footer {
        margin-left: var(--sidebar-width);
    }

    .toggle-sidebar #main,
    .toggle-sidebar #footer {
        margin-left: 0;
    }

    .toggle-sidebar .sidebar {
        left: var(--sidebar-hidden-offset);
    }

    #main-content {
        margin-left: var(--sidebar-width);
        transition: margin-left var(--sidebar-transition);
    }

    .toggle-sidebar #main-content {
        margin-left: 0;
    }
}

/* =========================
   9. SIDEBAR STYLES
   ========================= */

/* Sidebar card styling */
#sidebar .card {
    border-left: 4px solid var(--bs-primary);
    transition: box-shadow 0.3s ease;
}

#sidebar .card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#sidebar .card .card-body {
    padding: 0.8rem 1rem;
}

/* Theme switch styling adjustments */
#sidebar .form-check-input {
    cursor: pointer;
}

/* Apply font family to common elements */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: var(--font-family-sans);
    letter-spacing: -0.01em; /* LinkedIn uses slightly tighter letter spacing for headings */
}

/* Button styles */
.btn {
    font-family: var(--font-family-sans);
    font-weight: var(--font-weight-semibold);
}

/* Form controls */
.form-control, 
.form-select,
.input-group-text {
    font-family: var(--font-family-sans);
}

/* Apply to specific components that might need font consistency */
.nav-link, 
.navbar-brand,
.dropdown-item,
.card-title,
.card-text {
    font-family: var(--font-family-sans);
}
