:root {
    --r24k-bp-red:#b22222;
	--r24k-bp-red44:#b2222244;
	--r24k-bp-redAA:#b22222AA;
    --r24k-bp-blue:#003087;
	--r24k-bp-blue22:#00308722;
	--r24k-bp-blue33:#00308733;
	--r24k-bp-blue99:#00308799;
}

/* === Layout Wrapper === */
.r24k-bp-layout {
    display: flex;
    min-height: 100vh;
}
#r24k-bp-main-nav a:first-child {
    margin-right: 20px;
}
/* === Header === */
.r24k-bp-header {
    align-items: center;
    background: var(--r24k-bp-blue);
    color: #fff;
    display: flex;
    height: 34px;
    justify-content: space-between;
    padding: 14px !important;
    position: sticky;
    top: 0;
    z-index: 200;
}
header .avatar-28 {
    border-radius: 3px;
    height: 26px;
    margin-right: 10px;
    width: 26px;
}
#r24k-bp-goto-today {
    padding:0 8px;
}
.r24k-bp-header button {
    margin-left: 15px;
}
.r24k-bp-avatar-button  {
    padding: 0 10px 0 0 !important;
    text-transform: capitalize !important;
}
/* === Sidebar === */
.r24k-bp-sidebar {
    background: #f8f8f8;
    border-right: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 64px); /* Adjusting for fixed header height */
    position: fixed;
    top: 62px; /* Top offset for header */
    left: 0;
    width: 240px;
    transition: width 0.3s ease;
    z-index: 100;
}
/* When sidebar is collapsed */
.r24k-bp-sidebar.collapsed {
    width: 48px; /* Shrinks to 48px */
}
/* === Sidebar Header === */
.r24k-bp-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}
.r24k-bp-border-left {
    border-left: 1px dotted #ccc;
}
/* Unassigned Tasks Count */
.r24k-bp-unassigned-count {
    background-color: var(--r24k-bp-redAA);
    border-radius: 5px;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    padding: 0 12px;
    text-align: center;
}
.r24k-bp-sidebar-title {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#r24k-bp-modal-task-button-bar button {
    margin-right: 20px;
}
/* Hide the sidebar title when collapsed */
.r24k-bp-sidebar.collapsed .r24k-bp-sidebar-title {
    display: none;
}
.r24k-bp-task-delete-checkbox {
    margin-top: -2px !important;
}
.uk-tooltip {
    max-width: 360px !important;
}
/* === Sidebar Tasks Area === */
.r24k-bp-sidebar-tasks {
    overflow-y: auto;
    padding: 8px 12px 0;
    min-height: 0;
}
/* When sidebar is collapsed, hide content and animate its width */
.r24k-bp-sidebar.collapsed > :not(.r24k-bp-sidebar-togglebar) {
    width: 40;
    opacity: 0;
    overflow: hidden; /* Prevent content overflow when collapsed */
    transition: width 0.7s ease, opacity 0.3s ease; /* Smooth transition for width and opacity */
}
/* When sidebar is expanded, show content and restore width */
.r24k-bp-sidebar > :not(.r24k-bp-sidebar-togglebar) {
    width: auto;
    opacity: 1;
    transition: width 0.7s ease, opacity 0.3s ease; /* Smooth transition for width and opacity */
}
/* Sidebar toggle button should not be affected by the width transition */
.r24k-bp-sidebar-togglebar {
    width: auto;
    opacity: 1;
}

/* === Drop Zone Base Styling === */
.r24k-bp-drop-zone {
    background-color: #ffffff;
    transition: background-color 10s ease;
}

/* === Hidden Blocks (initial state) === */
.morning-block.r24k-bp-hide .r24k-bp-drop-zone,
.evening-block.r24k-bp-hide .r24k-bp-drop-zone {
    background-color: #9cdbcd22; /* light blue when hidden */
}

/* === Visible Blocks (after toggle) === */
.morning-block:not(.r24k-bp-hide) .r24k-bp-drop-zone,
.evening-block:not(.r24k-bp-hide) .r24k-bp-drop-zone {
    background-color: #ffffff; /* transitions to white */
}

/* Drop zone default */
.r24k-bp-drop-zone {
    background-color: #ffffff;
    transition: background-color 0.8s ease, opacity 0.8s ease;
}

