﻿/* =========================================
   Shared Base Styles (Typography, Layout)
========================================= */

/* Typography */
body {
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 200;
    color: #212529;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 400; /* Keep headings at regular or semi-bold for clarity */
}

p, span, div {
    font-weight: 300; /* Light for body text */
}

/* Text Size Utilities */
.ws-text-sm {
    font-size: 12px;
}

.ws-text-med {
    font-size: 14px; /* same as body */
}

.ws-text-lg {
    font-size: 18px;
}

.ws-text-orange {
    color: #ea5422;
}

.ws-link {
    color: #0b5ed7;
    text-decoration: none !important;
    cursor: pointer;
}
/* App switcher */
.ws-app-switcher .dropdown-item {
    font-size: 12px;
    padding: 0.5rem 1rem;
    transition: background-color 0.2s;
}

    .ws-app-switcher .dropdown-item:hover {
        background-color: #f5f5f5;
    }

    .ws-app-switcher .dropdown-item.active {
        background-color: #e9ecef !important; /* Light gray */
        color: #212529 !important; /* Dark text for readability */
        font-weight: 600;
    }

/* Auto-append a red asterisk to labels inside .required groups */
.required .form-label::after {
    content: " *";
    color: #dc3545; /* Bootstrap danger red */
}


/* Theme Colors */
:root {
    --ws-primary: #0d6efd;
    --ws-dark: #212529;
    --ws-light: #f8f9fa;
}

/* Buttons */
.btn-ws-primary {
    background-color: var(--ws-primary);
    color: white;
    border: none;
}

    .btn-ws-primary:hover {
        background-color: #0b5ed7;
    }

/* Layout */
.ws-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.ws-actions .ws-link + .ws-link::before {
    content: "•"; /* or "|" */
    margin: 0 .5rem;
    color: #adb5bd; /* muted */
}

.ws-main {
    margin-top: 20px;
    flex-grow: 1;
    min-height: calc(100vh - 60px - 80px); /* Adjust based on header/footer height */
}

/* Card */
.ws-card {
    background-color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.ws-card-sm {
    padding: 4px;
    padding-left: 8px;
    padding-right: 8px;
    font-size: 8pt;
}

.ws-card-sm-title {
    font-size: 10pt;
    font-weight: 600;
    color: #000;
}

#notes p {
    white-space: pre-wrap;
}

.ws-ical-panel {
    background: #f0f7ff; /* soft blue – stands out without yelling */
    border: 1px dashed #b6d4fe; /* subtle affordance */
    border-radius: 12px;
}

/* =========================================
    Upload Styles
========================================= */
.ws-upload-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: #ffffff;
}

#uploadStatus span {
    font-weight: 500;
    font-size: 1.1rem;
}

/* Clean input spacing */
.custom-file-wrapper input[type="file"],
.file-input-modern {
    padding: 0.6rem 1rem;
    height: auto;
    font-size: 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
}

    /* Style the upload button inside the file input */
    .file-input-modern::-webkit-file-upload-button,
    .file-input-modern::file-selector-button {
        padding: 0.5rem 1.2rem;
        font-size: 0.95rem;
        background-color: #0d6efd;
        color: white;
        border: none;
        border-radius: 0.4rem 0 0 0.4rem;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

        .file-input-modern::-webkit-file-upload-button:hover,
        .file-input-modern::file-selector-button:hover {
            background-color: #0b5ed7;
        }

#dropZone {
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

    #dropZone:hover {
        background-color: #f8f9fa;
    }

    #dropZone input[type="file"] {
        position: absolute;
        left: 0;
        top: 0;
        opacity: 0;
        height: 100%;
        width: 100%;
        cursor: pointer;
    }

/* =========================================
   Header
========================================= */
.ws-header {
    position: fixed;
    top: 0;
    left: 220px; /* Match sidebar width */
    width: calc(100% - 220px); /* Subtract sidebar from full width */
    height: 50px;
    background-color: white;
    z-index: 1039;
    border-bottom: 1px solid #ccc;
    display: flex;
    align-items: center;
    padding: 0 1rem;
}

