:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-900: #111827;
    --primary-color: #1e1450;
}
.card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toast {
    opacity: 1 !important; /* Increase the opacity */
}
.page-header {
    color: #1e1450; /* Increase the opacity */
}
@font-face {
    font-family: 'Pilat';
    src: url('/fonts/PilatLight.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}


html, body {
    font-family: 'Pilat', sans-serif !important;
}


.search-container {
    position: relative;
    flex-grow: 1;
    max-width: 300px;
}

.search-input {
    width: 100%;
    padding: 0.5rem 0.75rem 0.5rem 2rem;
    border-radius: 0.375rem;
    border: 1px solid var(--gray-300);
    outline: none;
    font-size: 0.875rem;
    transition: all 0.2s;
}

    .search-input:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1);
    }

.search-icon {
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-500);
}
.glb-btn-action {
    background: transparent linear-gradient(270deg, #1e1343 0%, #261d5e 23%, #312a82 54%, #5154b6 100%) 0% 0% no-repeat padding-box;
    border: none;
    box-shadow: 0 4px 10px rgba(15, 37, 87, 0.2);
    border-radius: 8px;
    padding: 10px 20px;
    transition: all 0.3s ease;
    color: white;
    position: relative;
}



.glb-btn-action:hover,
.glb-btn-action:hover {
    background-color: #e0e0e0;
    color: white;
}



html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}




/* Save Button */
.btn-save {
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

    .btn-save:hover {
        background-color: #218838;
    }

    .btn-save:active {
        background-color: #1e7e34;
    }
.action-btn {
    padding: 0.25rem;
    border-radius: 0.25rem;
    background-color: transparent;
    border: none;
    cursor: pointer;
 
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

div.dataTables_wrapper .dataTables_length,
div.dataTables_wrapper .dataTables_filter {
    margin-bottom: 15px;
}
   

    .action-btn.complete:hover {
        color: var(--success);
    }

    .action-btn.pin:hover {
        color: var(--warning);
    }

    .action-btn.edit:hover,
    .action-btn.edit-table:hover {
        color: var(--primary);
    }


    .action-btn.reopen:hover {
        color: var(--warning);
    }

    .action-btn.delete:hover {
        color: var(--danger);
    }
    .action-btn.task:hover {
        color: var(--success);
    }
    .action-btn.view:hover {
        color: var(--primary);
    }


/* Base minimal outline button */
.btn-minimal {
    background-color: transparent;
    color: #1e1450;
    border: 1px solid transparent;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #1e1450;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

    /* Hover state: very light grey outline and fill */
    .btn-minimal:hover {
        background-color: rgba(0, 0, 0, 0.03);
        border-color: #ccc;
    }

    /* Primary version (e.g., Save) with blue outline */
    .btn-minimal.primary {
        color: #0067c5;
        border-color: #0067c5;
    }

        /* Primary hover */
        .btn-minimal.primary:hover {
            background-color: rgba(0, 103, 197, 0.06);
            border-color: #004e9a;
        }

    /* Optional: disabled state */
    .btn-minimal:disabled {
        color: #999;
        border-color: #ddd;
        cursor: not-allowed;
        background-color: transparent;
    }


.task-ui-wide {
    width: 600px !important; /* Adjust this to make the form wider or set a specific pixel width */
    max-width: 900px; /* You can set a maximum width to prevent it from becoming too wide */
   
}

.task-ui {
    width: 280px;
 
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-top: 20px;
    position: absolute;
    z-index: 1000;
    display: none;

}






.task-input {
    padding: 16px;
    
}

.task-field {
    margin-bottom: 6px;
}

    .task-field input[type="text"],
    .task-field input[type="datetime-local"] {
        width: 100%;
        border: none;
        font-size: 14px;
        padding: 4px;
        box-sizing: border-box;
        outline: none;
    }

    .task-field label {
        display: block;
        margin-bottom: 4px;
        font-size: 14px;
        color: midnightblue;
       
        font-weight: 500;
    }


    .task-field .checkbox {
        display: inline-block;
        width: 18px;
        height: 18px;
        border: 2px solid #030303;
        border-radius: 4px;
        margin-right: 8px;
        vertical-align: middle;
    }

.task-field-wrapper {
    position: relative;
}

.task-options {
    display: flex;
    margin-top: 12px;
    color: #666;
    font-size: 14px;
}

.task-option {
    display: flex;
    align-items: center;
    margin-right: 16px;
    cursor: pointer;
}

    .task-option i {
        margin-right: 4px;
        color: #777;
    }


.add-more-details-btn {
    background-color: #7A73D1;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px;
    width: 100%;
    font-size: 14px;
    cursor: pointer;
    margin-top: 16px;
}

.add-task-btn {
    background-color: #328E6E;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px;
    width: 100%;
    font-size: 14px;
    cursor: pointer;
    margin-top: 16px;
}



.task-item {
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
}

.task-item-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 50%;
    margin-right: 12px;
}

.task-item-content {
    flex-grow: 1;
}

.task-item-title {
    font-size: 14px;
    margin-bottom: 4px;
}

.task-item-date {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #777;
}

    .task-item-date i {
        margin-right: 4px;
        font-size: 14px;
    }

.task-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #9c27b0;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.meeting-form {
    display: block;
    
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    padding: 5px 5px;
}

    .input-with-icon input {
        flex-grow: 1;
     
    }

    
    .input-with-icon i {
        font-size: 18px;
        color: #555;
        min-width: 20px;
        text-align: center;
    }
    .input-with-icon .form-control {
        flex: 1;
        border: none;
        outline: none;
        font-size: 14px;
        background: transparent;
    }
        .input-with-icon .form-control:focus {
            outline: none;
            box-shadow: none;
            border-color: #ccc;
        }


    .input-with-icon select.form-control {
        flex: 1;
        border: none;
        outline: none;
        font-size: 14px;
        padding: 5px 4px;
        background: transparent;
        color: #333;
    }


.pinned-icon {
    stroke: #f39c12; /* Golden yellow */
    fill: none;
}


.button-group {
    display: flex;
    gap: 35px;
    margin-top: 15px;
}
.close-btn {
    position: absolute;
    top: 3px;
    right: 1px;
    background: transparent;
    border: none;
    font-size: 10px;
    cursor: pointer;
    color: #888;
    z-index: 10;
}

    .close-btn:hover {
        color: #000;
    }

input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    opacity: 0;
    position: absolute;
    right: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}


