.login-card {
    width: 100%;
    max-width: 500px;
    height: auto;
    min-height: 500px;
}

@media (max-width: 768px) {
    .login-card {
        max-width: 80vw;
        min-height: 360px;
    }
}

@media (max-width: 576px) {
    .dropdown-menu[aria-labelledby="navbarDropdownMenuLink"] {
        position: fixed !important;
        top: 70px !important; /* below navbar */
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 90vw !important;
        right: auto !important;
        border-radius: 16px;
        z-index: 1050 !important;
    }
}

#live-clock {
    font-family: "Orbitron", sans-serif;
    letter-spacing: 2px;
}

.dragon-card {
    position: relative;
    overflow: hidden;
    background: rgba(11, 25, 74, 0.65);
    /* deep glass base */
    backdrop-filter: blur(12px);
    border-radius: 0.25rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    z-index: 1;
    color: #fff;
}

/* Fire glowing border */
.dragon-card::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    background: linear-gradient(60deg, #711e1e, #0b194a, #34066b, #5a0cb9);
    background-size: 400%;
    z-index: -1;
    filter: blur(12px);
    animation: dragonGlow 15s linear infinite;
    border-radius: 15px;
}

@keyframes dragonGlow {
    0% {
        background-position: 0% 50%;
        opacity: 0.7;
    }

    50% {
        background-position: 100% 50%;
        opacity: 1;
    }

    100% {
        background-position: 0% 50%;
        opacity: 0.7;
    }
}

/* Fire-colored glowing text (visible + animated) */
.dragon-card .h2,
.dragon-card .h5 {
    color: #fff;
    /* ensure readable text */
}

body.no-sidebar .main-content {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.main-content {
    flex: 1;
    overflow-x: hidden;
}

.signature-pad {
    border: 1px solid #000;
    width: 100%;
    /* full width on small screens */
    max-width: 320px;
    /* cap it on larger screens */
    height: 150px;
    /* fixed height */
}

.sidebar-logo {
    width: 60%;
    transition: all 0.3s ease;
}

/* When sidebar is collapsed, shrink logo */
.sidebar-collapsed .sidebar-logo {
    width: 35%;
    /* Adjust as needed */
}

.border-purple {
    border-color: #5601ff !important;
}

.lh-50 {
    line-height: 0.5;
}

.lh-100 {
    line-height: 1;
}

.lh-110 {
    line-height: 1.1;
}

.lh-120 {
    line-height: 1.2;
}

.lh-130 {
    line-height: 1.3;
}

.lh-140 {
    line-height: 1.4;
}

.lh-150 {
    line-height: 1.5;
}

.lh-160 {
    line-height: 1.6;
}

.lh-170 {
    line-height: 1.7;
}

.lh-180 {
    line-height: 1.8;
}

.lh-200 {
    line-height: 2;
}

.rounded-0 {
    border-radius: 0px !important;
}

.rounded-1 {
    border-radius: 1px !important;
}

.rounded-2 {
    border-radius: 2px !important;
}

.rounded-4 {
    border-radius: 4px !important;
}

.rounded-6 {
    border-radius: 6px !important;
}

.rounded-8 {
    border-radius: 8px !important;
}

.rounded-10 {
    border-radius: 10px !important;
}

.rounded-12 {
    border-radius: 12px !important;
}

.rounded-16 {
    border-radius: 16px !important;
}

.rounded-20 {
    border-radius: 20px !important;
}

.rounded-24 {
    border-radius: 24px !important;
}

.rounded-pill {
    border-radius: 999px !important;
}

.custom-select-rounded {
    border-radius: 12px !important; /* adjust value */
    overflow: hidden; /* ensures clean corners */
}

/* Optional: Smooth hover/focus effect */
.custom-select-rounded:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.15rem rgba(0, 123, 255, 0.25);
}

.gap-0 {
    gap: 0px !important;
}

.gap-1 {
    gap: 1px !important;
}

.gap-2 {
    gap: 2px !important;
}

.gap-4 {
    gap: 4px !important;
}

.gap-8 {
    gap: 8px !important;
}

.gap-12 {
    gap: 12px !important;
}

.gap-16 {
    gap: 16px !important;
}

.gap-20 {
    gap: 20px !important;
}

.gap-24 {
    gap: 24px !important;
}

.gap-32 {
    gap: 32px !important;
}

.gap-40 {
    gap: 40px !important;
}

/* FONTS */
.fw-normal {
    font-weight: 500 !important;
}

.fw-bold {
    font-weight: bold !important;
}

.fw-semibold {
    font-weight: 600 !important;
}