/* Maintenance banner (fixed under the header) */
.ws-maint-banner {
    position: fixed;
    top: 50px; /* header height */
    left: 220px; /* match sidebar width */
    width: calc(100% - 220px); /* match header width calc */
    z-index: 1038; /* below header(1039), above content */
    padding: .5rem .75rem;
    background: #fff3cd; /* Bootstrap warning bg */
    color: #664d03; /* Bootstrap warning text */
    border-bottom: 1px solid #f1d19a;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.ws-link-public {
    border-bottom: solid 4px #fff;
}

    .ws-link-public:hover {
        border-bottom: solid 4px #c6eed1;
    }

    .ws-link-public.active {
        border-bottom: solid 4px #0b7e2a;
    }

/* =========================================
   Sidebar (Desktop + Mobile)
========================================= */
.ws-sidebar {
    width: 220px;
    background-color: #2f3e4e;
    color: white;
    height: 100vh;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 1040;
    transition: transform 0.3s ease-in-out;
    padding: 0;
    border-right: solid 1px #90beee;
    
}

.ws-sidebar-footer {
    margin-top: auto;
}

.ws-sidebar-top {
    height: 100px;
    background-color: #b4d0ee; /*#b4d0ee*/
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}

.ws-sidebar-logo {
    height: 75px; /* stays visually balanced inside the 50px bar */
    object-fit: contain;
}

.ws-sidebar-logo-workmate {
    height: 100px;
    object-fit: contain;
}

/* Optional: wrap text in a second section for spacing below logo */
.ws-sidebar-header-wrapper {
    background-color: #98bee6; /* or #f8f9fa, etc., depending on your design #9fc3e9*/
    text-align: center;
    padding: 8px 0;
}

    .ws-sidebar-header-wrapper h5 {
        color: #ff8c00;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.6); /* subtle dark shadow */
    }

.ws-sidebar-header {
    color: #ff6a00;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0;
    /* white outline
    text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff; */
    /* black outline
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;*/
    /* light orange outline 
    text-shadow: -1px -1px 0 #ffd9b3, 1px -1px 0 #ffd9b3, -1px 1px 0 #ffd9b3, 1px 1px 0 #ffd9b3;*/
}




.ws-sidebar .nav-link {
    color: #cbd5e1;
    padding: 0.75rem 1rem;
    text-decoration: none;
    border-radius: 0.375rem;
    display: block;
}

    .ws-sidebar .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    .ws-sidebar .nav-link.active {
        background-color: #5b728a;
        color: white !important;
        font-weight: 600;
    }

.ws-sidebar-section {
    font-size: 0.75rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 1rem 1rem 0.25rem;
}

/* Collapse Animation (Desktop) */
.ws-sidebar.ws-collapsed {
    transform: translateX(-220px);
}


/* =========================================
   Header Icons and Client Info
========================================= */
.ws-client-name {
    font-weight: 600;
    font-size: 1.4rem;
    color: #333;
}

.ws-client-badge {
    background-color: #0d6efd;
    color: white;
    font-weight: 600;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.ws-header-icon {
    color: #333;
    font-size: 1.1rem;
    text-decoration: none;
    transition: color 0.2s;
}

    .ws-header-icon:hover {
        color: var(--ws-primary);
    }

/* =========================================
   Footer
========================================= */
.ws-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    font-size: 0.9rem;
    
}

.ws-footer-logo {
    height: 30px;
    width: auto;
}

