/* Custom CSS for smooth sidebar transition */
#sidebar {
transition: transform 0.3s ease;
}

/* Sidebar hidden initially on mobile */
@media (max-width: 768px) {
.layout-content{
    margin-top: 60px;
}
    
#sidebar {
    transform: translateX(-250px); /* Hidden off-screen */
    position: fixed;
    z-index: 1000;
    height: 100vh;
    width: 250px;
}

#sidebar.show-sidebar {
    transform: translateX(0); /* Show sidebar on mobile */
}
}

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

/* Styling for the sidebar links */
#sidebar .nav-link {
color: #bdc3c7; /* Muted light gray */
font-size: 1.1em;
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.5rem;
    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);
}

/* 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 */
}

.chat-box {
    max-height: 300px;
    overflow-y: auto;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
}

.chat-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
}

.chat-message {
    display: flex;
    align-items: center;
    max-width: 75%;
}

.bot-message {
    align-self: flex-start;
}

.user-message {
    align-self: flex-end;
    text-align: right;
}

.chat-bubble {
    padding: 10px 15px;
    border-radius: 10px;
    display: inline-block;
    max-width: 100%;
}

.bot-message .chat-bubble {
    background-color: #f1f1f1;
    border-radius: 10px 10px 10px 2px;
}

.user-message .chat-bubble {
    background-color: #007bff;
    color: white;
    border-radius: 10px 10px 2px 10px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 1rem;
}

.list-group-item {
    border: none;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 5px;
}

/* General Card Style */
.destination-card {
    background: linear-gradient(135deg, #2c3e50 , rgb(85, 109, 133) );
    border-radius: 12px;
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: white;
    position: relative;
    overflow: hidden;
}
.destination-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
}

/* Header */
.destination-header {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    font-size: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}
.destination-title {
    font-size: 18px;
    font-weight: bold;
}
.toggle-fields {
    background: transparent;
    border: none;
    color: white;
}
.toggle-fields:hover {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

/* Fields */
.destination-body {
    padding-top: 10px;
    display: none;
}
.field-item {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.field-value {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    color: white !important;
    display: block;
}

/* Footer */
.destination-footer {
    margin-top: 10px;
}
.copy-btn {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border: none;
    transition: background 0.3s ease;
}
.copy-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

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

/* Sidebar for templates */
.templates-sidebar {
    width: 250px;
    background: #f8f9fa;
    border-radius: 8px;
    height: 550px;
    overflow-y: auto;
    padding: 15px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

/* Scrollable template list */
.scrollable-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

.template-item {
    padding: 10px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 5px;
    cursor: grab;
    text-align: center;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.template-item:hover {
    background: #e9ecef;
    transform: scale(1.05);
}

/* Automation Canvas */
.automation-canvas {
    flex: 1;
    min-height: 550px;
    background: #f4f4f4;
    border: 2px dashed #bbb;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    padding: 15px;
}

.automation-step {
    width: 250px;
    min-height: 60px;
    padding: 15px;
    /* background: white; */
    border-radius: 8px;
    text-align: center;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
    border: 2px solid #007bff;
    cursor: pointer;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.remove-step {
    color: red;
    font-weight: bold;
    cursor: pointer;
}

.scrollable-list {
    max-height: 300px; /* Fixed height */
    overflow-y: auto; /* Scroll when overflowing */
}

.group-hover:hover {
    background-color: #f8f9fa; /* Light hover effect */
    cursor: pointer;
}

.selectable-method {
    cursor: pointer;
    padding: 15px;
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
}

.selectable-method:hover, 
input[type="checkbox"]:checked + .selectable-method {
    background-color: #2c3e50 ;
    color: white !important;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}

.custom-switch {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.switch-slider {
    display: inline-block;
    width: 34px;
    height: 18px;
    background: #ccc;
    border-radius: 9px;
    position: relative;
    transition: background 0.3s;
    margin-right: 8px;
}

.switch-slider::before {
    content: "";
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
}

input:checked + .switch-slider {
    background: #28a745; /* Green when active */
}

input:checked + .switch-slider::before {
    transform: translateX(16px);
}

.switch-label {
    font-size: 14px;
    color: #333;
}

/* Parent container for automation step */
.automation-step {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Custom switch for Start Template */
.custom-switch {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.switch-slider {
    display: inline-block;
    width: 36px;
    height: 18px;
    background: #ddd;
    border-radius: 9px;
    position: relative;
    transition: background 0.3s;
    margin-right: 6px;
}

.switch-slider::before {
    content: "";
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
}

input:checked + .switch-slider {
    background: #28a745; /* Green when active */
}

input:checked + .switch-slider::before {
    transform: translateX(18px);
}

.switch-label {
    font-size: 14px;
    color: #333;
}

/* Remove button (close "X" icon) */
.remove-step {
    font-size: 20px;
    font-weight: bold;
    transition: color 0.2s ease-in-out;
}

.remove-step:hover {
    color: #dc3545;
}

/* Template Name */
.automation-step .fw-bold {
    font-size: 16px;
    color: #212529;
    text-align: center;
    width: 100%;
}

/* Show Details Button */
.show-details {
    width: 90%;
    font-size: 14px;
    padding: 5px;
    transition: background 0.3s ease;
}

.show-details:hover {
    background: #007bff;
    color: white;
}

#variables-toolbar {
    display: flex;
    overflow-x: auto;  /* Enables horizontal scrolling */
    scrollbar-width: thin;  /* Firefox scrollbar */
    scrollbar-color: #ccc transparent;  /* Firefox scrollbar color */
}

/* Webkit Browsers (Chrome, Safari) */
#variables-toolbar::-webkit-scrollbar {
    height: 6px;
}

#variables-toolbar::-webkit-scrollbar-thumb {
    background-color: #aaa;
    border-radius: 10px;
}

#variables-toolbar::-webkit-scrollbar-track {
    background: transparent;
}