.fw-bolder {
    font-weight: 750 !important;
}

.fs-20 {
    font-size: 20px;
}

.fs-16 {
    font-size: 16px;
}

.fs-14 {
    font-size: clamp(13px, 1vw, 14px);
}

.fs-8 {
    font-size: clamp(7px, 0.5vw, 8px);
}

.fs-12 {
    font-size: clamp(11px, 0.9vw, 12px);
}

.fs-header {
    font-size: clamp(30px, 6vw, 50px);
}

.fs-auth {
    font-size: clamp(30px, 3vw, 35px);
}

.flatpickr-input.form-control {
    display: block;
    width: 100%;
    height: calc(1.5em + 0.75rem + 2px);
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #ffffff;
    background-clip: padding-box;
    border: 1px solid #c2b5f5;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.auth-form-control {
    padding: 10px 12px;
    border-radius: 4px;
    border: 1.5px solid #ced4da;
    width: 100%;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
    background-color: transparent;
    color: #ffffff;
}

.auth-form-control::placeholder {
    color: #ffffff;
    opacity: 1;
}

.auth-form-control:focus {
    border: 2px solid #367aff;
    outline: none;
    /* optional: removes default blue glow */
}

.btn-white-google {
    background-color: #ffffff;
    color: #444;
    border: 0.2px solid #e9e7e7;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* soft drop shadow */
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.btn-white-google:hover {
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    background-color: #f9f9f9;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #ffffff;
    /* white text (adjust as needed) */
    margin: 15px 0;
    font-weight: 500;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    margin: 0 10px;
}

.no-focus:focus {
    outline: none !important;
    box-shadow: none !important;
}

.no-hover {
    pointer-events: auto;
    /* Ensure element is still clickable */
    transition: none !important;
    /* Remove transition effects */
    transform: translateY(-5px) scale(1.02);
}

.transition {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.transition:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease-in-out;
}

.transition:active {
    transform: translateY(-2px) scale(0.98);
}

/* Gradient Tab */
.gradient-tab {
    background: #ffffff;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-bottom: 0 !important;
    transition: all 0.3s ease;
    border: 1px solid #c6c6c6;
    width: 150px;
    /* ✅ Fixed width that fits "Development" */
    text-align: center;
    white-space: nowrap;
    /* Prevent text wrap */
    overflow: hidden;
    text-overflow: ellipsis;
    /* Optional: Add ... if text is too long */
}

.gradient-tab:hover {
    background: #bbbed1;
    opacity: 0.9;
}

.gradient-tab:focus {
    color: #ffffff;
    background: #7584e6;
}

.gradient-tab.active {
    color: #ffffff;
    background: linear-gradient(90deg, #34066b, #5a0cb9);
}

/* Custom Button */
.btn-purple {
    color: #ffffff;
    background-color: #452b90;
    border-color: #452b90;
    transition: all 0.25s ease;
}

.btn-purple:hover {
    color: #ffffff;
    background-color: #7b5cd6;
    border-color: #7b5cd6;
    transform: translateY(-2px) scale(1.01);
}

.btn-purple:focus,
.btn-purple.focus {
    color: #ffffff;
    background-color: #3d2e6b;
    border-color: #3d2e6b;
    box-shadow: 0 0 0 0.2rem rgba(102, 73, 191);
}

.btn-purple.disabled,
.btn-purple:disabled {
    color: #212529;
    background-color: #6d638f;
    border-color: #6d638f;
}

.btn-purple:not(:disabled):not(.disabled):active,
.btn-purple:not(:disabled):not(.disabled).active,
.show > .btn-purple.dropdown-toggle {
    color: #ffffff;
    background-color: #6d638f;
    border-color: #6d638f;
    transform: translateY(0px) scale(0.99);
}

.btn-purple:not(:disabled):not(.disabled):active:focus,
.btn-purple:not(:disabled):not(.disabled).active:focus,
.show > .btn-purple.dropdown-toggle:focus {
    box-shadow: 0 0 0 0.2rem rgba(102, 73, 191);
}

.btn-login {
    color: #ffffff;
    background-color: #7c11ff;
    border-color: #7c11ff;
    transition: all 0.25s ease;
}

.btn-login:hover {
    color: #ffffff;
    background-color: #7d49c4;
    border-color: #7d49c4;
    transform: translateY(-2px) scale(1.01);
}

.btn-login:focus,
.btn-login.focus {
    color: #ffffff;
    background-color: #3d2e6b;
    border-color: #3d2e6b;
    box-shadow: 0 0 0 0.2rem rgba(102, 73, 191);
}

.btn-login.disabled,
.btn-login:disabled {
    color: #212529;
    background-color: #6d638f;
    border-color: #6d638f;
}

.btn-login:not(:disabled):not(.disabled):active,
.btn-login:not(:disabled):not(.disabled).active,
.show > .btn-login.dropdown-toggle {
    color: #ffffff;
    background-color: #6d638f;
    border-color: #6d638f;
    transform: translateY(0px) scale(0.99);
}

.btn-login:not(:disabled):not(.disabled):active:focus,
.btn-login:not(:disabled):not(.disabled).active:focus,
.show > .btn-login.dropdown-toggle:focus {
    box-shadow: 0 0 0 0.2rem rgba(102, 73, 191);
}

/* CALENDAR */
#dashboard-fc .fc {
    font-family: "Inter", sans-serif;
    font-size: 14px;
    color: #333;
}

/* Header: days of the week */
#dashboard-fc .fc-col-header-cell {
    background-color: #ede6f9;
    /* soft purple */
    color: #4b2e83;
    /* darker purple text */
    font-weight: 600;
    padding: 10px 0;
}