.ws-footer-link {
    color: #0d6efd; /* Bootstrap primary blue */
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

    .ws-footer-link:hover {
        color: #0a58ca; /* Darker blue on hover */
        text-decoration: underline;
    }

/* =========================================
    Screen
========================================= */
.ws-main-screen {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1101;
    transition: opacity 0.3s ease;
    display: none;
}

/* =========================================
    Profile panel
========================================= */
/* Ensure .ws-profile-panel is hidden by default and positioned correctly */
.ws-profile-panel {
    position: absolute;
    top: 60px;
    right: 20px;
    width: 300px;
    max-width: 90vw;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 20px 15px;
    display: none;
    z-index: 1102;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    text-align: center;
}

    /* Show panel when toggled */
    .ws-profile-panel.show {
        display: block;
    }

.ws-profile-details {
    padding-bottom: 8px;
}

/* Initials avatar */
.ws-profile-initials {
    width: 60px;
    height: 60px;
    margin: 0 auto 10px auto;
    border-radius: 50%;
    background-color: #007bff; /* Modern blue */
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ws-profile-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.ws-profile-email {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

/* Logout button spacing */
.ws-profile-panel a.btn {
    margin-top: 12px;
    background-color: #f4f4f4 !important;
    color: #000;
    border: solid 1px #ccc !important;
    font-size: 0.8em;
}

.ws-profile-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.5rem;
    font-weight: bold;
    color: #999;
    cursor: pointer;
}

    .ws-profile-close:hover {
        color: #333;
    }

.popup {
    background-color: #fff;
}

/* Header icon buttons */
.ws-icon-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #555;
    transition: color 0.2s;
}

    .ws-icon-btn:hover {
        color: #000;
    }

.ws-icon-btn-search {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    padding: 4px;
    cursor: pointer;
}

/* Remove Bootstrap shadow and border from dropdown */
.dropdown-menu {
    border: none !important;
    box-shadow: none !important;
    background: none;
    padding: 0 !important;
}

    /* Make the input look clean, single border */
    .dropdown-menu .form-control {
        border: 1px solid #ccc; /* single subtle border */
        border-radius: 6px;
        box-shadow: none !important;
    }


.ws-action-dropdown-menu {
    border-radius: 6px;
    border: solid 1px #ccc !important;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.1);
    background: #f4f4f4;
}

.ws-action-dropdown-item i {
    color: #6c757d;
    cursor: pointer !important;
}

.ws-input-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 1.2rem;
    pointer-events: none;
}

.ws-input-group-text {
    background-color: #f8f9fa; /* light grey background */
    border-radius: 0.375rem 0 0 0.375rem; /* match Bootstrap's default */
}

.form-select {
    min-height: 45px;
    font-size: 1.0em
}

.form-control {
    border-radius: 0 0.375rem 0.375rem 0; /* rounded on right side only */
    min-height: 45px;
    font-size: 1.0em
}

    /* Input padding so text doesn't overlap icon */
    .form-control.ps-5 {
        padding-left: 0.5rem !important;
        font-size: 0.9em;
    }


.form-check-input {
    width: 1.2em;
    height: 1.2em;
    accent-color: #495057; /* Sets check color when checked */
    cursor: pointer;
    border: 1px solid #495057; /* Sets border color when unchecked */
}

.form-check-label {
    margin-left: 0; /* Adjust to preferred spacing */
    padding-top: 1px;
}

.btn-outline-primary:hover {
    color: #0d6efd !important; /* Keep text primary color on hover */
    background-color: rgba(13, 110, 253, 0.1) !important; /* Light transparent blue background */
    border-color: #0d6efd !important; /* Keep border primary */
}

.ws-rightside-panel {
    position: fixed;
    top: 0;
    right: -50%; /* hidden off-screen to the right using percentage width */
    width: 50%;
    max-width: 600px; /* optional maximum width */
    min-width: 400px; /* optional minimum width */
    height: 100vh; /* full viewport height */
    background-color: white;
    border-left: 1px solid #ddd;
    z-index: 1102;
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
    text-align: left;
    padding: 20px;
    transition: none; /* ensure animate controls movement */
}


    /* Show panel when toggled */
    .ws-rightside-panel.show {
        transform: translateX(0);
    }

.ws-rightside-panel-content {
    padding: 20px 15px;
}