/* === Time Toggle Buttons === */
.r24k-bp-toggle-sidebar {
    background: none;
    border: 1px solid #ddd;
    border-radius: 5px;
    color: #666;
    cursor: pointer;
    font-size: 14px;
    margin: 10px 10px 0;
    padding: 8px 20px;
}

.collapsed .r24k-bp-toggle-sidebar {
    padding: 8px;
}
/* === Main Content === */
.r24k-bp-main {
    flex-grow: 1;
    padding: 16px;
    transition: margin-left 0.3s ease;
    width: calc(100% - 270px);
}

/* When sidebar collapses, shift the main content */
.r24k-bp-sidebar.collapsed + .r24k-bp-main {
    margin-left: 48px;  /* When sidebar collapses */
}

.r24k-bp-sidebar + .r24k-bp-main {
    margin-left: 240px; /* When sidebar is expanded */
}

/* === Task Block Style (inside sidebar) === */
.r24k-bp-task-block {
    background: #1e87f0;
    border-radius: 3px;
    color: #fff;
    cursor: move;
    font-size: 12px;
    margin-bottom: 6px;
    padding: 6px 8px;
    transition: background 0.2s ease;
}

.r24k-bp-task-block:hover {
    background: #0f7ae5;
}

/* === Flex Container for Time and Drop Zone === */
.r24k-bp-time-drop-container {
    align-items: stretch; 
    border: 1px solid #ddd;
    border-radius: 6px;
    display: flex;
}

/* === Time Label === */
.r24k-bp-drop-zone-info {
    background: #f0f0f0;
    border-right: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
    color: #666;
    font-size: 14px;
    font-weight: bold;
    padding: 10px;
    text-align: center;
    width: 40px;
}

/* === Drop Zone === */
.r24k-bp-drop-zone {
    background: #fff;
    border-radius: 0 5px 5px 0;
    min-height: 44px;
    padding: 10px;
    transition: background 0.2s ease;
    flex-grow: 1; /* Make drop zone fill available space */
}
.r24k-bp-drop-zone:hover {
    background: #f0f8ff;
}

/* === Sidebar Toggle Buttons === */
.r24k-bp-sidebar-toggle-buttons {
    margin: 10px 0;
}
/* === Hide Blocks by Default === */
.r24k-bp-hide {
    display: none;
}
/* === Time Toggle Buttons === */
.r24k-bp-sidebar-toggle-buttons > * {
    margin: 5px 10px !important;
}
.r24k-bp-sidebar-toggle-buttons button {
    min-width: calc(100% - 20px);
}
/* === Grid Blocks === */
.r24k-bp-grid-block {
    background: #fff;
    border-top: 1px solid #eee;
    font-size: 12px;
    padding: 4px 8px;
    position: relative;
}

.r24k-bp-hour-start {
    background: #f7f7f7;
    border-top: 1px solid #ccc;
    font-weight: bold;
}

.r24k-bp-time-label {
    color: #666;
    display: inline-block;
    width: 100%;
}

/* === Sidebar Scrollbar === */
.r24k-bp-sidebar-tasks::-webkit-scrollbar {
    width: 6px;
}

.r24k-bp-sidebar-tasks::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.15);
    border-radius: 3px;
}

/* === Responsive Adjustments === */
@media (max-width: 768px) {
    .r24k-bp-sidebar {
        height: auto;
        position: relative;
        width: 100%;
    }

    .r24k-bp-main {
        margin-left: 0 !important;
    }
}


/* === Sidebar Task Summary === */
.r24k-bp-task-summary {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 4px 0;
    padding: 8px 10px;
    font-size: 13px;
    line-height: 1.4;
    cursor: pointer;
    transition: background 0.3s ease;
}
.r24k-bp-task-summary:hover {
    background: #f0f8ff;
}
.r24k-bp-task-title {
    font-weight: 600;
}
.r24k-bp-task-meta {
    color: #777;
    font-size: 12px;
}

.r24k-bp-unassigned-drop-target {
    background-image: repeating-linear-gradient(
        45deg,
        #f0f0f0,
        #f0f0f0 10px,
        #e0e0e0 10px,
        #e0e0e0 20px
    );
}
#r24k-bp-sidebar-unassigned-blocks {
    max-height: calc(100vh - 480px);
    min-height: 40px;
    overflow-y: auto;
    padding: 10px;
}

