﻿:root {
    --primary-color: #1E90FF; /* Base blue - vibrant and central */
    --secondary-color: #40C4FF; /* Lighter shade - fresh and energetic */
    --bg-primary: 0 4px 15px rgba(30, 144, 255, 0.3); /* Shadow based on base blue */
    --deep-sky-blue: #87CEFA; /* Light, vibrant sky blue */
    --steel-blue: #4682B4; /* Muted, sophisticated mid-tone (slightly adjusted) */
    --navy-blue: #104E8B; /* Dark, rich blue */
    --cornflower-blue: #6495ED; /* Soft, approachable blue (slightly adjusted) */
    --aqua-marine: #B0E2FF; /* Very light, fresh blue */
}
link[rel="icon"] {
    border-radius: 50% !important;
}
a{
    text-decoration:none !important;
}
thead th {
    background-color: var(--steel-blue) !important;
    color: white !important;
    margin-top: 0.5rem !important;
    font-size: 13px;
}
.tfont-Color {
    font-size: 13px;
}

.tbutton, .tdbutton ,.tabutton{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    border: none;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.tbutton {
    color: #00b5ef;
    border: 2px solid #00b5ef;
}

    .tbutton:hover {
        background: #00b5ef;
        color: white;
        /*box-shadow: 0px 0px 12px #00b5ef;*/
    }
.tabutton {
    color: #28a745; /* A nice green color */
    border: 2px solid #28a745;
}

    .tabutton:hover {
        background: #28a745;
        color: white;
        /*box-shadow: 0px 0px 12px #28a745;*/ /* Uncomment if you want the glow effect */
    }

    /* Add subtle button press effect */
    .tabutton:active {
        transform: scale(0.95);
    }
.tdbutton {
    color: #dc3545;
    border: 2px solid #dc3545;
}

    .tdbutton:hover {
        background: #dc3545;
        color: white;
        box-shadow: 0px 0px 12px #dc3545;
    }

    /* Add subtle button press effect */
    .tbutton:active, .tdbutton:active {
        transform: scale(0.95);
    }

/* New button styles for Operations column */
.tb-bills, .tb-payments, .tb-history, .tb-addpay {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    flex: 1;
    text-align: center;
    justify-content: center;
}

.tb-bills {
    color: #007bff;
    border: 2px solid #007bff;
}

    .tb-bills:hover {
        background: #007bff;
        color: white;
    }

.tb-payments {
    color: #28a745;
    border: 2px solid #28a745;
}

    .tb-payments:hover {
        background: #28a745;
        color: white;
    }

.tb-history {
    color: #6f42c1;
    border: 2px solid #6f42c1;
}

    .tb-history:hover {
        background: #6f42c1;
        color: white;
    }

.tb-addpay {
    color: #17a2b8;
    border: 2px solid #17a2b8;
}

    .tb-addpay:hover {
        background: #17a2b8;
        color: white;
    }

    .tb-bills:active, .tb-payments:active, .tb-history:active, .tb-addpay:active {
        transform: scale(0.95);
    }

.btn-add {
    background: linear-gradient(135deg, #0D6EFD 30%, #00B5EF 100%);
    color: white;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
}

    .btn-add::before {
        content: "";
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
        transform: scale(0);
        transition: transform 0.3s ease-in-out;
    }

    .btn-add:hover {
        border-color: rgba(255, 255, 255, 0.6);
        box-shadow: 0px 6px 12px rgba(0, 181, 239, 0.2);
    }

        .btn-add:hover::before {
            transform: scale(1);
        }


.title-heading {
    font-size: 1.8rem;
    font-weight: 600;
    font-family: "poppins", Arial, sans-serif; /* Updated Font */
    color: var(--primary-color);
    text-align: start;
    position: relative;
    padding-bottom: 8px; /* Space for underline */
    display: inline-block;
}

    /* Centered Small Underline */
    .title-heading::after {
        content: "";
        width: 35%; /* Small underline */
        height: 3px;
        background-color: var(--primary-color);
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 2px;
    }

/* Title Styling */
.full-title {
    display: block;
}

.short-title {
    display: none;
}



/* Center title on medium and larger screens */
@media (min-width: 768px) {
    .title-heading {
        text-align: center;
        font-size: 2rem;
    }
}

/* Adjust for very small screens */
@media (max-width: 480px) {
    .full-title {
        display: none;
    }

    .short-title {
        display: block;
    }
    .title-heading {
        font-size: 1.5rem;
        font-family: "Poppins", Arial, sans-serif; /* Ensure consistency on small screens */

    }

        /* Remove underline for small screens */
        .title-heading::after {
            width: 45%;
        }
}
.dashboard-box {
    width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.dashboard-img {
    width: 100%;
    aspect-ratio: 1 / 1; /* Ensures a square aspect ratio */
    object-fit: cover; /* Scales image to cover the area, cropping if necessary */
    border-radius: 10px;
    transition: box-shadow 0.3s ease-in-out;
    box-shadow: rgba(6, 24, 44, 0.4) 0px 0px 0px 2px, rgba(6, 24, 44, 0.65) 0px 4px 6px -1px, rgba(255, 255, 255, 0.08) 0px 1px 0px inset;
}

    .dashboard-img:hover {
        cursor: pointer;
        animation: bounce 0.4s ease-in-out;
    }

@keyframes bounce {
    0% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-5px);
    }
    /* Move slightly up */
    50% {
        transform: translateY(0);
    }

    70% {
        transform: translateY(-3px);
    }
    /* A smaller bounce */
    100% {
        transform: translateY(0);
    }
}


.logout-btn {
    background: linear-gradient(135deg, #ff4b5c, #ff6b81); /* Modern Red Gradient */
    color: white;
    font-weight: bold;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px; /* Space between icon and text */
    transition: all 0.3s ease-in-out;
    /*box-shadow: 0px 4px 6px rgba(255, 75, 92, 0.3);*/
}

    /* Icon Style */
    .logout-btn i {
        font-size: 1.1rem;
    }

    /* Hover Effect */
    .logout-btn:hover {
        background: linear-gradient(135deg, #e63950, #ff4757);
        box-shadow: 0px 6px 10px rgba(230, 57, 80, 0.5);
        transform: translateY(-2px);
    }

    /* Click Effect */
    .logout-btn:active {
        background: #d63041;
        box-shadow: inset 0px 3px 6px rgba(0, 0, 0, 0.3);
        transform: scale(0.98);
    }
    /* Back Button Styling */
        .back-btn {
            background: #00b5ef;
            color: white;
            border: none;
            padding: 12px;
            border-radius: 50%;
            font-size: 18px;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 45px;
            height: 45px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease-in-out;
            cursor: pointer;
            text-decoration: none;
        }

            .back-btn:hover {
                background: #0297c2;
                box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
                transform: scale(1.1);
            }


/* Hide back button on small screens */
@media (max-width: 768px) {
    .back-btn {
        display: none;
    }
}


.dropdown-menu {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: none;
    padding: 0.5rem 0;
    min-width: 180px;
    background: linear-gradient(to bottom right, var(--secondary-color), var(--primary-color));
}

    /* User Info Section */
    .dropdown-menu .d-md-none {
        padding: 0.5rem 1rem;
        background: var(--bg-primary);
        border-top-left-radius: 8px;
        border-top-right-radius: 8px;
        color: var(--primary-color);
    }

        .dropdown-menu .d-md-none strong {
            font-size: 0.9rem;
        }

        .dropdown-menu .d-md-none small {
            font-size: 0.75rem;
        }

.dropdown-item {
    padding: 0.5rem 1rem;
    color: white;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    cursor: pointer;
    
}

    .dropdown-item i {
        font-size: 0.9rem;
    }

    .dropdown-item:hover {
        background: var(--primary-color);
        border-radius: 6px;
    }

    /* Logout Button */
    .dropdown-item.text-danger {
        color: #ff4d4d;
    }

        .dropdown-item.text-danger:hover {
            background: rgba(255, 77, 77, 0.2);
        }

/* Divider */
.dropdown-menu hr {
    margin: 0.4rem 0;
    border-color: rgba(255, 255, 255, 0.3);
}


.dropdown-menu:hover {
    cursor: pointer !important;
}
/* Ensure the dropdown toggle is clickable */
.dropdown-toggle {
    cursor: pointer;
}
/* Ensure dropdown items are clickable */
.dropdown-item {
    cursor: pointer;
}

/* Ensure dropdown items are clickable */
.dropdown-item {
    cursor: pointer;
}

/* Custom Navbar Styling */
.custom-navbar {
    box-shadow: var(--bg-primary);
    padding: 1rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1001;
}

/* Adjust navbar links for small screens */
@media (max-width: 991px) {
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem; /* Adjust padding for better spacing in collapsed state */
    }
}
/* Style direct profile items */
.profile-direct .nav-link {
    padding: 0.5rem 1rem; /* Consistent padding with other nav items */
}


.sidebar {
    background-color: var(--steel-blue);
    height: calc(100vh - 66px);
    position: fixed;
    top: 66px;
    left: 0;
    transition: width 0.3s ease-in-out;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    width: 155px;
    overflow: hidden;
}

html.sidebar-collapsed .sidebar {
    width: 77px; /* Updated from your code */
}

.sidebar-header {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.toggle-btn {
    color: white;
    background-color: var(--primary-color);
    border: none;
    padding: 0.5rem;
    border-radius: 5px;
    width: 100%;
    transition: background-color 0.3s ease;
}

.toggle-btn:hover {
    background-color: var(--secondary-color);
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav .nav-item {
    padding: 0.5rem 1rem;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    padding: 0.75rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.sidebar-nav .nav-link:hover {
    background-color: var(--aqua-marine);
    color: var(--navy-blue);
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

.sidebar-nav .nav-link.active {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
    transform: translateX(3px);
    font-weight: 500;
    padding-left: 10px !important;
}

.sidebar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background-color: var(--secondary-color);
    border-radius: 2px 0 0 2px;
}

html.sidebar-collapsed .sidebar .nav-link span {
    display: none;
}

html.sidebar-collapsed .sidebar .nav-link {
    justify-content: center;
    padding: 0.68rem 0;
}

html.sidebar-collapsed .sidebar .nav-link i {
    margin-right: 0;
    font-size: 1.2rem;
}

    html.sidebar-collapsed .sidebar .nav-link:hover {
        transform: scale(1.1) ;
        background-color: var(--aqua-marine);
        box-shadow: none;
    }
html.sidebar-collapsed .sidebar .nav-link.active {
    background-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: none;
    position: relative; /* Ensure ::after positions correctly */
}

html.sidebar-collapsed .sidebar .nav-link.active::after {
    display: block; /* Changed from none to block */
    right: 5px; /* Adjusted position for collapsed width */
    width: 3px; /* Slightly thinner for collapsed state */
    height: 50%; /* Adjusted height */
}
/* Content Wrapper */
.content-wrapper {
    margin-left: 160px; /* Matches full sidebar width */
    padding: 1px; /* Optional: adds some breathing room */
    transition: margin-left 0.3s ease-in-out; /* Smooth transition */
    min-height: calc(100vh - 66px); /* Matches sidebar height */
    position: relative;
    top:80px !important; /* Aligns below navbar */
}

html.sidebar-collapsed .content-wrapper {
    margin-left: 77px; /* Matches collapsed sidebar width */
}

/* Media Query for Small Screens */
@media (max-width: 768px) {
    .sidebar {
        width: 145px; /* Updated full width for small screens */
    }

    html.sidebar-collapsed .sidebar {
        width: 70px; /* Collapsed width remains the same */
    }

    .content-wrapper {
        margin-left: 145px; /* Matches full sidebar width on small screens */
    }

    html.sidebar-collapsed .content-wrapper {
        margin-left: 75px; /* Matches collapsed sidebar width on small screens */
    }
}
/* Base heading styles */
/*h1, h2, h3, h4, h5, h6 {
    color: #1E90FF;*/ /* Core blue as the foundation */
    /*font-family: 'Orbitron', 'Arial', sans-serif;*/ /* Futuristic, techy font */
    /*font-weight: 700;*/ /* Strong presence */
    /*line-height: 1.05;*/ /* Compact and intense */
    /*margin: 0 0 1rem;*/ /* Sharp spacing */
    /*letter-spacing: 0.02em;*/ /* Slight stretch for a digital feel */
/*}*/

/* Level-specific styling */
/*h1 {
    font-size: clamp(3rem, 6.5vw, 5.5rem);*/ /* Oversized and commanding */
    /*text-transform: uppercase;
    position: relative;
    display: inline-block;
    padding: 0.25rem 1rem;
    background: repeating-linear-gradient( 90deg, transparent, transparent 4px, rgba(30, 144, 255, 0.2) 4px, rgba(30, 144, 255, 0.2) 8px );*/ /* Digital grid effect */
/*}

h2 {
    font-size: clamp(2.25rem, 5vw, 4rem);
    position: relative;
    padding-right: 2rem;
}

    h2::after {
        content: '>';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        color: #1E90FF;
        font-size: 1.5rem;
        opacity: 0.7;*/ /* Arrow for a coded vibe */
    /*}

h3 {
    font-size: clamp(1.875rem, 4vw, 3rem);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(30, 144, 255, 0.08);
    padding: 0.5rem;
    clip-path: polygon(0 0, 95% 0, 100% 100%, 5% 100%);*/ /* Slight slant */
/*}

    h3::before {
        content: '[ ]';
        color: #40C4FF;*/ /* Lighter blue brackets */
        /*font-size: 0.9em;
    }

h4 {
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    color: #FFFFFF;
    background: #1E90FF;
    padding: 0.3rem 1.25rem;
    display: inline-block;
    border-radius: 0 8px 0 8px;*/ /* Asymmetric corners */
    /*box-shadow: 3px 3px 0 rgba(30, 144, 255, 0.3);*/ /* Offset shadow */
/*}

h5 {
    font-size: clamp(1.25rem, 3vw, 2rem);
    text-transform: uppercase;
    position: relative;
    padding-left: 1.5rem;
}

    h5::before {
        content: '::';
        position: absolute;
        left: 0;
        color: #87CEFA;*/ /* Sky blue pseudo-element */
        /*font-weight: 900;
    }

h6 {
    font-size: clamp(1rem, 2.5vw, 1.75rem);
    color: #104E8B;*/ /* Dark navy shift */
    /*font-weight: 500;
    padding: 0.75rem 0;
    border-bottom: 2px dotted #1E90FF;*/ /* Dotted line for a glitchy feel */
/*}*/

/* Back Button */
.back-button {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    background-color: var(--secondary-color);
    border-radius: 20px;
    border: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
}

    .back-button:hover {
        background-color: var(--steel-blue);
        transform: translateY(-2px);
    }

    .back-button i {
        margin-right: 8px;
    }