.ws-rightside-top {
    position: fixed;
    top: 0;
    z-index: 2001;
    width: 100%;
    background-color: #fff;
}
.ws-rightside-header {
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.ws-rightside-section {
    width: 100%;
    text-align: left;
}

.ws-rightside-title {
    font-weight: 600;
}

.ws-rightside-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.8rem;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    line-height: 1;
    margin-top: 8px;
}

    .ws-rightside-close:hover {
        color: #333;
    }


.ws-settings-section {
    width: 100%;
    text-align: left;
    padding: 1rem 0;
}

.ws-settings-title {
    font-weight: 600;
    font-size: 1.2em;
}

.ws-settings-item {
    color: #444;
    text-decoration: none;
    font-size: 1.0em;
    padding: 6px;
    transition: color 0.2s ease;
}

    .ws-settings-item:hover {
        color: #0d6efd;
    }

.ws-settings-footer {
    background-color: #f8f9fa; /* Subtle gray */
    padding: 15px;
    border-top: 1px solid #e0e0e0;
    border-radius: 0 0 12px 12px;
}

.ws-settings-btn {
    min-width: 140px;
    padding: 8px 16px;
    font-size: 0.8em;
}

.ws-icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1rem;
    margin-right: 10px;
    flex-shrink: 0;
}

.ws-input-pointer {
    cursor: pointer;
}

.ws2-settings-section {
    padding: 1rem 0;
}

.ws2-settings-item {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: background 0.2s ease;
}

    .ws2-settings-item:hover {
        background-color: #f8f9fa;
        cursor: pointer;
    }

.ws2-settings-title {
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.ws2-icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1rem;
}


/* =========================================
Help
========================================= */

#helpTopicsList,
#helpTopicDetail {
    position: absolute;
    top: 60px; /* adjust based on your header height within the panel */
    left: 0;
    width: 100%;
    height: calc(100% - 60px); /* subtract header height */
    background-color: #fff; /* match panel background */
    overflow-y: auto;
    padding: 20px;
}

#helpTopicDetail {
    display: none;
}

.ws-help-content h4 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.ws-help-content h5 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-top: 20px;
    margin-bottom: 8px;
}

.ws-help-content p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 12px;
}

.ws-help-list {
    list-style: none;
    padding-left: 0;
}

    .ws-help-list li {
        position: relative;
        padding-left: 25px;
        margin-bottom: 10px;
        font-size: 1rem;
    }

        .ws-help-list li::before {
            content: "✔";
            position: absolute;
            left: 0;
            color: #28a745; /* Bootstrap success green */
            font-size: 1rem;
        }

.ws-release-version {
    border-left: 3px solid #007bff;
    padding-left: 15px;
    margin-bottom: 30px; /* increased spacing between versions */
    position: relative;
}

    .ws-release-version::after {
        content: "";
        display: block;
        height: 1px;
        background-color: #e0e0e0;
        margin-top: 20px; /* spacing above the line */
        margin-left: -15px; /* align with the left border */
        width: calc(100% + 15px);
    }

    .ws-release-version:last-child::after {
        display: none; /* no line after last version */
    }

.ws-release-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

    .ws-release-header h5 {
        margin: 0;
        font-size: 1.1rem;
        font-weight: 600;
    }

.ws-release-date {
    font-size: 0.9rem;
    color: #666;
}

.ws-release-section {
    margin-bottom: 10px;
}

.ws-release-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 5px;
}

.bg-success {
    background-color: #28a745;
}

.bg-danger {
    background-color: #dc3545;
}

.bg-primary {
    background-color: #007bff;
}

.ws-release-section ul {
    padding-left: 20px;
    margin-bottom: 10px;
}

.ws-release-section li {
    margin-bottom: 5px;
}


