
/* --- Root Variables for Colors --- */
:root {
    --pastel-blue   : #dbeafe;
    --pastel-green  : #dcfce7;
    --pastel-yellow : #fef9c3;
    --pastel-purple : #f3e8ff;
    --pastel-red    : #FEE2E2;
    --pastel-orange : #FFF7ED;
    
    --dark-blue   : #2563eb;
    --dark-green  : #16a34a;
    --dark-yellow : #ca8a04;
    --dark-purple : #9333ea;
    --dark-red    : #dc2626;
    --dark-orange : #C2410C;

    --dark        : #444;
    --bright      : #eee;
}

body {
    font-family: 'Outfit', sans-serif !important;
    color: #333;
    font-size: 0.9rem;
}

a.link, .status-badge {display: inline-flex; /* Use inline-flex to shrink-wrap content and center items */
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.6rem; /* Vertical padding (smaller) and horizontal padding (larger) */
    border-radius: 7px; /* Huge border radius for pill shape */
    font-size: 0.8rem; /* Smaller font size */
    font-weight: 500; /* Semi-bold text */
    line-height: 1; /* Ensure text sits correctly */
    text-transform: uppercase; /* Use uppercase for a professional look */
    white-space: nowrap; /* Prevent wrapping */
    vertical-align: middle;}

a.link i, .status-badge i, .pill-tab i {
    margin-right: 0.30rem; /* Small space between icon and text */
    vertical-align: middle;
    position: relative;
    top: 1px;
}