/* .fc .fc-view-harness {
    max-height: 40.4vh !important;
} */

#dashboard-fc .fc .fc-view-harness {
    height: 314px !important;
}

#dashboard-fc .fc .fc-daygrid-day-number {
    display: block;
    text-align: center;
    font-weight: bold;
}

#dashboard-fc .fc .fc-daygrid-day .fc-more-link {
    display: block;
    text-align: center;
    margin-top: 2px;
    /* smaller gap */
    font-size: 12px;
    color: red;
    /* or your theme color */
}

#dashboard-fc .fc .fc-daygrid-day-number {
    display: block;
    text-align: center;
    font-weight: bold;
}

#dashboard-fc .fc .fc-daygrid-day .fc-more-link {
    display: block;
    text-align: center;
    margin-top: 2px;
    /* smaller gap */
    font-size: 12px;
    color: rgb(0, 183, 255);
    /* or your theme color */
}

/* Tablet */
@media (max-width: 992px) {
    #dashboard-fc .fc .fc-view-harness {
        height: 220px !important;
    }
}

/* Mobile */
@media (max-width: 576px) {
    #dashboard-fc .fc .fc-view-harness {
        height: 180px !important;
    }
}

#dashboard-fc .fc .fc-scrollgrid-sync-table {
    width: 100% !important;
    height: 200px !important;
}

/* Today's date outline */
#dashboard-fc .fc .fc-daygrid-day {
    border: none !important;
    font-weight: 600;
}

#dashboard-fc .fc .fc-daygrid-day.fc-day-today {
    border: 2px solid #a259ff !important;
    border-radius: 50%;
    background-color: transparent !important;
    color: #a259ff !important;
    font-weight: 700;
}

/* Add only bottom border to each day */
#dashboard-fc .fc .fc-daygrid-day-frame {
    border-bottom: 1px solid #e0e0e0 !important;
    border-bottom: 1px solid #e0e0e0 !important;
    padding: 12px 24px !important;
}

/* Remove background color from today cell */
#dashboard-fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-number {
    background-color: transparent;
}

/* Cell borders */
#dashboard-fc .fc-theme-standard td,
.fc-theme-standard th {
    border: 1px solid #a259ff;
}

/* Title (e.g., “July 2025”) */
#dashboard-fc .fc-toolbar-title {
    font-size: 1.2rem;
    font-weight: bold;
}

/* Navigation buttons */
#dashboard-fc .fc .fc-button {
    background-color: #f4f4f4;
    border: none;
    border-radius: 6px;
    color: #4b2e83;
    font-weight: 500;
    padding: 6px 12px;
}

#dashboard-fc .fc .fc-button:hover {
    background-color: #e0dbf5;
}

/* Make today’s number circle visible */
#dashboard-fc .fc-daygrid-day-number {
    display: inline-block;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    border-radius: 50%;
    transition: background 0.2s;
    cursor: pointer !important;
}

.timeline-avatar {
    position: relative;
    z-index: 1;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.timeline-avatar img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border: 2px solid #fff;
}

.timeline-details {
    flex: 1;
}

/* Datatable */

table.dataTable {
    border: 1px solid #e9edf5;
    /* Bootstrap gray border */
    border-radius: 3px;
    /* Optional: rounded corners */
    border-collapse: separate !important;
    border-spacing: 0;
    /* Prevent cell gaps unless specified */
    overflow: hidden;
    box-sizing: border-box;
    /* Hide overflow on rounded corners */
}

/* Remove borders from header and body cells */
table.dataTable thead th,
table.dataTable tbody td,
table.dataTable tr {
    border: none !important;
}