.ws-back-button {
    display: inline-flex;
    align-items: center;
    background-color: #f8f9fa; /* light gray background */
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 1rem;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

    .ws-back-button:hover {
        background-color: #e2e6ea; /* slightly darker on hover */
        border-color: #ccc;
        text-decoration: none;
        color: #000;
    }

    .ws-back-button i {
        font-size: 1.2rem;
    }

.ws-back-to-top-link {
    display: inline-block;
    font-size: 0.95rem;
    color: #007bff;
    text-decoration: none;
}

    .ws-back-to-top-link:hover {
        text-decoration: underline;
        color: #0056b3;
    }

.kpi-card-equal {
    min-height: 100px; /* adjust as needed */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
}

/* =========================================
Authentication
========================================= */

ws-auth-bg {
    background-color: #fff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    margin-top: 0px;
}

.ws-auth-wrapper {
    background-color: #fff;
    padding: 40px 30px;
    width: 100%;
    max-width: 400px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
}

    .ws-auth-wrapper h2 {
        font-size: 1.75rem;
        font-weight: 600;
        margin-bottom: 25px;
        color: #1e40af;
    }

    .ws-auth-wrapper .form-label {
        font-weight: 500;
        color: #333;
        text-align: left;
        display: block;
    }

    .ws-auth-wrapper .form-control {
        border-radius: 8px;
        padding: 10px;
    }

    .ws-auth-wrapper .btn-primary {
        background-color: #3B82F6;
        border-color: #3B82F6;
        font-weight: 600;
        padding: 10px;
        border-radius: 8px;
        transition: background-color 0.2s ease-in-out;
    }

        .ws-auth-wrapper .btn-primary:hover {
            background-color: #2563EB;
            border-color: #2563EB;
        }

    .ws-auth-wrapper .text-danger {
        font-size: 0.9rem;
        margin-top: 4px;
    }

.ws-forgot-link {
    font-size: 0.9rem;
    color: #0d6efd; /* Bootstrap primary */
    text-decoration: none;
    transition: color 0.2s ease, border-bottom 0.2s ease;
    border-bottom: 1px solid transparent;
}

    .ws-forgot-link:hover {
        color: #dc3545; /* Bootstrap's danger red */
    }

.fc-event {
    cursor: pointer;
}

/* Center and scale reCAPTCHA */
.recaptcha-container {
    display: flex;
    justify-content: center;
}

    .recaptcha-container .g-recaptcha {
        transform: scale(1.11); /* Adjust scale to match input width */
        transform-origin: center; /* Keep it centered after scaling */
    }

/* =========================================
Loading
========================================= */
#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
}

/* Cookie banner styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #343a40; /* dark background for modern look */
    color: #fff;
    padding: 10px 20px;
    display: none; /* hidden by default, shown via JS if not accepted */
    z-index: 1000;
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.cookie-link {
    color: #17a2b8; /* Bootstrap info color for link */
    text-decoration: underline;
}

.cookie-btn {
    background: #17a2b8;
    border: none;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}

    .cookie-btn:hover {
        background: #138496;
    }


/* Calendar container styling */
#calendar {
    background: #fff;
    border-radius: 8px;
    padding: 10px;
    min-height: calc(100vh - 200px);
    width: 100%;
    overflow-x: auto;
}

    /* Remove ALL borders from FullCalendar container */
    #calendar .fc-scrollgrid,
    #calendar table,
    #calendar .fc-scrollgrid-section,
    #calendar .fc-scrollgrid-section > td {
        border: none !important;
        box-shadow: none !important;
    }


/* General font size for readability */
.fc {
    font-size: 0.95rem;
}