.custom-datetime-picker i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    pointer-events: none;
}




.custom-datetime-picker input:valid + .fake-placeholder,
.custom-datetime-picker input:not(:placeholder-shown) + .fake-placeholder {
    display: none;
}


.switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 20px;
    top: 1px;
    margin-left: 4px;
}

    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 12px;
        width: 12px;
        border-radius: 50%;
        left: 4px;
        bottom: 4px;
        background-color: white;
        transition: .4s;
    }

input:checked + .slider {
    background-color: #5F8B4C;
}

    input:checked + .slider:before {
        transform: translateX(14px);
    }

.notify-text {
    margin-right: 20px;
    font-size: 14px;
}

.suggestions-box {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: none;
}

.suggestion-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
}

    .suggestion-item:hover {
        background-color: #f8f9fa;
    }

.suggestion-name {
    margin-left: 8px;
}

.selected-members-list {
    max-height: 100px;
    overflow-y: auto;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.selected-member-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
}

.member-info {
    display: flex;
    align-items: center;
}

.selected-member-name {
    font-size: 14px;
    margin-left: 8px;
}

.member-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #9c27b0;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.remove-member-btn {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    font-size: 14px;
}


/* Layout for input rows */
.task-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.task-field {
    flex: 1 1 calc(33.333% - 15px); /* Three columns per row */
    box-sizing: border-box;
}

    /* Make sure input elements take up available space */
    .task-field input,
    .task-field textarea {
        width: 100%; /* Ensure inputs and textareas take up full space */
    }

    /* Make the file upload field occupy more space */
    .task-field.full-width {
        flex: 1 1 calc(66.666% - 15px); /* Make file upload field take more space (2/3 of the row) */
    }

/* Make sure fields stack correctly on smaller screens */
@media (max-width: 768px) {
    .task-field {
        flex: 1 1 100%; /* Stack fields on smaller screens */
    }
}





.task-reopened-animation {
    animation: rowReopenedFlash 0.5s ease-in-out;
}