table.dataTable thead th {
    background-color: #ece9f4;
    color: #452b90;
    /* padding: 12px 24px; */
    font-size: 12px;
    letter-spacing: 0.48px;
    text-transform: uppercase;
    border-bottom: 1px solid #e9edf5 !important;
    text-align: left;
    font-weight: 700;
}

table.dataTable tbody tr {
    background-color: #ffffff;
    color: #343a40;
    /* padding-y: 12px, padding-x: 24px */
    font-size: 12px;
    letter-spacing: 4%;
    text-transform: capitalize;
}

#component-list-table td,
#permission-list-table td,
#sales-table td,
#pm-table td,
#tech-table td,
#dev-table td,
#contact-person-table td,
#team-table td,
#user-list-table td {
    text-transform: none !important;
}

table.dataTable thead th.sorting:after,
table.dataTable thead th.sorting_asc:after,
table.dataTable thead th.sorting_desc:after {
    display: none !important;
}

table.dataTable thead th.sorting::before {
    content: "⇅";
    float: right;
    margin-left: 8px;
    margin-bottom: 5px;
    color: #999;
    font-size: 10px;
}

table.dataTable thead th.sorting_asc::before {
    content: "↑";
    float: right;
    margin-left: 8px;
    margin-bottom: 5px;
    color: #007bff;
}

table.dataTable thead th.sorting_desc::before {
    content: "↓";
    float: right;
    margin-left: 8px;
    margin-bottom: 5px;
    color: #007bff;
}

/* SELECT 2 Custom Design */

.select2-container--default .select2-selection--single {
    display: block !important;
    width: 100% !important;
    height: calc(1.5em + 0.75rem + 2px) !important;
    padding: 0.375rem 0.75rem !important;
    font-size: 0.875rem !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    color: #495057 !important;
    background-color: #fff !important;
    border: 1px solid #c2b5f5 !important;
    border-radius: 0.25rem !important;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
    background-image: url("data:image/svg+xml,%3Csvg fill='gray' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 12l-5-5h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 1rem !important;
    appearance: none !important;
}

.select2-selection__arrow {
    display: none !important;
}

.select2-container--default
    .select2-selection--single
    .select2-selection__rendered {
    line-height: 20px !important;

    /* Removes default line height */
}

.select2-container--default .select2-selection--multiple {
    display: block !important;
    width: 100% !important;
    min-height: calc(1.5em + 0.75rem + 2px) !important;
    padding: 0.375rem 0.75rem !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    color: #495057 !important;
    background-color: #fff !important;
    border: 1px solid #c2b5f5 !important;
    border-radius: 0.25rem !important;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
}

.select2-container--default .select2-selection--multiple {
    padding-right: 2.5rem !important;
    background-image: url('data:image/svg+xml;utf8,<svg fill="gray" height="16" viewBox="0 0 24 24" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 1rem !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

/* Individual selected items (tags) */
.select2-container--default
    .select2-selection--multiple
    .select2-selection__choice {
    background-color: #007bff !important;
    border: 1px solid #007bff !important;
    color: #fff !important;
    margin-top: 0;
    border-radius: 0.25rem !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
}

/* Close (×) icon color */
.select2-container--default
    .select2-selection--multiple
    .select2-selection__choice__remove {
    color: #fff !important;
    margin-right: 4px !important;
    font-weight: bold !important;
}

.select2-container--default
    .select2-selection--multiple
    .select2-selection__choice__remove:hover {
    color: #ccc !important;
}

.select2-service
    + .select2-container--default
    .select2-selection--multiple
    .select2-selection__choice {
    background-color: #452b90 !important;
    border: 1px solid #452b90 !important;
    color: #fff !important;
    margin-top: 0;
    border-radius: 0.25rem !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
}

/* Close (×) button for red tags */
.select2-service
    + .select2-container--default
    .select2-selection--multiple
    .select2-selection__choice__remove {
    color: #fff !important;
    margin-right: 4px !important;
    font-weight: bold !important;
}

.select2-service
    + .select2-container--default
    .select2-selection--multiple
    .select2-selection__choice__remove:hover {
    color: #f8d7da !important;
}

/* Custom hover background for Select2 options */
.select2-container--default
    .select2-results__option--highlighted[aria-selected] {
    background-color: #452b90 !important;
    /* your custom hover color */
    color: #fff;
    /* text color on hover */
}

/* Disabled single select */
.select2-container--default.select2-container--disabled
    .select2-selection--single {
    background-color: #e9ecef !important;
    /* light grey */
    cursor: not-allowed;
    opacity: 1;
    /* keep text visible */
}

/* Disabled multiple select */
.select2-container--default.select2-container--disabled
    .select2-selection--multiple {
    background-color: #e9ecef !important;
    cursor: not-allowed;
    opacity: 1;
}

/* Optional: change text color for both */
.select2-container--default.select2-container--disabled
    .select2-selection__rendered {
    color: #6c757d !important;
    /* muted grey text */
}

/* Optional: fade arrow icon */
.select2-container--default.select2-container--disabled
    .select2-selection__arrow {
    opacity: 0.5;
}

.select2-container--default .select2-results__option[aria-disabled="true"] {
    background-color: #e9ecef;
    /* very light grey */
    color: #6c757d;
    /* muted text */
    cursor: not-allowed;
}

/* CUSTOM CALENDAR CSS */

#calendar-container {
    max-width: 100%;
    overflow-x: auto;

    /* allow scroll on very small screens */
}

/* Ensure calendar fills container */
#calendar-container .fc {
    width: 100% !important;
    height: auto !important;
    cursor: pointer;
    /* slightly smaller for mobile */
}

#calendar-container .fc:hover {
    width: 100% !important;
    height: auto !important;
    cursor: pointer;
    /* slightly smaller for mobile */
}

