/* Custom CSS for smooth sidebar transition */
:root {
    --primary-color: #2c3e50;
    --primary-dark: #263646;
    --primary-color-rgb: 59, 130, 246; /* RGB values for --primary-color */
}


#sidebar {
transition: transform 0.3s ease;
}

/* Sidebar hidden initially on mobile */
@media (max-width: 768px) {
    .layout-content{
        margin-top: 60px;
    }

    #sidebar {
        position: fixed;
    }
}

#sidebar {
    transform: translateX(0);
    transition: transform 0.3s ease;
    z-index: 1000;
    width: 280px;
}

/* when collapsed, hide it */
body.sidebar-collapsed #sidebar {
  transform: translateX(-280px);
}

/* 2. Push / pull main content */
#main-content {
  transition: margin-left 0.3s ease;
}

@media (min-width: 768px) {
    /* when collapsed, let it expand */
    body.sidebar-collapsed #main-content {
    margin-left: -280px;
    }
}

/* Styling for the sidebar container */
#sidebar {
background-color: #2c3e50 !important; /* Dark slate gray */
color: #ecf0f1  !important; /* Light gray */
min-width: 250px;
transition: all 0.3s ease;
}

/* Styling for the sidebar links */
#sidebar .nav-link {
color: #bdc3c7; /* Muted light gray */
font-size: 0.85em;
font-weight: 500;
padding: 10px 15px;
border-radius: 8px;
transition: background 0.3s, transform 0.3s;
}

#sidebar .nav-link:hover {
background-color: #1abc9c; /* Teal-blue for hover */
color: #ffffff;
transform: translateX(5px);
text-decoration: none;
}

/* Styling for active links */
#sidebar .nav-link.active {
background-color: #16a085; /* Darker teal for active */
color: #ffffff;
font-weight: bold;
}

/* Styling for icons */
#sidebar .nav-link i {
font-size: 1.2em;
}

/* Logo styling */
.logo-container {
font-size: 1.5em;
font-weight: bold;
color: #ecf0f1; /* Light gray */
}

/* Professional color palette */
.text-dark-blue {
    color: #2c3e50; /* Dark navy blue */
}

.bg-dark-blue {
    
    background-color: #2c3e50 !important; /* Dark navy blue */
    color: white !important;
}

.btn-dark-blue {
    background-color: #2c3e50; /* Dark navy blue */
    color: #ffffff;
}

.btn-dark-blue-outline {
    background-color: unset; /* Dark navy blue */
    color: #2c3e50;
    border: 1px #2c3e50 solid;
}

.btn-dark-blue-outline:hover {
    background-color: #1a252f; /* Darker shade for hover */
    color: white;
}

.btn-dark-blue:hover {
    background-color: #1a252f; /* Darker shade for hover */
    color: white;
}

/* Styling for the form card */
#personal-info-form {
    background-color: #f7f9fc; /* Soft off-white */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05) !important; /* Softer shadow for a cleaner look */
}

/* Header styling */
#personal-info-form h2 {
    font-weight: 600;
}

/* Input styling */
.form-control {
    border-radius: 5px;
    border: 1px solid #d1d5db; /* Light gray border */
    background-color: #ffffff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: #2c3e50; /* Dark blue for focus */
    box-shadow: 0 0 8px rgba(44, 62, 80, 0.2);
}

/* Button styling */
#next-to-microphone {
    font-weight: 600;
    border-radius: 5px;
}

/* Label styling */
.form-label {
    font-weight: 500;
    color: #5d6d7e; /* Slate gray for a soft, professional tone */
}



/* Navbar container */
.bg-light {
    background-color: #f8f9fa !important; /* Light background for a professional look */
}

.page-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #343a40; /* Dark gray color for title */
}

/* Profile section styling */
.profile-container {
    display: flex;
    align-items: center;
}

.profile-image {
    border: 2px solid #6c757d; /* Subtle border for profile image */
}

/* Dropdown menu styling */
.dropdown-menu {
    min-width: 150px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    font-size: 0.9rem;
    padding: 8px 16px;
}