.bg-baby-blue {background-color: #dbeafe;}
.text-baby-blue {color: #2563eb;}
.progress>.bg-baby-blue {background-color: #2563eb !important;}
.bg-baby-blue-i {background-color: #2563eb;}
.text-baby-blue-i {color: #dbeafe;}

.bg-pastel-yellow {background-color: #fef9c3;}
.text-pastel-yellow {color: #ca8a04;}
.progress>.bg-pastel-yellow {background-color: #ca8a04 !important;}
.bg-pastel-yellow-i {background-color: #ca8a04;}
.text-pastel-yellow-i {color: #fef9c3;}

.bg-pastel-red {background-color: #FEE2E2;}
.text-pastel-red {color: #dc2626;}
.progress>.bg-pastel-red {background-color: #dc2626 !important;}

.bg-lavender {background-color: #f3e8ff;} 
.text-lavender {color: #9333ea;}
.progress>.bg-lavender {background-color: #9333ea !important;}

.bg-mint-green {background-color: #dcfce7;}
.text-mint-green {color: #16a34a;}
.progress>.bg-mint-green {background-color: #16a34a !important;}
.bg-mint-green-i {background-color: #16a34a;}
.text-mint-green-i {color: #dcfce7;}

.bg-soft-orange {background-color: #FFF7ED;}
.text-soft-orange {color: #C2410C;}
.progress>.bg-soft-orange {background-color: #C2410C !important;}

.text-info {color: #117a8b;}

.bg-pastel-pink {background-color: #ffaaa5;}
.bg-primary {background-color: #a2d2ff !important;}

.text-black {color: #333;}
.bg-black {background-color: #000 !important;}

.bg-primary {background-color: #a2d2ff !important;}

.sidebar-dark-custom {background-color: #111;}

@keyframes fade-in-up {
    from {
        opacity: 0; /* Start invisible */
        transform: translateY(20px); /* Start 20px below */
    }
    to {
        opacity: 1; /* End fully visible */
        transform: translateY(0); /* End at normal position */
    }
}

.card {
    border-radius: 1rem; box-shadow: none; border: 0px solid #fff;
    animation: fade-in-up 1s ease-out forwards;
    /* Ensure cards start hidden before animation begins */
    opacity: 0;
}

.card-header {border-bottom: 0px;}
.card-title {font-size: 1.3rem; padding: 1rem 0; text-transform: uppercase; font-weight: 500;}

/* 1. Base icon style (for transition) */
.card-header .fas {
    transition: transform 0.3s ease;
    transform: rotate(0deg); 
    margin-left: 10px; /* Optional spacing adjustment */
}

/* 2. Style when the header is expanded */
/* Target the icon when the card-header has aria-expanded="true" */
.card-header[aria-expanded="true"] .fas {
    transform: rotate(180deg);
}

/* Optional: Improve visual feedback on hover */
.card-header {
    user-select: none; /* Prevents text selection on click */
    
}

h5,h4 {color: #555 !important; line-height: 1.5 !important;}

label {
    font-weight: normal !important;
}

.form-group label {
    font-weight: normal !important;
}

.card-body label {
    font-weight: normal !important;
}

.page-item.active .page-link {background-color: #111 ; border-color: #222; color: #fff;}

/* Container for the prefix and input */
.input-prefix-wrapper {
    display: flex;
    align-items: stretch;
    border: 1px solid #d1d5db; /* Default gray border */
    border-radius: 0.25rem; /* Rounded corners for the whole group */
    overflow: hidden; /* Ensures child backgrounds don't bleed out */
    transition: border-color 0.2s, box-shadow 0.2s;
}

/* The RM Prefix box */
.input-prefix {
    display: flex;
    align-items: center;
    padding: 0 0.75rem;
    background-color: #f3f4f6; /* Light gray background */
    color: #6b7280; /* Gray text */
    font-size: 0.875rem;
    font-weight: 500;
    border-right: 1px solid #d1d5db; /* Separator line */
    user-select: none;
}

/* The Input itself */
.form-control-custom {
    flex: 1; /* Take up remaining space */
    border: none !important; /* Remove individual border */
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    outline: none;
    color: #495057;
}

.form-control-custom:disabled, .form-control-custom[readonly] {
    background-color: #e9ecef;
    opacity: 1;
}

.form-control {

    font-size: 0.875rem;

}


/* Focus state for the entire group */
.input-prefix-wrapper:focus-within {
    border-color: #3b82f6; /* Blue focus border */
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Handling Validation Errors */
.is-invalid-group {
    border-color: #ef4444 !important;
}

.invalid-feedback {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* drawer */
.right-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1050;
    padding-top: 60px;
    width: 320px;
    height: 100vh;
    background-color: #f4f6f9;
    /* box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1); */
    transition: transform 0.3s ease-in-out; 
    /* transform: translateX(100%); Start hidden off-screen right */
    display: flex;
    flex-direction: column;
    transform: translateX(0);
}

/* Class added by Bootstrap Collapse when opened */
/* .right-drawer.show {
    transform: translateX(0); /* Slide into view */
/* } */


/* Styling for the drawer header and body */
.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
    flex-shrink: 0; /* Ensures header does not shrink */
}

.drawer-body {
    padding: 1rem;
    /* NEW: Make body scrollable and flexible */
            flex-grow: 1; /* Take up all available vertical space */
            overflow-y: auto; /* Enable vertical scrolling */
}

#rightDrawer .table td,
        #rightDrawer1 .table th {
            word-break: break-word; 
            overflow-wrap: break-word; /* Ensures text doesn't overflow cell boundaries */
        }
        
/* Backdrop */
.drawer-backdrop1 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1049;
    /* background-color: rgba(0, 0, 0, 0.5); */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}

/* .drawer-backdrop.show {
    opacity: 1;
    pointer-events: auto;
} */
/* drawer ends */

/* @media (min-width: 768px) {
    body:not(.sidebar-mini-md):not(.sidebar-mini-xs):not(.layout-top-nav) .content-wrapper, body:not(.sidebar-mini-md):not(.sidebar-mini-xs):not(.layout-top-nav) .main-footer, body:not(.sidebar-mini-md):not(.sidebar-mini-xs):not(.layout-top-nav) .main-header {
        transition: margin-left .3s 
ease-in-out;
        margin-left: 400px; !important
    } */

.control-sidebar {
    width: 320px !important;
    /* Adding transition to the sidebar itself for smooth open/close */
    transition: width 0.3s ease-in-out;
}
.content-wrapper, 
.main-footer, 
.main-header {
    /* Ensure the closed state starts at 0px and has the transition applied */
    margin-right: 0px !important; 
    transition: margin-right 0.3s ease-in-out !important;
}

/* Define the opened state: This is the 400px margin */
.control-sidebar-slide-open .content-wrapper, 
.control-sidebar-slide-open .main-footer, 
.control-sidebar-slide-open .main-header1 {
    margin-right: 320px !important; /* Must exactly match the width set above */
}

/* Optional: To make the header elements line up correctly on the right */
.control-sidebar-slide-open .main-header1 .navbar-nav {
    margin-right: 320px !important;
}

/***home page */
/* .info-box .progress .progress-bar {background-color: #000 !important;} */
.info-box, .small-box {box-shadow: none; border-radius: 15px !important;}
.small-box>.inner, .info-box-icon {border-radius: 15px !important;}
.info-box-icon {font-size: 2.25rem !important; font-weight: 700; width: 90px !important;}

.login-page-custom {background-color: #f4f6f9;}
.dashboard-title {font-size: 2rem !important; font-weight: 500; color: #444;}
.status-title {font-size: 1.2rem; border-radius: 1rem; border: 0; padding: 1.35rem 0;}
.navbar-white-custom {border: 0px; background-color: #f4f6f9;}
.content-wrapper {background-color: #f4f6f9;}



/* --- Container Styling --- */
.pill-tab-group {
    display: flex;
    flex-wrap: wrap; /* Allows tabs to wrap on smaller screens */
    gap: 4px; /* Space between pills */
    border-radius: 7px; /* Makes it a full pill shape */
    border: 1px solid #ddd;
    padding: 12px;
}

/* --- Base Pill Tab Styling --- */
.pill-tab {
    /* Layout and Spacing */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    padding: 6px 14px;
    color: #666;
    /* Typography */
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3; /* Tighter line height for pill look */
    text-decoration: none;
    cursor: pointer;
    border-radius: 7px;
    /* Transition for smooth hover effects */
    transition: all 0.2s ease-in-out;
    text-transform: uppercase;
    width: 120px;
    
}

/* --- Hover and Focus States --- */
.pill-tab:hover {
    background-color: var(--dark);
    border-color: var(--dark);
    color: var(--bright);
}
.pill-tab:focus {
    outline: 0px solid var(--status-info); /* Accessibility focus ring */
    outline-offset: 2px;
}

/* --- Active State (Currently Selected Tab) --- */
.pill-tab.is-active {
    background-color: var(--dark); /* Dark background */
    color: white; /* White text */
    border-color: var(--dark);
}

.active-new.is-active {
    background-color: var(--pastel-blue);
    color: var(--dark-blue);
}

.active-submitted.is-active {
    background-color: var(--pastel-yellow);
    color: var(--dark-yellow);
}

.active-amend.is-active {
    background-color: var(--pastel-red);
    color: var(--dark-red);
}

.active-amended.is-active {
    background-color: var(--pastel-purple);
    color: var(--dark-purple);
}

.active-closed.is-active {
    background-color: var(--pastel-green);
    color: var(--dark-green);
}