/* Event styling: subtle rounded corners and padding */
.fc-event {
    border-radius: 4px;
    padding: 2px 4px;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

    /* Hover effect for events */
    .fc-event:hover {
        transform: scale(1.02);
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
        z-index: 10;
    }

/* Header toolbar styling */
.fc-toolbar-title {
    font-weight: 600;
    font-size: 1.25rem;
}

.fc-button {
    border-radius: 4px !important;
}

/* Adjust buttons to match Bootstrap feel */
.fc-button-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

    .fc-button-primary:hover {
        background-color: #0b5ed7;
        border-color: #0a58ca;
    }

.fc-event {
    border: none;
}

.fc-event-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fc-daygrid-day-number {
    text-decoration: none !important;
    color: #333;
}

.fc-col-header-cell-cushion {
    text-decoration: none !important;
    color: #333 !important; /* Change to your preferred color */
}

/* Add space between prev/next arrows and the view buttons */
.fc .fc-toolbar-chunk {
    display: flex;
    align-items: center;
}

    /* Specifically target the left and right chunks to add margin */
    .fc .fc-toolbar-chunk:first-child {
        margin-right: 10px; /* Adjust as needed */
    }

    .fc .fc-toolbar-chunk:last-child {
        margin-left: 10px; /* Adjust as needed */
    }

/* Add margin between individual FullCalendar header buttons */
.fc .fc-button {
    margin-right: 5px; /* Adjust spacing as needed */
}

/* Optional: Remove margin on the last button in a group */
.fc .fc-button-group .fc-button:last-child {
    margin-right: 0;
}

/* Tasks sidebar distinctive background */
.tasks-panel {
    background-color: #fff; /* brand-tinted light blue */
    padding: 15px;
    border-radius: 8px;
    margin-top: 60px;
}

    .tasks-panel h5 {
        color: #0d6efd; /* brand primary */
        font-weight: 600;
        margin-bottom: 15px;
        border-bottom: solid 1px #ccc;
        text-align: left;
        padding-bottom: 3px;
    }

    .tasks-panel .list-group-item {
        background: transparent;
        border: none;
        padding-left: 0;
        padding-right: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .tasks-panel .task-icon {
        margin-right: 10px;
        color: #0d6efd;
    }

    .tasks-panel .badge {
        font-size: 0.75rem;
        padding: 4px 6px;
    }

/* =========================================
    Table
===========================================*/
.table th {
    font-weight: 600
}

.table .badge {
    font-size: 0.75rem;
    padding: 0.35em 0.6em;
    border-radius: 0.35rem;
    white-space: nowrap;
    width: 55px;
}

.table-wrap-text {
    white-space: normal;
    word-wrap: break-word;
    max-width: 250px;
}

/* =========================================
    Buttons
===========================================*/
.btn-group .btn {
    min-width: 80px; /* Consistent tap area */

}

    .btn-group .btn.active,
    .btn-group .btn:active {
        background-color: #0d6efd; /* Bootstrap primary */
        color: #fff;
        border-color: #0d6efd;
    }

    .btn-group .btn:hover {
        background-color: #e7f1ff; /* Light hover for outline buttons */
    }

    .btn-group .btn:focus {
        box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.25);
    }

/* Base font size for labels */
.btn-check {
    font-size: 9pt;
    
}
/* Custom active state only for status buttons */
.status-toggle.active {
    
    background-color: #343a40 !important; /* Dark gray */
    color: #fff !important;
    border-color: #343a40 !important;
}

/* Custom hover for status buttons */
.status-toggle:hover {
    background-color: #e9ecef !important; /* Light gray */
    color: #000 !important;
    border-color: #808080 !important;
}

/* Optional: transition */
.status-toggle {
    font-size: 9pt;
    transition: background-color 0.2s ease, color 0.2s ease;
}


/* =========================================
    Leads
===========================================*/
.lead-new {
    background-color: #f00;
    border: solid 1px #f00;
    color: #fff;
}

.lead-active {
    border: solid 1px #ffd800;
    background-color: #ffd800;
    color: #000;
}

.lead-client {
    background-color: #10be09;
    border: solid 1px #10be09;
    color: #fff;
}

.lead-inactive {
    background-color: #575656;
    border: solid 1px #575656;
    color: #d7d4d4;
}

/* Base styles for your panels */
#contactDetailsMain,
#contactInteractionEdit {
    transition: transform 0.3s ease;
    transform: translateX(0);
}

/* Hidden to the left */
.slide-out-left {
    transform: translateX(-100%);
}

/* Hidden to the right */
.slide-in-right {
    transform: translateX(100%);
}