.dropdown-item:hover {
    background-color: #e9ecef; /* Light gray hover effect */
}

.text-danger {
    color: #dc3545 !important; /* Red color for logout */
}


    /* Container styling */
    #microphone-selection {
        background-color: #f4f5f7; /* Light gray background for subtle contrast */
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Soft shadow */
    }

    /* Title styling */
    #microphone-selection h2 {
        color: #2d2d2d; /* Dark gray for a more neutral professional look */
        font-weight: 600;
    }

    /* Icon styling */
    .icon-container i {
        color: #a0a4a8; /* Muted gray for icon */
    }

    /* Dropdown styling */
    .form-select {
        text-align: center;
        border-radius: 5px;
        border: 1px solid #d1d5db;
        transition: border-color 0.3s ease, box-shadow 0.3s ease;
        background-color: #ffffff;
    }

    .form-select:focus {
        border-color: #4a90e2; /* Accent blue for focus */
        box-shadow: 0 0 8px rgba(74, 144, 226, 0.2);
    }

    /* Button styling */
    .btn-accent {
        background-color: #4a90e2; /* Soft accent blue */
        border: none;
        font-weight: 600;
        border-radius: 5px;
        transition: background 0.3s;
        color: #ffffff;
    }

    .btn-accent:hover {
        background-color: #3a78c5; /* Slightly darker blue on hover */
    }

    /* File input styling */
    .form-control-file {
        text-align: center;
        color: #4a90e2;
        margin-top: 5px;
    }

    /* Text styling */
    .fw-semibold {
        font-weight: 500;
        color: #495057; /* Slate gray for label text */
    }

    .text-dark-gray {
        color: #2d2d2d; /* Darker gray for main titles */
    }

    .text-muted-gray {
        color: #a0a4a8; /* Muted gray for icon */
    }

    .icon-container{
        background-color: #16a085;
        color: white;
    }




/* Card styling */
#recording-session-view {
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Title and text styling */
.text-primary {
    color: #007bff;
    font-weight: 600;
}

.text-secondary {
    color: #6c757d;
}

.text-dark-gray {
    color: #343a40;
}

.fw-semibold {
    font-weight: 500;
}

/* Icon styling */
.sound-effects-container i {
    color: #a0a4a8; /* Muted gray for icons */
}

/* Timer styling */
.timer {
    font-size: 1.2em;
    color: #495057;
    font-weight: 600;
}

/* Button styling */
#stop-recording-btn {
    font-weight: 600;
    border-radius: 5px;
}

#pause-recording-btn {
    font-weight: 600;
    border-radius: 5px;
}

/* Live transcript preview styling */
#live-preview {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 6px;
}

#live-preview h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

/* Styles for live transcript text */
#speech-text {
    color: #495057;
    font-style: italic;
}



    /* Navbar background and shadow */
    .bg-light {
        background-color: #f8f9fa !important;
    }

    /* Sidebar Toggle Button */
    #sidebarToggle {
        color: #495057;
        border-color: #ced4da;
        transition: all 0.3s;
    }

    #sidebarToggle:hover {
        background-color: #e2e6ea;
        color: #343a40;
    }

    /* Page Title Styling */
    .text-dark-gray {
        color: #343a40;
        font-weight: 600;
    }

    /* Profile Image Styling */
    .profile-img {
        border: 2px solid #ced4da;
    }

    /* Dropdown Menu Styling */
    .dropdown-menu {
        border-radius: 8px;
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
        min-width: 150px;
    }

    .dropdown-item {
        font-size: 0.9rem;
        padding: 8px 16px;
    }

    .dropdown-item:hover {
        background-color: #e9ecef;
    }

    .text-danger {
        color: #dc3545 !important;
    }


.profile-main-container{
margin-top: 0;
}

@media (max-width: 768px) {
.main-new-session-container{
    height: calc(115vh);
}    

.profile-main-container{
    margin-top: 3rem;
}
}