/* Header (days of week) */
#calendar-container .fc-col-header-cell {
    background-color: #f1f9fe;
    color: #313131;
    font-size: clamp(0.8rem, 1vw, 1.25rem);
    /* responsive text */
    padding: 8px 0;
}

/* Buttons */
#calendar-container .fc-button {
    background-color: #f4f4f4 !important;
    border: none !important;
    color: #4b2e83 !important;
    font-weight: 500 !important;
    padding: 4px 10px;
    font-size: clamp(0.75rem, 1vw, 1rem);
}

/* Today button */
#calendar-container .fc .fc-today-button {
    background-color: #1877f2 !important;
    color: white !important;
    border-color: #1877f2 !important;
    font-weight: 600 !important;
}

/* Prev/Next buttons */
#calendar-container .fc .fc-prev-button,
#calendar-container .fc .fc-next-button {
    padding: 0 8px !important;
    font-size: clamp(1rem, 2vw, 1.2rem) !important;
    min-width: 34px !important;
}

/* Day numbers */
#calendar-container .fc-day-number-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60%;
    width: 60%;
    max-width: 100px;
    margin: 0 auto;
    cursor: pointer;
}

#calendar-container .fc-day-number-wrapper .day-number,
#calendar-container .day-number {
    font-size: clamp(0.75rem, 1.5vw, 1.25rem);
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
    /* smooth transition */
}

#calendar-container .fc-day-number-wrapper .day-number:hover,
#calendar-container .day-number:hover {
    color: #007bff;
    /* change this to any color you like */
}

/* Today circle highlight */
#calendar-container .fc-day-today .day-number {
    background-color: white;
    color: black;
    border-radius: 50%;
    /* perfect circle */
    width: clamp(28px, 6vw, 48px);
    border: 2px solid #a259ff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    margin: 0 auto;
    /* keep centered */
}

#calendar-container .fc-daygrid-event {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90%;
}

/* Remove background for today cell */
#calendar-container .fc .fc-daygrid-day.fc-day-today {
    background-color: transparent !important;
}

/* Selected date */
#calendar-container .fc .fc-daygrid-day.selected-date {
    background-color: #f8e9fd !important;
    font-weight: 700;
}

/* Custom day content */
#calendar-container .fc .custom-day-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    text-align: center;
    padding: 4px;
}

#calendar-container .fc .custom-day-content .day-number {
    border: 2px solid magenta;
    border-radius: 50%;
    padding: clamp(6px, 1vw, 12px);
    font-weight: bold;
    margin-top: 10px;
}

#calendar-container .fc .custom-day-content .summary {
    margin-top: 2px;
    font-size: clamp(0.65rem, 1vw, 0.85rem);
}

/* Events */
#calendar-container .fc-event {
    background: none !important;
    border: none !important;
    padding: 0 6px !important;
    margin: 0 !important;
}

#calendar-container .fc-event-title,
#calendar-container .fc-event-main {
    padding: 0 !important;
    margin: 0 !important;
}

/* Event links */
#calendar-container .custom-event-link {
    display: block;
    font-size: 0.75rem;
    text-decoration: none;
    margin-top: 2px;
    background: transparent;
}

#calendar-container .custom-event-link.task {
    color: #007bff;
}

#calendar-container .custom-event-link.event {
    color: #d000a8;
}

#calendar-container .custom-event-link.leave {
    color: #8b6f00;
}