/* Fully visible in center */
.slide-center {
    transform: translateX(0);
}

.fab-add-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

    .fab-add-contact:hover {
        background-color: #0056b3; /* Darker primary on hover (adjust based on your brand) */
        color: white;
    }

.ws-section {
    background-color: #f9f9f9; /* Very light gray */
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0; /* Optional subtle border */
}

.list-group-item:hover {
    background-color: #f8f9fa;
    cursor: pointer;
}

#interactions ul.list-group > li:nth-child(even) {
    background-color: #e9ecef; /* Bootstrap's light gray */
}

/* =========================================
    Icons
========================================= */
.icon-action {
    cursor: pointer;
    transition: color 0.2s ease;
}

    .icon-action:hover {
        color: #0a58ca !important; /* darker Bootstrap primary for hover */
    }

/* =========================================
    Alerts
========================================= */
.swal2-container {
    z-index: 9999 !important; /* Make it higher than anything else */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
    Admin
========================================= */
.ws-admin-container .ws-admin-card {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
}

.ws-admin-container .ws-admin-card-header {
    border-bottom: none;
    background-color: #f8f9fa;
}

.ws-admin-container .ws-admin-table thead {
    background-color: #f8f9fa;
    border-top: none;
}

.ws-admin-container .ws-admin-card-body {
    padding: 1rem;
}

/* Table hover effect */
.ws-admin-container .ws-admin-table tbody tr:hover {
    background-color: #f1f3f5;
}

/* Fix badge overflow in Admin tables */
.ws-admin-table .badge {
    display: inline-block !important;
    padding: 0.4rem 0.6rem !important;
    font-size: 0.85rem !important;
    line-height: 1.2 !important;
    vertical-align: middle !important;
    border-radius: 0.4rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
}

    .ws-admin-table .badge i {
        margin-right: 0.3rem;
    }

.ws-badge {
    padding: 0.45em 0.65em !important;
    font-size: 0.85em !important;
    line-height: 1.1;
    border-radius: 0.35rem;
    display: inline-block;
    white-space: nowrap;
}

/* Admin Badge (Safe, Independent of Bootstrap) */
.ws-admin-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.6rem;
    font-size: 0.85rem;
    line-height: 1.2;
    border-radius: 0.4rem;
    white-space: nowrap;
    background-color: var(--badge-bg, #6c757d);
    color: var(--badge-color, #fff);
}

    .ws-admin-badge i {
        margin-right: 0.3rem;
    }

/* Expired row styling */
.ws-admin-expired td {
    color: #6c757d !important; /* Muted gray text */
    font-style: italic;
    background-color: #f9f9f9 !important; /* Slightly dimmed background */
}

/* Expired badge softer look */
.ws-admin-expired-badge {
    background-color: #f8d7da !important; /* light red */
    color: #842029 !important; /* dark red text */
}

/* Disable hover effect on expired rows */
.ws-admin-expired:hover {
    background-color: #f9f9f9 !important; /* Keep same as default */
    cursor: default !important; /* Remove pointer cursor */
}

/* Completely disable hover background for expired rows */
.table-hover tbody tr.ws-admin-expired:hover {
    background-color: #f9f9f9 !important; /* Force same as default background */
}

    .table-hover tbody tr.ws-admin-expired:hover td {
        background-color: #f9f9f9 !important; /* Ensure cells match too */
        cursor: default !important;
    }

.ws-plan-option {
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .ws-plan-option:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    .ws-plan-option.selected {
        border-color: #0d6efd;
        background: linear-gradient(135deg, #f8f9fa, #ffffff);
    }

.payment-theme {
    border-color: #fd7e14 !important;
}

    .payment-theme .card-body,
    .payment-theme i,
    .payment-theme h5,
    .payment-theme span {
        color: #fd7e14 !important;
    }

/* same width + comfy height for all action buttons */
.btn-eq {
    min-width: 140px; /* tweak to taste */
    padding-top: .55rem;
    padding-bottom: .55rem;
}

.ws-marketing p,
.ws-marketing .ws-subtle {
    font-size: 1.05rem;
    line-height: 1.6;
}
.ws-maintenance-panel-layout {
    width: 100%;
    padding: 10px 16px;
    background-color: #ebbe0b;
    color: #212529;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #d9a600;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1050; /* ensures it's above header/nav if needed */
}

.ws-maintenance-text {
    flex: 1;
    margin-right: 12px;
}

.ws-maintenance-close {
    background: transparent;
    border: none;
    font-size: 1.25rem;
    line-height: 1;
    color: #000;
    opacity: 0.6;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

    .ws-maintenance-close:hover {
        opacity: 1;
    }

.ws-maintenance-hidden {
    display: none !important;
}
/* =========================================
Responsive Overrides
========================================= */
@media (max-width: 768px) {
    .ws-sidebar {
        position: fixed;
        transform: translateX(-100%);
        top: 0;
        left: 0;
        z-index: 1045;
    }

        .ws-sidebar.show {
            transform: translateX(0);
        }

    .ws-header {
        left: 0;
        width: 100%;
    }

    .ws-sidebar-header-wrapper {
        background-color: #5c91ca; /* or #f8f9fa, etc., depending on your design #9fc3e9*/
        text-align: center;
        padding: 8px 10px 8px 8px;
    }

    #wsSidebarMobile.closed {
        left: -300px; /* Just enough to move it fully out of view */
    }

    .ws-auth-wrapper {
        background-color: #ffffff;
        padding: 20px 30px;
        width: 100%;
        max-width: 400px;
        box-shadow: none;
        text-align: center;
    }

    .cookie-btn {
        margin-top: 0;
    }

    .fc {
        font-size: 0.85rem;
    }

    /* Stack title and buttons vertically */
    .fc-header-toolbar {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

        .fc-header-toolbar .fc-toolbar-chunk {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 0.5rem;
        }

        .fc-header-toolbar .fc-toolbar-title {
            font-size: 1.2rem;
            font-weight: 600;
            text-align: center;
            white-space: nowrap;
        }

    /* Icon-only buttons */
    .fc .fc-button {
        font-size: 0;
        padding: 0.4rem 0.5rem;
        width: auto;
        min-width: 2.4rem;
    }

    .fc .fc-prev-button::after {
        font-size: 1.2rem;
    }

    .fc .fc-next-button::after {
        font-size: 1.2rem;
    }

    .fc .fc-today-button::after {
        font-size: 1.2rem;
    }

    .fc .fc-dayGridMonth-button::after {
        font-size: 1.2rem;
    }

    .fc .fc-timeGridWeek-button::after {
        font-size: 1.2rem;
    }

    .tasks-panel {
        margin-top: 20px;
    }

    .btn-group {
        width: 100%; /* Full width on extra small screens */
    }

        .btn-group .btn {
            flex: 1 1 auto; /* Each button takes equal space */
            min-width: 0; /* Prevents overflow */
        }


    .ws-rightside-panel {
        position: fixed;
        top: 0;
        right: -100%; /* hidden off-screen to the right using percentage width */
        width: 80%;
        height: 100vh; /* full viewport height */
        background-color: white;
        border-left: 1px solid #ddd;
        z-index: 1102;
        box-shadow: -4px 0 16px rgba(0, 0, 0, 0.15);
        overflow-y: auto;
        text-align: left;
        padding: 20px;
        transition: none; /* ensure animate controls movement */
    }

    .recaptcha-container .g-recaptcha {
        transform: scale(1); /* Keep normal size on mobile */
        transform-origin: center;
    }

    .btn-eq {
        min-width: 48%;/* two per row when wrapping */
    }

    #homeBtns {
        display: none !important;
    }

    .ws-marketing p,
    .ws-marketing .ws-subtle {
        font-size: 1.1rem; /* slightly larger on tablets+ */
    }
}

.tm {
    font-size: 0.4em;
    vertical-align: super;
}