/* Table Styling */
.table {
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

/* Header and Row Styling */
.table-hover tbody tr:hover {
    background-color: #f8f9fa;
}

/* Badge Styling for Status */
.badge {
    font-size: 0.9rem;
    padding: 0.5em 0.75em;
    border-radius: 12px;
}

/* Button Styling */
.btn-outline-primary {
    font-weight: 500;
    transition: background-color 0.3s, color 0.3s;
}

.btn-outline-primary:hover {
    background-color: #0d6efd;
    color: #ffffff;
}

/* Alert Styling for Empty State */
.alert-info {
    background-color: #f0f8ff;
    border: 1px solid #cce5ff;
    color: #31708f;
    border-radius: 8px;
}


.top-up{
    background-color: #2c3e50 !important;
    padding: 5px 15px;
    border-radius: 5px;
    border: 1px solid white;
    color: white !important;
}

.top-up span{
    color: rgb(154, 255, 154) !important;
    margin-left: 5px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
}

.status-indicator .green-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #28a745;
    box-shadow: 0 0 5px 2px rgba(40, 167, 69, 0.5);
    animation: pulse 1.5s infinite;
}

.status-indicator .red-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #dc3545;
    box-shadow: 0 0 5px 2px rgba(220, 53, 69, 0.5);
    animation: pulse-red 1.5s infinite;
}

.table-hover tbody tr:hover {
    background-color: #f8f9fa;
}

/* Optional Pulse Animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 5px 2px rgba(40, 167, 69, 0.5);
    }
    50% {
        box-shadow: 0 0 10px 4px rgba(40, 167, 69, 0.3);
    }
    100% {
        box-shadow: 0 0 5px 2px rgba(40, 167, 69, 0.5);
    }
}

/* General Card Styling */
.card {
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-header {
    background-color: #2c3e50;
    color: #ecf0f1;
    font-size: 1rem;
    text-transform: uppercase;
    text-align: center;
    padding: 0.75rem;
}

/* Card Body Text */
.card-body p {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #34495e;
}

/* Statistic Cards */
.display-6-dashboard {
    font-size: 1.5rem;
    margin-top: 4px;
    font-weight: bold;
}

.card.text-center h6 {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 4px;
}

/* Statistics Card Hover Effect */
.card.text-center:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease-in-out;
}


/* Pagination Styling */
.pagination-container .pagination {
    margin: 0;
}

.pagination-container .page-item.active .page-link {
    background-color: #2c3e50;
    border-color: #2c3e50;
    color: white;
}

.pagination-container .page-link {
    color: #2c3e50;
    border-radius: 4px;
    margin: 0 2px;
}

.pagination-container .page-link:hover {
    background-color: #34495e;
    color: #fff;
}


/* Floating Report Issue Button */
.report-issue-container {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1050;
    transition: all 0.3s ease-in-out;
}

.report-issue-button {
    background-color: #dc3545;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 30px 0 0 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.report-issue-button i {
    margin-left: 120px;
    font-size: 1.5rem;
    transition: all 0.3s ease-in-out;
}

.report-issue-text {
    white-space: nowrap;
    margin-left: 10px;
    opacity: 0;
    transition: all 0.3s ease-in-out;
    font-size: 0.9rem;
    font-weight: bold;
}

/* Hover Effect for Expansion */
.report-issue-container:hover .report-issue-button {
    width: 200px;
    border-radius: 30px 0 0 30px;
}

.report-issue-container:hover .report-issue-button i {
    margin-left: 10px;
}

.report-issue-container:hover .report-issue-text {
    opacity: 1;
}


/* Modal Styling */
.modal-header {
    background-color: #2c3e50;
    color: #fff;
}

.modal-title {
    font-weight: bold;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: 0 0 5px 2px rgba(0, 0, 0, 0.1);
}

/* Dot Colors */
.dot-success {
    background-color: #28a745; /* Green */
    box-shadow: 0 0 5px 2px rgba(40, 167, 69, 0.3);
}