/* 🔹 Extra adjustments for small screens */
@media (max-width: 768px) {
    #calendar-container .fc-col-header-cell {
        font-size: 0.85rem;
        padding: 6px 0;
    }

    #calendar-container .fc .fc-toolbar {
        flex-wrap: wrap;
        /* buttons go to new line */
        gap: 6px;
    }

    #calendar-container .fc-day-number-wrapper .day-number {
        font-size: 0.9rem;
    }
}

@media (max-width: 992px) {
    #calendar-container .fc-daygrid-more-link,
    #calendar-container .fc-more-link {
        font-size: 2vw;
    }
}

.appointment-row {
    max-height: 0;
    opacity: 0;
    height: 100px;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

.appointment-row.open {
    max-height: 1000px;
    /* big enough to show full content */
    opacity: 1;
}

.primary-calendar-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    font-size: 0.55rem;
    font-weight: 600;
    color: #0d46ff;
    background: #c3ddff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.warning-calendar-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    font-size: 0.55rem;
    font-weight: 600;
    color: #ff0d12;
    background: #ffc3c3;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.success-calendar-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    font-size: 0.55rem;
    font-weight: 600;
    color: #00723d;
    background: #caffc5;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* CLOSE CUSTOM CALENDAR CSS */

#tab-selector-phone .nav-link.active {
    background: linear-gradient(to right, #5f0a87, #a4508b) !important;
    color: white !important;
    font-weight: 600;
}

#tab-selector-phone .nav-link {
    background: #fff;
    color: #1a1a3c;
    font-weight: 600;
}

#taskModal .modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

#taskModal .modal-dialog {
    max-width: 95%;
    /* Make modal wider on small screens */
}

#taskModal .modal-body {
    overflow-x: auto;
    /* Allow horizontal scroll inside modal */
}

.dataTables_wrapper {
    width: 100% !important;
    /* Ensure full width */
}

.pointer {
    cursor: pointer !important;
}

.medium-checkbox {
    transform: scale(1.5);
    margin-right: 8px;
    cursor: pointer;
}

.large-checkbox {
    transform: scale(2.2);
    margin-right: 8px;
    cursor: pointer;
}

.bg-sidebar {
    background: #2c2f48;
}

.calendar-link {
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
}

.calendar-link:hover {
    transform: scale(1.02);
}