#r24k-bp-sidebar-unassigned-blocks {
    position: relative;
    overflow: visible !important;
    z-index: 1000;
}


/* === Sidebar Draggable Blocks === */
.r24k-bp-task-drag-container {
    margin-top: 8px;
}
.r24k-bp-draggable-block {
    background: #e7f4ff;
    border: 1px solid #ddd;
    border-radius: 4px;
    height: 46px !important;
    padding: 10px !important;
}
.r24k-bp-draggable-block:hover {
    background: #d4ecff;
}
.r24k-bp-task-icon {
    flex: 0 0 auto;
    margin-right: 6px;
}

.r24k-bp-task-title {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* General alert styling */
.r24k-bp-alert {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 30px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 80%;
    z-index: 9999;
    display: none; /* Hidden by default */
    transition: opacity 0.5s ease;
}

/* Success alert */
.r24k-bp-alert-success {
    background-color: #d4edda;
    color: #155724;
}

/* Error alert */
.r24k-bp-alert-error {
    background-color: #f8d7da;
    color: #721c24;
}
#r24k-bp-project-time-wrapper {
    height: calc(100vh - 155px);
}
/* Warning alert */
.r24k-bp-alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

/* Fade out animation */
.r24k-bp-alert.fade-out {
    opacity: 0;
    display: none;
}
#r24k-bp-status-bar {
    background: #fff;
    margin-right: -1px;
    padding: 10px;
    position: sticky;
        top: 62px;
    z-index: 111;
}
/* Alert close button (optional) */
.r24k-bp-alert-close {
    position: absolute;
    top: 5px;
    right: 10px;
    cursor: pointer;
}
.r24k-bp-time-drop-container .uk-card {
    border: 1px solid #ccc;
    border-radius: 5px;
}
/* Status color styles */
.r24k-bp-time-drop-container .assigned {
    background-color: #f4f4f4; /* Light grey */
}

.r24k-bp-time-drop-container .billed {
    background-color: #e6f0fa; /* Light blue */
}

.r24k-bp-time-drop-container .working {
    background-color: #f0f8f0; /* Light green */
}

.r24k-bp-time-drop-container .locked {
    background-color: #fae6e6; /* Light red */
}

.r24k-bp-time-drop-container .planned {
    background-color: #fff9e6; /* Light yellow */
}

.r24k-bp-time-drop-container .idea {
    background-color: #f5e5b7; /* Light gold */
}
.r24k-bp-time-drop-container .completed {
    background-color: #e6fafa; /* Light turquoise */
}

.r24k-bp-time-drop-container .cancelled {
    background-color: #fde6ec; /* Light pink */
}

/* Icon color (darker shades) */
.r24k-bp-time-drop-container .assigned i {
    color: #888888; /* Darker grey */
}

.r24k-bp-time-drop-container .billed i {
    color: #3a7ca5; /* Darker blue */
}

.r24k-bp-time-drop-container .working i {
    color: #6a9f6b; /* Darker green */
}

.r24k-bp-time-drop-container .locked i {
    color: #d34a4a; /* Darker red */
}

.r24k-bp-time-drop-container .planned i {
    color: #e1a900; /* Darker yellow */
}

.r24k-bp-time-drop-container .idea i {
    color: #9a7b34; /* Darker gold */
}

.r24k-bp-time-drop-container .completed i {
    color: #16a1a1; /* Darker turquoise */
}

.r24k-bp-time-drop-container .cancelled i {
    color: #e0325d; /* Darker pink */
}

/* Hover effect on icons */
.r24k-bp-time-drop-container  i:hover {
    transform: scale(1.1);
}


/* Status icon colors in the modal */
.uk-icon-status {
    font-size: 24px;
    padding: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 50%;
    transition: all 0.3s ease;
    color: #888888; /* Default icon color (grey) */
}