.dot-warning {
    background-color: #ffc107; /* Yellow */
    box-shadow: 0 0 5px 2px rgba(255, 193, 7, 0.3);
}

.dot-danger {
    background-color: #dc3545; /* Red */
    box-shadow: 0 0 5px 2px rgba(220, 53, 69, 0.3);
}

.dot-secondary {
    background-color: #6c757d; /* Gray */
    box-shadow: 0 0 5px 2px rgba(108, 117, 125, 0.3);
}

.dot-dark-blue {
    background-color: #2c3e50; /* Green */
    box-shadow: 0 0 5px 2px rgba(40, 167, 69, 0.3);
}

/* Status Text */
.status-text {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: capitalize;
}

/* Clinics Section Styling */
#sidebar .clinics-section {
    border-radius: 6px;
    padding: 5px;
}

/* Main Clinics Link */
#sidebar .clinics-main-link {
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.3s, color 0.3s;
}

/* Clinics Icon Styles */
#sidebar .clinic-icon-main {
    color: #1abc9c;
    font-size: 1.1rem;
}

#sidebar .clinics-toggle {
    cursor: pointer;
    color: #ecf0f1;
    transition: transform 0.3s;
}

#sidebar .clinics-toggle.collapsed {
    transform: rotate(90deg);
}

/* Dropdown Clinics List */
#sidebar .clinics-dropdown {
    border-left: 2px solid #34495e;
    margin-top: 5px;
    padding-left: 10px;
    border-radius: 4px;
}

/* Individual Clinic Items */
#sidebar .clinic-item {
    margin-bottom: 5px;
}

#sidebar .clinic-link {
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

#sidebar .clinic-link:hover {
    color: #f1c40f;
}

/* Clinic Dropdown Toggle */
#sidebar .clinic-toggle {
    cursor: pointer;
    color: #ecf0f1;
    transition: transform 0.3s;
}

#sidebar .clinic-toggle.collapsed {
    transform: rotate(90deg);
}

/* Clinic Submenu */
#sidebar .clinic-submenu {
    border-left: 2px solid #1abc9c;
    margin-top: 5px;
    padding-left: 10px;
    border-radius: 4px;
}

/* Submenu Links */
#sidebar .clinic-dashboard-link {
    color: #3498db;
}

#sidebar .clinic-reports-link {
    color: #e74c3c;
}

#sidebar .clinic-edit-link {
    color: #f39c12;
}

/* Icons for Submenu */
#sidebar .clinic-icon-dashboard {
    color: #3498db;
}

#sidebar .clinic-icon-reports {
    color: #e74c3c;
}

#sidebar .clinic-icon-edit {
    color: #f39c12;
}

/* Hover Effects */
#sidebar .clinic-dashboard-link:hover,
#sidebar .clinic-reports-link:hover,
#sidebar .clinic-edit-link:hover {
    text-decoration: underline;
}

.dashboard-overview .card {
    border-radius: 8px;
    text-align: center;
}

.dashboard-overview h6 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0;
}

.dashboard-overview .display-6 {
    font-size: 1.5rem;
}

.dashboard-overview .card {
    border-radius: 8px;
    text-align: left;
    background-color: #f9fafc;
    border: 1px solid #e1e5eb;
    transition: transform 0.2s ease-in-out;
}

.dashboard-overview .card:hover {
    transform: translateY(-5px);
}

.dashboard-overview .card h6 {
    font-size: 0.95rem;
    font-weight: 500;
    color: #2c3e50;
    margin: 0;
}

.dashboard-overview .card p {
    font-size: 1.2rem;
    font-weight: 700;
    color: #34495e;
    margin: 0;
}

.dashboard-overview .card i {
    font-size: 1.1rem;
}

.dashboard-overview .text-primary {
    color: #007bff !important;
}

.dashboard-overview .text-success {
    color: #28a745 !important;
}

.dashboard-overview .text-danger {
    color: #dc3545 !important;
}

.dashboard-overview .text-warning {
    color: #ffc107 !important;
}

.dashboard-overview .text-info {
    color: #17a2b8 !important;
}