.nav-link {
    color: #d1d1e0;
    padding: 10px 15px;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.nav-link.active {
    background: linear-gradient(45deg, #896ac4, #573a8f);
    color: #fff !important;
    font-weight: bold;
}

.nav-heading {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-left: 15px;
}

.badge-purple {
    background: linear-gradient(45deg, #896ac4, #573a8f);
    color: #fff;
}

.sidebar .nav-link {
    display: flex;
    align-items: center;
}

.sidebar .nav-link i {
    width: 20px;
    /* or whatever fits */
    text-align: center;
}

/*--------------------*/
/*   Filepond CSS     */
/*--------------------*/
.filepond--root {
    background-color: #f4f0fc !important;
    max-width: 100%;
    border-radius: 12px !important;
}

.filepond--panel-root {
    background-color: #f4f0fc !important;
    border-radius: 12px !important;
}

/* Drop area background & padding */
.filepond--drop-label {
    background-color: #f4f0fc;
    /* light purple tint */
    color: #333;
    border-radius: 12px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.activity-item li span.commit-message {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.activity-item:hover {
    background-color: #f9f7ff;
    transform: translateY(-2px);
    transition: all 0.2s ease-in-out;
}

.activity-item:hover {
    background-color: #f9f7ff;
    transform: translateY(-2px);
    transition: all 0.2s ease-in-out;
}

.bg-glass {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bg-glass:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
}

/* Make text glow slightly */
.bg-glass .h4,
.bg-glass .h6 {
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.3);
}

.position-relative .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    opacity: 0;
    transition: 0.3s ease-in-out;
}

.position-relative:hover .overlay {
    opacity: 1;
    cursor: pointer;
}

.position-relative .overlay i {
    margin-bottom: 5px;
}

/* loader css */

/* #preloader {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
} */

/* .preloader-wrapper {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    z-index: 9999;
} */

/* .spinner {
    width: 2.5%;
    height: auto;
    border: 4px solid transparent;
    animation: spin 1.2s linear infinite;
} */

/* @keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
} */

#preloader,
.preloader-wrapper {
    position: fixed;
    inset: 0; /* shorthand for top: 0; right: 0; bottom: 0; left: 0 */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#preloader {
    background: rgba(0, 0, 0, 0.8);
}

.preloader-wrapper {
    background: #fff;
}

/* Spinner base style */
.spinner {
    width: 80px;
    max-width: 25vw; /* prevents it from getting too big on large screens */
    height: auto;
    border: 4px solid transparent;
    animation: spin 1.2s linear infinite;
}

/* Keyframes for spinning */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 📱 Responsive adjustments */
@media (max-width: 1200px) {
    .spinner {
        width: 70px;
    }
}

@media (max-width: 992px) {
    .spinner {
        width: 60px;
    }
}

@media (max-width: 768px) {
    .spinner {
        width: 50px;
    }
}

@media (max-width: 576px) {
    .spinner {
        width: 40px;
    }
}

/* ===== Spinning animation calendar dashbaord ===== */
.spinner-dashboard {
    width: 13%;
    height: auto;
    border: 4px solid transparent;
    animation: spin-dashboard 1s linear infinite;
}

@keyframes spin-dashboard {
    0% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.05);
    }

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

.spinner-hidden {
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Ensure modal covers screen cleanly */
.modal-backdrop {
    z-index: 1040 !important;
}

#loading-modal {
    z-index: 1050 !important;
}

/* end loader */

/* ===== Common centering style ===== */
.logo-rotate,
.logo-full {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
}

/* ===== Rotating logo (intro) ===== */
.logo-rotate img {
    width: 50%;
    height: 70%;
    animation: spinShrink 2s linear forwards;
}

@keyframes spinShrink {
    0% {
        transform: rotate(0deg);
        opacity: 1;
    }

    80% {
        transform: rotate(1440deg);
        opacity: 1;
    }

    100% {
        transform: rotate(1800deg);
        opacity: 0;
    }
}

/* ===== Full logo reveal ===== */
.logo-full img {
    width: 540px;
    opacity: 0;
    transform: scale(0.9);
    animation: showLogo 1s ease-out forwards;
    animation-delay: 2.2s;
    /* wait for rotation to end */
}

@keyframes showLogo {
    0% {
        clip-path: inset(0 100% 0 0);
        opacity: 0;
    }

    100% {
        clip-path: inset(0 0 0 0);
        opacity: 1;
    }
}

/* ===== Splash screen ===== */
.splash-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    opacity: 1;
    transition: opacity 1s ease;
}

/* ===== Move logo to top-left corner ===== */
@keyframes moveToCorner {
    0% {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        top: 2.7%;
        left: 1.9%;
        transform: translate(0, 0) scale(0.365);
        transform-origin: top left;
    }
}

/* Trigger sequence: after showLogo finishes */
.logo-full.move {
    animation: showLogo 1s ease-out forwards,
        moveToCorner 1s ease-in-out 3.5s forwards;
    /* delay for timing */
}

@media (max-width: 768px) {
    .logo-full img {
        width: 300px;
    }

    .logo-rotate img {
        width: 50px;
        height: 50px;
    }
}

/* From Uiverse.io by dovatgabriel */
.three-body {
    --uib-size: 35px;
    --uib-speed: 0.8s;
    --uib-color: #ede6f9;
    position: relative;
    display: inline-block;
    height: var(--uib-size);
    width: var(--uib-size);
    animation: spin78236 calc(var(--uib-speed) * 2.5) infinite linear;
}

.three-body__dot {
    position: absolute;
    height: 100%;
    width: 30%;
}

.three-body__dot:after {
    content: "";
    position: absolute;
    height: 0%;
    width: 100%;
    padding-bottom: 100%;
    background-color: var(--uib-color);
    border-radius: 50%;
}

.three-body__dot:nth-child(1) {
    bottom: 5%;
    left: 0;
    transform: rotate(60deg);
    transform-origin: 50% 85%;
}

.three-body__dot:nth-child(1)::after {
    bottom: 0;
    left: 0;
    animation: wobble1 var(--uib-speed) infinite ease-in-out;
    animation-delay: calc(var(--uib-speed) * -0.3);
}

.three-body__dot:nth-child(2) {
    bottom: 5%;
    right: 0;
    transform: rotate(-60deg);
    transform-origin: 50% 85%;
}

.three-body__dot:nth-child(2)::after {
    bottom: 0;
    left: 0;
    animation: wobble1 var(--uib-speed) infinite calc(var(--uib-speed) * -0.15)
        ease-in-out;
}

.three-body__dot:nth-child(3) {
    bottom: -5%;
    left: 0;
    transform: translateX(116.666%);
}

.three-body__dot:nth-child(3)::after {
    top: 0;
    left: 0;
    animation: wobble2 var(--uib-speed) infinite ease-in-out;
}

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

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

@keyframes wobble1 {
    0%,
    100% {
        transform: translateY(0%) scale(1);
        opacity: 1;
    }

    50% {
        transform: translateY(-66%) scale(0.65);
        opacity: 0.8;
    }
}

@keyframes wobble2 {
    0%,
    100% {
        transform: translateY(0%) scale(1);
        opacity: 1;
    }

    50% {
        transform: translateY(66%) scale(0.65);
        opacity: 0.8;
    }
}

/* end loader css */

/*--------------------*/
/* task statistic CSS */
/*--------------------*/

#status-chart {
    width: 100%;
    max-width: 400px; /* optional limit */
    height: 300px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    #status-chart {
        height: 200px;
    }
}

