﻿/*Introduce the root variable , it will change the color of one project in one go --Jinish Gandhi*/
:root {
    --primary-bg: linear-gradient(135deg, #2f8fa3, #4fb3c8);
    --primary-gradient: linear-gradient(135deg, #2f8fa3, #4fb3c8);
    --primary-teal: #3596ab;
    --primary-teal-dark: #2a7c8e;
    --primary-teal-light: #5bb6c9;
    --text-dark: #0f172a; /* better than pure black */
    --text-muted: #64748b;
    --text-light: #ffffff;
    --border-light: #d1e7ec;
    --border-color: #e4e6eb;
    --radius-md: 12px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-hover: 0 8px 16px rgba(0,0,0,0.1);
    /* New theme for ruth starts here */
    --header-bg: #ffffff;
    --header-text: #2c3e50;
    --header-accent: #17a2b8; /* Teal Bottom Border */

    --btn-primary-bg: #f3ad1c; /* Golden Orange Button */
    --btn-primary-hover: #e09e04; /* Darker Orange Hover */
    --btn-primary-text: #000000; /* Black Text on Button */

    --input-border: #cbd5e1; /* Grey border for dropdowns */
    --bg-color: #f4f6f8;
    --card-beige-bg: #F9F6F0; /* The default card background */
    --card-beige-hover: #f8f9fa; /* The whitish-grey hover state */
    --card-status-bg: #EDE4D9; /* The dark beige for status badges */
    --danger-red: #e11d48;
    --danger-border: #fecdd3;
    --danger-bg-hover: #fff1f2; /* Faint red for hover backgrounds */
    --input-bg: #f8fafc;
    --focus-blue: #297eff;
    --focus-shadow: rgba(41, 126, 255, 0.15);
}


/* Merged .tableContainer duplicates */
.tableContainer {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-content: center;
    text-align: center;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    border: 1px solid #f3f4f6;
}

.heading {
    display: flex;
    justify-content: center;
    text-align: center;
}


.upload-btn {
    background: linear-gradient(135deg, #0056b3, #297eff);
    border: none;
    color: #fff;
    width: 100%;
    padding: 0.85rem;
    font-size: 1.05rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all .25s ease;
    margin-bottom: 3rem; /* Taken from the second instance */
}

.upload-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(0,0,0,.2);
    }

.upload-btn:active {
        transform: scale(.97);
    }

.upload-btn-sm {
    width: auto !important;
    padding: 6px 14px;
    font-size: 14px;
    border-radius: 0px;
}

.btn-icon {
    background: transparent;
    border: none;
    color: #0056b3;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-icon:hover {
        transform: scale(1.2);
        color: #297eff;
    }

.btn-open-modal {
    padding: 1rem;
    border-radius: 3px;
    cursor: pointer;
}

.fa-pencil {
    color: black;
}

.fa-pencil:hover {
        transform: scale(1.2);
    }

.fa-trash {
    color: red;
}

.fa-trash:hover {
    transform: scale(1.2);
}

    /* Grouped identical Hover styling for both tables */
/* =========================================
   Modals & Loaders
   ========================================= */
.modalContainer {
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-container-modal {
    display: none;
}

/* Custom Close Button */
.btn-close-custom {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: #9ca3af;
    cursor: pointer;
    line-height: 1;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 100;
}

    .btn-close-custom:hover {
        color: #ef4444;
        background-color: #fef2f2;
    }

/* UI Dialog Overrides */
div[aria-describedby="myModal"] .ui-dialog-titlebar,
div[aria-describedby="myModal"] .ui-dialog-buttonpane {
    display: none !important;
}

/* Loader Animation */
.loader {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.loader[style*="display: block"] {
    display: flex !important;
}

.bar {
    display: inline-block;
    width: 3px;
    height: 20px;
    background-color: rgba(255, 255, 255, .5);
    border-radius: 10px;
    animation: scale-up4 1s linear infinite;
}

.bar:nth-child(2) {
    height: 35px;
    margin: 0 5px;
    animation-delay: .25s;
}

.bar:nth-child(3) {
    animation-delay: .5s;
}

@keyframes scale-up4 {
    20% {
        background-color: #ffff;
        transform: scaleY(1.5);
    }

    40% {
        transform: scaleY(1);
    }
}

.content-blurred {
    filter: blur(10px);
    pointer-events: none;
    transition: filter 0.3s ease;
}

/* Drag and Drop Zone - Modern dashed look */
.upload-drop-zone {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    background-color: var(--primary-bg);
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* Hover effects for the drop zone */
.upload-drop-zone:hover,
.upload-drop-zone.dragover {
    border-color: var(--primary-bg); /* Matches your brand blue */
    background-color: #eff6ff;
    color: var(--primary-bg);
}

.upload-icon {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.upload-text {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
}

.filename-display {
    margin: 0.2rem 0;
    font-size: 0.8rem;
    color: #333;
    font-weight: 600;
    min-height: 0.3rem; /* Prevents layout jump */
}
.remove-file-icon {
    color: #dc3545;
    cursor: pointer;
    margin-left: 2px;
    font-size: 0.7rem;
    vertical-align: super;
    transition: color 0.2s;
}

    .remove-file-icon:hover {
        color: #a71d2a;
    }

/* Helper to hide file input */
.hidden {
    display: none;
}

.btn-green {
    display: inline-flex;
    align-items: center;
    background: var(--primary-gradient);
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(41, 126, 255, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    flex: 1;
    padding: 0.6rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    justify-content: center;
    gap: 0.5rem;
    padding-right: 2.5%;
}

    .btn-green:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(41, 126, 255, 0.4);
        color: white;
    }


.btn-gradient {
    width: 100%;
    padding: 0.7rem;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background: linear-gradient(135deg, #0056b3, #297eff);
    background-size: 110% auto;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(41, 126, 255, 0.2);
}

.btn-gradient:hover {
    background-position: right center;
    box-shadow: 0 6px 16px rgba(41, 126, 255, 0.35);
}

.btn-gradient:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(41, 126, 255, 0.2);
}


.btn-action {
    flex: 1;
    padding: 0.6rem;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

    .btn-action:hover {
        background: white;
        color: var(--primary-bg);
        border-color: var(--primary-bg);
    }

    /* Distinguish "View" as primary action */
    .btn-action.btn-view {
        background-color: var(--primary-bg); /* Very light blue */
        color: var(--primary-bg);
        border-color: transparent;
    }

        .btn-action.btn-view:hover {
            background-color: var(--primary-bg);
            color: white;
        }

.mt-2{
    margin-top: 2%;
}

.ml-85 {
    margin-left: 85%
}

.ml-90 {
    margin-left: 90%
}

.ml-89 {
    margin-left: 89%
}

.ml-72 {
    margin-left: 72%
}

.ml-55{
    margin-left:55%
}


/* --- Top Controls Row --- */
.controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.ml-87
{
    margin-left:87%
}
.btn-cancel, .btn-submit {
    padding: 0.7rem 1.4rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
}

.btn-cancel {
    background-color: #f3f4f6;
    color: #4b5563;
}

/* Swal confirm message */
.swal-minimal-popup {
    border-radius: 12px !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

.swal-minimal-title {
    font-size: 1.15rem !important;
    color: var(--text-dark, #0f172a) !important;
    margin: 0 0 0.4rem 0 !important;
    padding: 0 !important;
    font-weight: 600 !important;
}

.swal-minimal-text {
    font-size: 0.9rem !important;
    color: var(--text-muted, #64748b) !important;
    margin: 0 !important;
}

.swal-minimal-actions {
    margin-top: 1.25rem !important;
    gap: 8px;
}

.swal-btn {
    display: inline-block;
    padding: 6px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.swal-btn-danger {
    background-color: #fff;
    color: #e11d48;
    border-color: #fecdd3;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

    .swal-btn-danger:hover {
        background-color: #e11d48;
        color: white;
        border-color: #e11d48;
    }

.swal-btn-cancel {
    background-color: #fff;
    color: #64748b;
    border-color: #e2e8f0;
}

    .swal-btn-cancel:hover {
        background-color: #f8fafc;
        color: #0f172a;
        border-color: #cbd5e1;
    }

/* VALIDATION SECTION */

.form-label {
    display: block;
    align-items: center;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
    white-space: nowrap; /* Forces text to stay on one line */
}

.form-group label {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
    white-space: nowrap;
}

.asterisk {
    color: #ef4444;
    margin-left: 3px; 
    margin-right: 12px; 
}

.validation-msg {
    color: #ef4444;
    font-size: 0.85rem;
    font-weight: 500;
    display: none;
}
.is-invalid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}