/* Latest Progress and Log Sections */
.progress-list,
.log-list {
    overflow-y: auto;
    padding-right: 5px;
}

.progress-list::-webkit-scrollbar,
.log-list::-webkit-scrollbar {
    width: 5px;
}

.progress-list::-webkit-scrollbar-thumb,
.log-list::-webkit-scrollbar-thumb {
    background-color: #ced4da;
    border-radius: 10px;
}

.progress-list div,
.log-list div {
    margin-bottom: 5px;
}

.progress-list h6,
.log-list h6 {
    font-size: 0.95rem;
    font-weight: 600;
}

.progress-list p,
.log-list p {
    font-size: 0.85rem;
    margin: 0;
}

.progress-list .badge,
.log-list .badge {
    font-size: 0.75rem;
    padding: 5px 8px;
    border-radius: 5px;
}

.card h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.card h5 i {
    font-size: 1.1rem;
}

/* Clinics Overview Section */
.clinics-overview .clinic-card {
    border-radius: 8px;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    background-color: #fdfdfd;
    border: 1px solid #e9ecef;
    text-align: left;
}

.clinics-overview .clinic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Clinic Name and Status */
.clinics-overview .clinic-card h6 {
    font-size: 0.9rem;
    color: #2c3e50;
    margin-bottom: 2px;
}

.clinics-overview .clinic-status {
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 5px;
}

/* Clinic Stats */
.clinics-overview .clinic-stats {
    font-size: 0.85rem;
    color: #6c757d;
}

.clinics-overview .clinic-stats i {
    font-size: 0.9rem;
}

/* Action Buttons */
.clinics-overview .btn {
    font-size: 0.8rem;
    padding: 4px 6px;
    width: 33%;
    text-align: center;
}

.clinics-overview .btn i {
    font-size: 0.85rem;
}

/* Status Colors */
.clinics-overview .badge.bg-success {
    background-color: #28a745 !important;
}

.clinics-overview .badge.bg-danger {
    background-color: #dc3545 !important;
}

.clinics-overview .badge.bg-warning {
    background-color: #ffc107 !important;
}

.nav-link-settings{
    color: #2c3e50 !important;
}

.nav-link-settings.active{
    color: white !important;
    background-color: #2c3e50 !important;;
}

.d-flex.flex-wrap {
    gap: 1rem;
}

.d-flex.flex-wrap a {
    text-decoration: none;
}

.d-flex.flex-wrap i {
    transition: transform 0.2s ease-in-out;
}

.d-flex.flex-wrap a:hover i {
    transform: scale(1.3);
}

/* Spinner Container */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3; /* Light grey border */
    border-top: 2px solid #2c3e50; /* Blue border for animation */
    border-radius: 50%; /* Circular shape */
    animation: spin 0.6s linear infinite; /* Rotation animation */
    margin: 10px auto; /* Center the spinner */
}

/* Spinner Animation */
@keyframes spin {
    0% {
        transform: rotate(0deg); /* Start rotation */
    }
    100% {
        transform: rotate(360deg); /* Full circle rotation */
    }
}

/* Optional: Overlay Spinner for Full Page */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7); /* Semi-transparent background */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999; /* On top of everything */
}

.select2-container .select2-selection--single {
    padding: .2rem .75rem !important;
    height: auto !important;
}

.container{
    max-width: 1192px !important;
}

.production-warning {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    z-index: 9999;
}

/* Enable Toggle (Clinic Active) */
.clinic-toggle:checked {
    background-color: #27ae60 !important; /* Professional Green */
    border-color: #27ae60 !important;
}

/* Disable Toggle (Clinic Inactive) */

/* Enable Toggle for Monthly Fees */
.fees-toggle:checked {
    background-color: #2980b9 !important; /* Deep Blue */
    border-color: #2980b9 !important;
}

/* Disable Toggle for Monthly Fees */
.fees-toggle {
    background-color: #ecf0f1 !important; /* Light Gray */
    border-color: #bdc3c7 !important;
}