@media (max-width: 480px) {
    #status-chart {
        height: 150px;
    }
}

/* Profile Modal View */
#profile-modal .card {
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    background-color: rgba(255, 255, 255, 0.95);
    transition: none !important;
    transform: none !important;
    box-shadow: none !important;
}

#profile-modal .card-body {
    font-size: 14px;
    color: #0a0338;
}

#profile-modal .row {
    align-items: center;
}

#profile-modal .col-5,
#profile-modal .col-7 {
    text-align: left;
}

#profile-modal .profile-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #8b5cf6;
    background-color: #fff;
}
/* End Profile Modal View */

.status-card {
    transition: all 0.25s ease;
    cursor: pointer;
}
.status-card:hover {
    transform: translateY(-3px);
}
.icon-box {
    transition: all 0.3s ease;
}
.status-card:hover .icon-box {
    transform: scale(1.1);
}

/* 🧭 Breadcrumb positioned outside header (top-right corner) */

.breadcrumb a {
    color: #6f42c1 !important;
    font-weight: 500;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
    color: #4b2ca0 !important;
}

/* 🌟 Client Header Styling */
.client-header {
    background: #faf8ff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease-in-out;
}

.client-header:hover {
    background: #f4efff;
    transform: translateY(-2px);
}

.text-gradient {
    background: linear-gradient(90deg, #6f42c1, #b57edc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
}

.client-header h2 {
    font-family: "Poppins", sans-serif;
}

.client-header h5 {
    font-family: "Poppins", sans-serif;
    color: #6c757d;
    letter-spacing: 1px;
    margin: 0;
}
.border-client {
    border: 2px solid #e0d9f5; /* soft lavender-grey border */
    border-radius: 12px;
}

/* Chatbot */
#chatbot-box {
    position: fixed;
    bottom: 20px;
    right: 25px;
    width: 30%; /* Desktop default */
    max-width: 95%; /* Mobile fallback */
    border-radius: 4px;
    overflow: hidden;
    z-index: 9999;
    transition: all 0.3s ease;
}

#chatbot-messages {
    height: 300px;
    overflow-y: auto;
    background: #f7f7f7;
    word-wrap: break-word; /* Wrap long messages */
}

/* Chat bubbles */
.chat-bubble {
    padding: 0.5rem 1rem;
    border-radius: 18px;
    max-width: 75%;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    word-wrap: break-word;
    line-height: 1.4;
}

/* Bot messages */
.bot-message {
    background: #ffffff;
    border: 1px solid #e2e2e2;
    border-radius: 18px 18px 18px 0;
}

/* User messages */
.user-message {
    background: #007bff;
    color: #fff;
    border-radius: 18px 18px 0 18px;
}

/* Mobile adjustments */
@media (max-width: 576px) {
    #chatbot-box {
        bottom: 10px !important;
        right: 5px !important;
        width: 95% !important;
        max-width: 95% !important;
        border-radius: 6px;
    }

    #chatbot-messages {
        height: 250px; /* slightly smaller on mobile */
    }

    .chat-bubble {
        max-width: 85%; /* more room for smaller screen */
        font-size: 13px;
    }

    #chatbot-input {
        font-size: 14px;
    }
}

.badge-cyan {
    color: #ffffff;
    background-color: #00C7C7;
}
a.badge-cyan:hover,
a.badge-cyan:focus {
    color: #ffffff;
    background-color: #22C9B8
}
a.badge-cyan:focus,
a.badge-cyan.focus {
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(43, 237, 217, 0.5);
}

.badge-orange {
    color: #FFFFFF;
    background-color: #FF640A;
}
a.badge-orange:hover,
a.badge-orange:focus {
    color: #ffffff;
    background-color: #FF8A4A
}
a.badge-orange:focus,
a.badge-orange.focus {
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(255, 138, 74, 0.5);
}

/*--------------------*/
/*       END CSS      */
/*--------------------*/