.task-card.task-reopened {
   
    outline: 1px solid #ffc107;
    box-shadow: 0 0 8px rgba(255, 193, 7, 0.3); /* Soft yellow glow */
}

#task-list tr.task-reopened > td:first-child {
    border-left: 5px solid #ffc107;
    padding-left: 10px; /* Add some spacing so content doesn't touch the border */
}



/* Modal Styles */
.modalReopen {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Black with opacity */
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    width: 300px;
}

.btn {
    padding: 10px 20px;
    margin: 10px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
}

#confirmReopen {
    background-color: #4CAF50;
    color: white;
}

#cancelReopen {
    background-color: #f44336;
    color: white;
}

.task-card.deleted {
    opacity: 0; /* Fade out */
    transition: opacity 0.3s ease;
}

.progress-bar-container {
    background-color: var(--gray-100);
    border-radius: 0.25rem;
    height: 0.375rem;
    width: 100%;
    overflow: hidden;
}

.progress-bar {
    background-color: var(--success);
    height: 100%;
}


.glb-import {
    background: linear-gradient(135deg, #006400, #004d40);
    border: none;
    color: #fff;
    padding: 10px 20px;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}


/* Dimming background */
#dimBackdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
    z-index: 999;
    display: none;
}

/* Popup should be above the backdrop */
#taskUi, #extraDetailsForm {
    position: absolute;
    z-index: 1001;
}
/* Global transition setup */
.fade-transition {
    transition: opacity 0.3s ease;
    opacity: 0;
    display: none; /* Start hidden */
}

    .fade-transition.show {
        transition: opacity 0.3s ease;
        display: block;
        opacity: 1;
    }


.dataTable tbody tr {
    height: 10px; /* or any smaller value */
}

.dataTable tbody td {
    padding: 2px 8px !important; /* reduces cell padding */
    font-size: 14px; /* optional: adjust font size too */
}



.owner-initial {
    background: transparent linear-gradient(270deg, #1e1343 0%, #261d5e 23%, #312a82 54%, #5154b6 100%) 0% 0% no-repeat padding-box;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 0.625rem;
}

.owner-chip {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    max-width: fit-content;
}

.remove-chip-btn {
    
    color: black;
    border: none;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .remove-chip-btn:hover {
        background-color: #c0392b; /* Darker red on hover */
    }

.remove-icon {
    font-size: 8px;
    line-height: 1;
}

#membersContainer {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Space between columns */
}

.member-column {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Space between chips in a column */
}
#membersContainerWrapper {
    max-height: 200px;
    overflow-y: auto;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #f9f9f9;
}

.member-column {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}


.sticky-label-wrapper {
    position: sticky;
    top: -15px;
    background-color: #fff; /* Match your modal background */
    z-index: 1;
    padding-top: 5px;
    padding-bottom: 5px;
}


.rating-filter {
    display: flex;
    flex-direction: row-reverse;
    font-size: 1.2rem;
}

    .rating-filter input {
        display: none;
    }

.star-label {
    color: #e0e0e0;
    cursor: pointer;
    margin-right: 3px;
    transition: all 0.2s ease;
}

.rating-filter input:checked ~ label {
    color: #f39c12;
}

.rating-filter label:hover,
.rating-filter label:hover ~ label {
    color: #f39c12;
    transform: scale(1.2);
}

.chip-label {
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

.status-chips {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

    .status-chips .btn {
        font-size: 0.75rem;
        border-radius: 30px;
        transition: all 0.2s;
    }

.btn-check:checked + .btn {
    transform: scale(1.05);
    font-weight: 500;
}

.form-control:focus, .btn:focus {
    box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.25);
}

.form-control-sm {
    height: calc(1.5em + 0.5rem + 2px);
}

.input-group-sm .input-group-text {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.modal-content {
    border-radius: 12px;
    overflow: hidden;
}

.modal-header.bg-dark {
    background-color: var(--primary-color) !important;
}
.swal2-button-space {
    gap: 10px; /* or your preferred spacing */
    display: flex;
    justify-content: center;
}




.toggle-wrapper {
    position: relative;
    display: inline-block;
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #ccc;
    min-width: 200px;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

    .dropdown ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

        .dropdown ul li {
            padding: 8px 12px;
            cursor: pointer;
        }

            .dropdown ul li:hover {
                background-color: #f0f0f0;
            }


