﻿
        tr td {
            padding-left: 5px;
            padding-right: 5px;
        }

        td label {
            margin-left: 5px; /* Adjust this value to control the space */
        }

        .radiobtn label {
            margin-left: 5px;
        }

        .form-check label {
            margin-left: 10px; /* Adjust the amount of space as needed */
        }

        .modalBackground {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
            z-index: 1050; /* Make sure it's above other elements */
            pointer-events: none; /* Disable interaction with the background */
        }

        textarea {
            border-width: 2px;
        }

            input:focus, textarea:focus {
                -moz-box-shadow: none !important;
                -webkit-box-shadow: none !important;
                box-shadow: none !important;
                border: 2px solid #25a0dA;
                outline-width: 0;
            }

        input {
            border: .5px solid #484646;
        }

        input, textarea {
            border: 1px solid #151414;
        }



        @media (max-width: 767.98px) {
            .bottom-fixed-mobile {
                position: fixed;
                right: 0;
                bottom: 0;
                left: 0;
                z-index: 1030;
            }
        }

        .fab-btn {
            position: fixed !important;
            bottom: 80px;
            right: 20px;
            background-color: #28a745 !important; /* Force success green */
            color: #fff !important;
            padding: 15px 20px;
            font-size: 15px;
            font-weight: 500;
            border-radius: 50px !important;
            display: flex !important;
            align-items: center;
            justify-content: center;
            transition: background-color 0.3s ease, transform 0.2s ease-in-out;

            z-index: 1000 !important; /* Lowered from 2000 to 1000 */
        }

            .fab-btn-notfix {
            background-color: #28a745 !important; /* Force success green */
            color: #fff !important;
            padding: 25px 40px;
            font-size: 25px;
            font-weight: 500;
            border-radius: 50px !important;
            z-index: 2000;
            display: flex !important;
            align-items: center;
            justify-content: center;
            transition: background-color 0.3s ease, transform 0.2s ease-in-out;
        }

            .fab-btn:hover {
                background-color: #218838 !important; /* darker green */
                transform: translateY(-3px);
            }


            .fab-btn i {
                font-size: 18px;
            }

            /* Keep your existing .fab-btn, but add this: */
@media (max-width: 768px) {
    .fab-btn span {
        display: none; /* Hides the text "Apply for Leave" on mobile */
    }
    .fab-btn i {
        margin: 0 !important; /* Centers the icon */
    }
}
.tooltip {
    pointer-events: none !important;
}


/* Turn the sidebar into a full flex column container */
#sidebar {
    position: fixed;
    top: 60px; /* Match Top Navbar height */
    bottom: 0;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 60px);
}

/* Force the lower block to claim remaining space and handle overflows */
.sidebar-scrollable-content {
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Apply sleek webkit scrollbar handle rules to container */
.sidebar-scrollable-content::-webkit-scrollbar {
    width: 5px;
}
.sidebar-scrollable-content::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar-scrollable-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

/* Only push the main panel over on desktop screens */
@media (min-width: 992px) {
    #sidebar {
        width: 260px;
    }
    
    .main-panel {
        margin-left: 260px;
        width: calc(100% - 260px);
    }
}

/* On mobile, the sidebar slides on top, so the main panel should be full width */
@media (max-width: 991.98px) {
    .main-panel {
        margin-left: 0;
        width: 100%;
    }
}



/*Basic Info*/

/* Custom utility styles for refined layout polish */
.font-weight-600 {
    font-weight: 600 !important;
}

.font-weight-medium {
    font-weight: 500 !important;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

.tracking-sm {
    letter-spacing: 0.02em;
}

/* Elegant Soft Badge Variant for Employee Status mapping */
.badge-soft-success {
    background-color: #e6f4ea;
    color: #137333;
}

/* Button close hover effect */
.btn-close-modern:hover {
    background-color: #f1f5f9;
    text-decoration: none;
}

.btn-close-modern:focus {
    outline: none;
}

/* Deep layout action button hover highlight transition state */
.btn-dark:hover {
    background-color: #0f172a !important;
}

/* Pad height spacing fix */
.py-2-5 {
    padding-top: 0.65rem !important;
    padding-bottom: 0.65rem !important;
}
/* Compact utility rules for a tight enterprise layout */
.py-2 {
    padding-top: 0.45rem !important;
    padding-bottom: 0.45rem !important;
}

.dropdown-label {
    font-size: 0.8rem !important; /* Brought down from 0.88rem */
}

.font-weight-medium {
    font-weight: 500 !important;
}

/* Fluid clean focus and hover overrides */
.navbar-dropdown .dropdown-item {
    transition: background-color 0.15s ease, color 0.15s ease;
    border-radius: 4px;
    margin: 0 4px;
    width: calc(100% - 8px);
    font-size: 0.8rem !important; /* Ensures raw text defaults correctly */
}

.navbar-dropdown .dropdown-item:hover, 
.navbar-dropdown .dropdown-item:focus {
    background-color: #f8fafc !important;
}

/* Explicit style handle for the logout action row split block */
.logout-wrapper:hover .dropdown-item {
    background-color: #fff1f2 !important;
    color: #e11d48 !important;
}



/* Core Dimension Adjustments */
.py-2-5 {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}

/* Micro Badge Trigger Position Fixes */
.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    top: 6px;
    right: 6px;
    border: 2px solid #ffffff;
}

