/* Light mode ONLY */
/* ================================
   LIGHT MODE FIXES
================================ */
:root:not([data-coreui-theme="dark"]) {

    /* Card contrast */
    .card {
        background-color: #ffffff;
        border: 1px solid #dcdcdc;
    }

    /* Callout contrast */
    .callout-success {
        background-color: #e8f7e8 !important;
        border-left-color: #4caf50 !important;
        color: #2e7d32 !important;
    }

    /* Section dividers */
    hr {
        border-color: #d0d0d0;
    }

    /* Color picker swatch */
    .color-picker {
        border: 1px solid #b5b5b5 !important;
    }

    /* Readonly inputs */
    input[readonly] {
        background-color: #f8f9fa;
        color: #555;
    }
}

/* Dark mode ONLY */
[data-coreui-theme="dark"] {
    --cui-body-bg: #212631;
    --cui-card-bg: #2a2a2a;
}

/* Square avatar with rounded corners in profile page */
.profile-img {
    width: 160px;     /* bigger */
    height: 160px;    /* stays square */
    object-fit: cover;
    border-radius: 0.75rem; /* rounded corners */
}

.profile-avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover; /* crops instead of stretching */
    object-position: center; /* centers the face */
    display: block; /* prevents inline gaps */
}

/* Round avatar with rounded corners in profile page */
.profile-avatar-preview {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;        /* this is the mask */
    margin: 0 auto;
    position: relative;
}

/* Zoom in on the image so it looks more like the profile avatar in the top nav */
.profile-avatar-preview .profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;

    /* this is the zoom */
    transform: scale(1.1);
    transform-origin: center;
}


/* Centered, larger color picker */
.color-picker {
    width: 90px !important;   /* wider */
    height: 28px !important;  /* skinnier */
    padding: 0;
    cursor: pointer;
    border-radius: 6px;       /* optional: smoother shape */
}

/* Make coreui toggle switches a little bigger */
.form-switch .form-check-input {
    width: 2.1rem;
    height: 1.3rem;
}

/* Profile Page Delete Button Invalid */
.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220,53,69,.25);
}

/* Dropdown Settings */
/* Make CoreUI dropdown arrows align right */
.dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 1rem;
}

/* pushes arrow to the far right */
.dropdown-toggle::after {
    margin-left: auto; 
}

/* Adds divider to the left of the arrow */
.dropdown-toggle::before {
    content: "";
    position: absolute;
    right: 2.5rem;
    top: 25%;
    bottom: 25%;
    width: 1px;
    background: rgba(255,255,255,0.15);
}

/* From settings loader */
:root {
    --app-font: Inter, sans-serif;
    --app-font-size: 16px;
    --highlight-color: #24716a;
}

.highlight-color {
    color: var(--highlight-color) !important;
}

/* Settings input highlight */
.settings-highlight {
    border-width: 2px !important;
    border-color: var(--highlight-color) !important;
    box-shadow: 0 0 8px var(--highlight-color) !important;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.settings-highlight:focus {
    border-color: var(--highlight-color) !important;
    box-shadow: 0 0 12px var(--highlight-color) !important;
}



/* Member picker highlight colors */
.glow-input {
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
    border-width: 2px !important;
}

.glassy-bg {
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: background 0.25s ease, border-color 0.25s ease;
    border: 1px solid transparent;
}

.member-bg-layer {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 0;

    z-index: 0; /* stays behind content + footer */
    pointer-events: none;

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

.main-content-wrapper {
    flex: 1 0 auto;
}

/* Bring the footer and callout on top of the background member color */
.footer {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.callout {
    position: relative;
    z-index: 3;
}

#backToMembersBtn {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-width: 2px;
}

/*
body {
    font-family: var(--app-font);
    font-size: var(--app-font-size);
}

.highlight {
    color: var(--highlight-color);
}*/

/*********************************
 * View Member Page
 *********************************/
.view-member-container {
    position: relative;
}

.floating-tabs-wrapper {
    position: absolute;
    top: -1.2rem;
    left: 1.5rem; /* aligns with card padding */
    z-index: 10;
}

.member-tabs {
    background: var(--cui-body-bg);
    border-radius: 0.5rem;
    padding: 0.4rem 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.member-tabs .nav-link {
    font-weight: 600;
    color: var(--cui-body-color);
}

.member-tabs .nav-link.active {
    background-color: var(--cui-body-bg);
    border-color: var(--cui-body-color) var(--cui-body-color) transparent;
    color: var(--cui-body-color);
}

.custom-tab-bar {
    border-bottom: 2px solid rgba(255,255,255,0.1);
}

.custom-tab {
    background: none;
    border: none;
    padding: 0.5rem 0.75rem;
    font-weight: 600;
    color: var(--cui-body-color);
    opacity: 0.6;
    border-bottom: 3px solid transparent;
    transition: 0.2s ease;
}

.custom-tab:hover {
    opacity: 1;
}

.custom-tab.active {
    opacity: 1;
    border-bottom-color: var(--cui-body-color);
}

/* Main card */
.front-history-card {
    background: var(--cui-body-bg);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.6rem;
    box-shadow:
        0 2px 4px rgba(0,0,0,0.12),
        0 4px 12px rgba(0,0,0,0.10);
    border-left: 6px solid var(--member-color);
}

/* Header (Current or Status Type) */
.front-history-header {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.4rem;
}

/* Start/End row */
.front-history-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.3rem;
}

/* Labels (soft gray) */
.front-history-label {
    font-weight: 600;
    color: var(--cui-gray-400);
}

/* Values (white) */
.front-history-value {
    color: #ffffff;
}

/* Duration */
.front-history-duration {
    font-weight: 700;
    color: #ffffff;
}

/* Timestamp under custom statuses */
.front-history-time {
    font-size: 0.75rem;
    color: var(--cui-gray-500);
    margin-top: 0.1rem;
}

/* Custom statuses */
.front-history-status-list {
    margin: 0.25rem 0 0 1rem;
    padding: 0;
}

.front-history-status-list li {
    margin-bottom: 0.25rem;
    color: #ffffff;
}

.btn-filters {
    backdrop-filter: blur(8px);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
}

.btn-filters:hover {
    background: rgba(255,255,255,0.15);
}

/* Remove Bootstrap caret */
.dropdown-toggle::after,
.dropdown-toggle::before {
    display: none !important;
}

/* Remove CoreUI caret */
.dropdown-toggle .caret {
    display: none !important;
}

/* Remove Bootstrap’s default caret */
.no-caret::after,
.no-caret::before {
    display: none !important;
}

/* Align the Bootstrap icon caret */
.filter-caret {
    font-size: 0.8rem;          /* slightly smaller looks cleaner */
    margin-left: 4px;           /* spacing from the text */
    vertical-align: middle;     /* centers it with the text */
    position: relative;
    top: 1px;
}

.header.header-sticky {
    max-height: 68px ; /* match sidebar-header */
    /* display: flex;
    align-items: center; */
}

.header.header-sticky .container-fluid {
    display: flex;
    align-items: center;        /* vertically center button + breadcrumbs + avatar */
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    height: 100%;
}