/* Status colors for icons in the modal */
.uk-icon-status[data-status="assigned"] {
    background-color: #f4f4f4;
    color: #888888; /* Darker grey for assigned */
}
.uk-icon-status[data-status="billed"] {
    background-color: #e6f0fa;
    color: #3a7ca5; /* Darker blue for billed */
}
.uk-icon-status[data-status="working"] {
    background-color: #f0f8f0;
    color: #6a9f6b; /* Darker green for working */
}
.uk-icon-status[data-status="locked"] {
    background-color: #fae6e6;
    color: #d34a4a; /* Darker red for locked */
}
.uk-icon-status[data-status="planned"] {
    background-color: #fff9e6;
    color: #e1a900; /* Darker yellow for planned */
}
.uk-icon-status[data-status="idea"] {
    background-color: #f5e5b7;
    color: #9a7b34; /* Darker gold for idea */
}
.uk-icon-status[data-status="completed"] {
    background-color: #e6fafa;
    color: #16a1a1; /* Darker turquoise for completed */
}
.uk-icon-status[data-status="cancelled"] {
    background-color: #fde6ec;
    color: #e0325d; /* Darker pink for cancelled */
}

/* Hover effect */
.uk-icon-status:hover {
    transform: scale(1.1);
}
/* Active icon (selected status in the modal) */
.uk-icon-status.active {
    border-color: #007bff;
    background-color: #d4edda; /* Light green for active status */
    color: #155724;
}
#r24k-bp-status-icons i {
    font-size: 18px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    width: 24px;
}

/* Style for each status item */
.r24k-bp-status-item {
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    display: flex;
    margin-right: 28px !important;
    padding: 3px 10px;
}

/* Icon styles */
.r24k-bp-status-icon {
    font-size: 16px;
    color: #333; /* Default icon color */
}

/* Count styles */
.r24k-bp-status-count {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-left: 4px;
}

/* Assigned Status */
.assigned-item .r24k-bp-status-icon {
    color: #f4a261; /* Example color for assigned */
}

/* Billed Status */
.billed-item .r24k-bp-status-icon {
    color: #2a9d8f; /* Example color for billed */
}

/* Approved Status */
.approved-item .r24k-bp-status-icon {
    color: #264653; /* Example color for approved */
}

/* Working Status */
.working-item .r24k-bp-status-icon {
    color: #e9c46a; /* Example color for working */
}

/* Locked Status */
.locked-item .r24k-bp-status-icon {
    color: #f1faee; /* Example color for locked */
}

/* Idea Status */
.idea-item .r24k-bp-status-icon {
    color: #e76f51; /* Example color for idea */
}

/* Completed Status */
.completed-item .r24k-bp-status-icon {
    color: #2a9d8f; /* Example color for completed */
}

/* Cancelled Status */
.cancelled-item .r24k-bp-status-icon {
    color: #e63946; /* Example color for cancelled */
}
.uk-modal-full .uk-modal-dialog {
    height: 100vh;
}
#r24k-bp-tasks-table-holder {
    height: calc(100vh - 140px);
    overflow-y: auto;
}
#r24k-bp-tasks-table thead {
    position: sticky;
    top: 0px;
    background: #fff;
    box-shadow: 1px 1px 5px #00000021;
}
#r24k-bp-tasks-table tr td:last-child,
#r24k-bp-tasks-table tr th:last-child {
    text-align: center;
    width: 60px;
}
.r24k-bp-block-title {
    display: inline-block !important;
    line-height: 24px;
    max-height: 24px;
    max-width: calc(100% - 25px);
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    white-space: normal;
    word-break: break-word;
}
#r24k-bp-edit-time-block-modal .uk-modal-title {
    margin-bottom: 0;
}
#r24k-bp-edit-task-title {
    margin-top: 5px;
}
.r24k-bp-modal-edit-task-container {
    border: 1px solid #ccc;
    border-radius: 5px;
}
.r24k-bp-modal-edit-task-container p {
    border-bottom: 1px solid #ccc;
    margin-bottom: 0;
}
.r24k-bp-modal-edit-task-container p span {
    display: inline-block;
    margin: 10px;
}
.r24k-bp-modal-edit-task-container .r24k-bp-time-drop-container {
    border: 0;
    height: 66px;
}
.r24k-bp-modal-edit-task-container .r24k-bp-time-drop-container .uk-card {
    border-radius: 5px;
    padding: 10px;
}
.r24k-bp-modal-edit-task-container .r24k-bp-drop-zone-info {
    border-radius: 0 0 0 5px;
}