/* Base Left Icon Badge Structural Frame */
.notif-icon-box {
    width: 32px;
    height: 32px;
    background-color: #f1f5f9;
    color: #64748b;
    font-size: 1rem;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s;
}

/* Clean Row Layout Foundations */
.notif-item {
    transition: all 0.15s ease;
    white-space: normal !important;
    background-color: #ffffff;
}

/* Sizing Typography Rules */
.notif-subject {
    font-size: 0.82rem !important;
    line-height: 1.4;
    letter-spacing: -0.1px;
}

.notif-time {
    font-size: 0.72rem !important;
    letter-spacing: 0.1px;
}

/* Unread Notification Accent States */
.notif-unread {
    background-color: #f8fafc; /* Subtle light tone variant */
}

.notif-unread .notif-icon-box {
    background-color: #e0f2fe; /* Light blue accent background */
    color: #0284c7;
}

.notif-unread .state-dot {
    position: absolute;
    top: 0;
    right: 0;
    width: 8px;
    height: 8px;
    background-color: #ef4444; /* Alert Notification Ring */
    border-radius: 50%;
    border: 2px solid #ffffff;
}

.notif-unread .notif-subject {
    font-weight: 600 !important;
    color: #0f172a !important;
}

/* Read Notification Subtle Graying Rules */
.notif-read .state-dot {
    display: none;
}

.notif-read {
    opacity: 0.85;
}

/* Hover and Interactive Mechanics */
.notif-item:hover {
    background-color: #f1f5f9 !important;
    text-decoration: none;
}

.notif-item:hover .notif-icon-box {
    transform: scale(1.05);
}

.view-all-btn {
    transition: all 0.2s ease;
}

.view-all-btn:hover {
    background-color: #e0f2fe !important;
    color: #0369a1 !important;
}

/* Standard utilities fallback layout logic */
.min-width-0 { min-width: 0; }
.mb-1 { margin-bottom: 0.25rem !important; }

.badge-soft-primary {
    background-color: #f0fdf4;
    color: #16a34a;
}
/* Fix for header layout cropping issues */
.navbar-dropdown img {
    max-height: 32px !important;
    width: 32px !important;
    object-fit: cover;
    border-radius: 50%;
    display: inline-block;
    vertical-align: middle;
}
/* 1. Make the scrollbar sleek, modern, and thin */
.notification-scroll-container::-webkit-scrollbar {
    width: 5px !important; /* Forces a very thin line */
}

.notification-scroll-container::-webkit-scrollbar-track {
    background: transparent !important; /* Hides the bulky gray track box */
}

.notification-scroll-container::-webkit-scrollbar-thumb {
    background: #cbd5e1 !important; /* Beautiful soft slate pill */
    border-radius: 20px !important;
}

.notification-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8 !important; /* Darkens slightly on mouse hover */
}

/* 2. Fix item selection and background blending on hover */
.notif-item {
    background-color: #ffffff !important;
    transition: background-color 0.15s ease, transform 0.15s ease !important;
}

/* Soft tint on row hover for quick visual feedback */
.notif-item:hover {
    background-color: #f8fafc !important; /* Soft premium workspace tint */
    text-decoration: none !important;
}

/* Micro interaction: shift the internal icon box slightly when hovered */
.notif-item:hover .notif-icon-box {
    background-color: #e2e8f0 !important;
    color: #334155 !important;
}

/* Handle hover state specifically for UNREAD notifications */
.notif-unread:hover {
    background-color: #f0faf1 !important; /* Slightly distinct tint for unread focus */
}

@media (min-width: 992px) {
            /* Your existing rules are here... */
            #sidebar {
                width: 260px;
                /* Add a smooth transition so it slides instead of snaps */
                transition: width 0.25s ease; 
            }

            .main-panel {
                margin-left: 260px;
                width: calc(100% - 260px);
                /* Add a smooth transition here too */
                transition: margin-left 0.25s ease, width 0.25s ease;
            }

            /* --- NEW RULES TO FIX THE COLLAPSE --- */
            
            /* 1. Shrink the sidebar when minimized */
            body.sidebar-icon-only #sidebar {
                width: 70px;
            }

            /* 2. Expand the main panel to fill the empty space */
            body.sidebar-icon-only .main-panel {
                margin-left: 70px;
                width: calc(100% - 70px);
            }

            /* 3. Hide all the text/titles in the sidebar so they don't overflow when it shrinks */
            body.sidebar-icon-only #sidebar .menu-title,
            body.sidebar-icon-only #sidebar .menu-arrow,
            body.sidebar-icon-only #sidebar .sidebar-profile-name,
            body.sidebar-icon-only #sidebar h4,
            body.sidebar-icon-only #sidebar .sidebar-legend {
                display: none !important;
            }
            
            /* 4. Center the icons when collapsed */
            body.sidebar-icon-only #sidebar .nav-link {
                text-align: center;
                justify-content: center;
                padding-left: 0;
                padding-right: 0;
            }
            
            body.sidebar-icon-only #sidebar .nav-link .menu-icon {
                margin-right: 0 !important;
            }
        }