/* Toggle Focus (Outline when clicked) */
.form-check-input:focus {
    box-shadow: 0 0 5px rgba(41, 128, 185, 0.5); /* Light Blue Glow */
}

/* Custom Toggle Circle (Small Knob inside the switch) */
.form-check-input::before {
    content: "";
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 3px;
    transition: all 0.3s ease;
}

/* Move the knob when enabled */
.form-check-input:checked::before {
    left: 25px;
}

/* Better hover effect */
.form-check-input:hover {
    opacity: 0.9;
}

/* Glitter Effect Styles */
.glitter-effect {
    position: relative;
    overflow: hidden;
}

.glitter-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    /* Start off-screen to the left */
    width: var(--glitter-width);
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.2) 50%,
            /* Shine intensity */
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-20deg);
    /* Skew for a slanted shine */
    animation: glitter var(--glitter-duration) infinite;
    /* Loop the animation */
}

/* Glitter Animation Keyframes */
@keyframes glitter {
    0% {
        left: -100%;
    }

    100% {
        left: 150%;
    }

    /* End far off-screen to the right */
}

/* Floating Allocation Button Styles */
.floating-allocation-container {
    position: fixed; /* Fixes it relative to the viewport */
    bottom: 20px;    /* Distance from the bottom of the screen */
    right: 20px;     /* Distance from the right of the screen */
    z-index: 1050;   /* Ensure it's above most content (like Bootstrap modals, which are typically z-index 1040-1050) */
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Align to the right */
    gap: 10px; /* Space if you add more floating elements */
}

.floating-allocation-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color); /* Use your primary blue */
    color: white;
    border-radius: 50px; /* Make it perfectly round by default */
    width: 55px; /* Default width/height for round icon */
    height: 55px;
    font-size: 1.5rem; /* Larger icon */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* Stronger shadow */
    text-decoration: none;
    transition: all 0.3s ease-in-out; /* Smooth transitions for hover */
    overflow: hidden; /* Important for glow effect */
}

.floating-allocation-button:hover {
    width: 200px; /* Expand width on hover to reveal text */
    border-radius: 15px; /* Slightly less rounded on hover */
    background-color: var(--primary-dark); /* Darker blue on hover */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.floating-allocation-button .fa-toolbox { /* Icon styling */
    flex-shrink: 0; /* Prevent icon from shrinking */
    margin-right: 0; /* No initial margin */
    transition: margin-right 0.3s ease-in-out;
}

.floating-allocation-button:hover .fa-toolbox {
    margin-right: 10px; /* Add margin to push text away on hover */
}

.floating-allocation-text {
    white-space: nowrap; /* Keep text on one line */
    overflow: hidden;
    max-width: 0; /* Hide text by default */
    opacity: 0;
    transition: max-width 0.3s ease-in-out, opacity 0.3s ease-in-out;
    font-size: 0.9rem; /* Adjust font size */
    font-weight: 600;
}

.floating-allocation-button:hover .floating-allocation-text {
    max-width: 150px; /* Expand max-width to reveal text */
    opacity: 1; /* Make text visible */
}

/* Incandescent (Glowing) Effect */
.incandescent-effect {
    position: relative;
    box-shadow: 0 0 0 0 rgba(var(--primary-color-rgb), 0.7); /* Initial transparent glow */
    animation: pulse-incandescent 2s infinite cubic-bezier(0.66, 0, 0, 1);
}

.incandescent-effect:hover {
    animation: none; /* Stop pulsing on hover */
}

@keyframes pulse-incandescent {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--primary-color-rgb), 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(var(--primary-color-rgb), 0); /* Expand and fade */
    }
    100% {
        box-shadow: 0 0 0 0 rgba(var(--primary-color-rgb), 0);
    }
}

/* Responsive adjustment for very small screens if needed */
@media (max-width: 576px) {
    .floating-allocation-container {
        bottom: 15px;
        right: 15px;
    }
    .floating-allocation-button {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    .floating-allocation-button:hover {
        width: 180px;
    }
}