/* ============================================
   Frontend UI/UX Enhancements
   Modernizing EasyDoctor Interface
   ============================================ */

/* ==================== Typography & Global ==================== */

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--color-primary);
    color: #fff;
}

/* ==================== Improved Buttons ==================== */
.btn.ss-btn {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border: none;
    border-radius: 50px;
    padding: 15px 35px;
    font-weight: 600;
    box-shadow: var(--shadow-primary);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn.ss-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-primary-lg);
}

.btn.ss-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.btn.ss-btn:hover::after {
    opacity: 1;
}

/* ==================== Doctor Card Enhancements ==================== */
.doctor-card {
    border: none !important;
    background: #fff;
    border-radius: 15px !important;
    box-shadow: var(--shadow-lg) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.doctor-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl) !important;
}

.doctor-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 240px;
    background: linear-gradient(135deg, #e8f1fc 0%, #f2f9fb 100%);
}

.doctor-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.doctor-card:hover .doctor-image-wrapper img {
    transform: scale(1.08);
}

.doctor-card .card-body {
    padding-top: 1.5rem;
    padding-bottom: 0.75rem;
    flex-grow: 1;
}

.doctor-card .card-title {
    margin-bottom: 0.5rem;
}

.doctor-card .card-title a {
    color: #2d3748;
    font-size: 1.1rem;
    font-weight: 700;
    transition: color 0.3s ease;
}

.doctor-card .card-title a:hover {
    color: var(--color-primary);
}

.doctor-card .card-footer {
    border-top: 1px solid #eee;
    padding: 1rem 1.5rem;
    background-color: #f8f9fa;
}

.doctor-card .card-footer .btn {
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 10px 12px;
    font-size: 0.9rem;
}

.doctor-card .card-footer .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

/* Badge Styling */
.badge {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem !important;
    border-radius: 20px !important;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.badge.bg-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%) !important;
    box-shadow: var(--shadow-primary-sm);
}

/* ==================== Card Enhancements ==================== */
/* Specialists & Doctors Cards */
.single-specialists,
.card {
    border: none !important;
    background: #fff;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-soft) !important;
    transition: all 0.4s ease;
    overflow: hidden;
    border: 1px solid #cccccc54 !important;
}

.form-control {
    height: calc(2.2em + .75rem + 2px) !important;
}

.single-specialists:hover,
.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover) !important;
}

.single-specialists .specialists-icon img {
    transition: transform 0.5s ease;
}

.single-specialists:hover .specialists-icon img {
    transform: scale(1.1) rotate(5deg);
}

.card-img-top {
    transition: transform 0.6s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

/* ==================== Form Elements ==================== */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    border: 2px solid #edf2f7 !important;
    border-radius: var(--radius-md) !important;
    padding: 12px 18px !important;
    transition: all 0.3s ease;
    background-color: #f8fafc;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--color-secondary) !important;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(7, 204, 236, 0.1) !important;
    outline: none;
}

/* ==================== Search & Filter Section ==================== */
.doctor-search-filter {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
}

.input-group {
    border-radius: 8px;
    transition: all 0.3s ease;
}

.input-group:focus-within {
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

.input-group .form-control {
    border: 2px solid #eee !important;
    padding: 12px 18px !important;
    font-size: 1rem !important;
}

.input-group .form-control:focus {
    border-color: var(--color-primary);
    box-shadow: none;
}

.form-select {
    border: 2px solid #eee !important;
    border-radius: 8px !important;
    padding: 12px 18px !important;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23007bff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px 12px;
    padding-right: 2.5rem !important;
    appearance: none;
}

.form-select:focus {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15) !important;
}

/* ==================== Navigation Enhancements ==================== */
.main-menu ul li a {
    position: relative;
}

.main-menu ul li a::before {
    content: '';
    position: absolute;
    bottom: 20px;
    /* Adjusted position based on padding */
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.main-menu ul li:hover a::before {
    width: 100%;
}

/* ==================== Section Spacing & Layout ==================== */
.pt-80 {
    padding-top: 100px !important;
}

.pb-80 {
    padding-bottom: 100px !important;
}

.py-80 {
    padding: 100px 0 !important;
}

.section-title h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--color-secondary);
    border-radius: 3px;
}

.section-title.center-align h2::after {
    left: 50%;
    transform: translateX(-50%);
}

/* ==================== Alert Styling ==================== */
.alert {
    border: none;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.alert-info {
    background-color: #e3f2fd;
    color: #1565c0;
    border: 2px solid #90caf9;
}

.alert-success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 2px solid #81c784;
}

.alert-light {
    background-color: #f5f5f5;
    border: 2px solid #e0e0e0;
}

/* ==================== Animations ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.slider-content h2,
.slider-content p,
.slider-btn {
    animation-name: fadeInUp;
    animation-fill-mode: both;
}

.slider-content h2 {
    animation-duration: 0.8s;
}

.slider-content p {
    animation-duration: 1s;
    animation-delay: 0.2s;
}

.slider-btn {
    animation-duration: 1.2s;
    animation-delay: 0.4s;
}

/* ==================== Mobile Responsiveness ==================== */
@media (max-width: 768px) {
    .slider-bg {
        min-height: 500px;
    }

    .pt-80 {
        padding-top: 60px !important;
    }

    .pb-80 {
        padding-bottom: 60px !important;
    }

    .py-80 {
        padding: 60px 0 !important;
    }

    .single-specialists {
        margin-bottom: 20px;
    }

    .doctor-card {
        margin-bottom: 20px;
    }

    .doctor-search-filter {
        padding: 20px;
    }

    .doctor-image-wrapper {
        height: 200px;
    }

    .breadcrumb-area {
        min-height: auto !important;
        padding: 40px 0 !important;
    }

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

@media (max-width: 576px) {
    .doctor-image-wrapper {
        height: 180px;
    }

    .doctor-card .card-body {
        padding: 1rem 1rem;
    }

    .doctor-card .card-title a {
        font-size: 1rem;
    }

    .badge {
        font-size: 0.7rem;
        padding: 0.4rem 0.6rem !important;
    }
}

/* ==================== New Dashboard UI ==================== */
/* Sidebar Profile Card */
.sidebar-profile-card {
    background: linear-gradient(180deg, #e0f7fa 0%, #f1f8e9 100%);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    border: none;
    margin-bottom: 30px;
}

.sidebar-profile-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 4px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.sidebar-profile-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.sidebar-patient-id {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0;
}

/* Pill Navigation */
.nav-pills-custom .nav-link {
    background-color: #f8f9fa;
    color: #333;
    border-radius: 50px;
    padding: 12px 20px;
    margin-bottom: 10px;
    font-weight: 500;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    gap: 10px;
}

.nav-pills-custom .nav-link:hover {
    background-color: #e3f2fd;
    color: var(--color-secondary);
    padding-left: 25px;
    /* Slide effect */
}

.nav-pills-custom .nav-link.active {
    background-color: var(--color-primary);
    /* Teal-ish Blue */
    background: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 4px 10px rgba(3, 169, 244, 0.3);
}

.nav-pills-custom .nav-link.active i {
    color: var(--color-white) !important;
}

.nav-pills-custom .nav-link.btn-logout {
    background-color: #26c6da;
    /* Green/Teal */
    background: #1f0b9c;
    color: var(--color-white);
    margin-top: 20px;
}

.nav-pills-custom .nav-link.btn-logout:hover {
    background-color: var(--color-primary);
    color: var(--color-white) !important;
}

.nav-pills-custom .nav-link.btn-logout i {
    color: var(--color-white) !important;
}

/* Dashboard Stat Cards */
.dashboard-stat-card {
    background-color: #03a9f4;
    color: #fff;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 140px;
    transition: transform 0.3s ease;
    border: none;
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
}

.dashboard-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(3, 169, 244, 0.2);
}

.stat-icon-circle {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.stat-details h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0;
    line-height: 1;
    color: #fff;
}

.stat-details p {
    font-size: 0.9rem;
    margin-bottom: 5px;
    opacity: 0.9;
    color: #fff;
}

.stat-details small {
    font-size: 0.8rem;
    opacity: 0.8;
    color: #fff;
}

.stat-bg-icon {
    position: absolute;
    right: 15px;
    bottom: 10px;
    font-size: 4rem;
    opacity: 0.1;
    pointer-events: none;
    color: #fff;
}

/* Profile Info Section */
.profile-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #03a9f4;
    padding-bottom: 10px;
    margin-top: 30px;
}

.profile-info-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.profile-row {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.profile-label {
    font-weight: 600;
    color: #333;
    width: 30%;
    float: left;
}

.profile-value {
    color: #666;
    width: 70%;
    float: left;
}

.btn-edit-profile {
    background-color: #03a9f4;
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    align-self: center;
}

/* ==================== User Provided Dashboard Template ==================== */

/* User Profile Sidebar */
.user_profile {
    text-align: center;
    background: #e0e4fa;
    /* Light cyan background like mockup */
    background: linear-gradient(180deg, #e0e4fa 0%, #fff 100%);
    padding: 30px;
    border-radius: 10px;
    box-shadow: none;
    margin-bottom: 24px;
}

.user_profile_img {
    width: 110px;
    height: 110px;
    margin: 0 auto 15px;
    position: relative;
    border-radius: 50%;
    padding: 4px;
    background: #fff;
}

.user_profile_img img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.user_profile_img label {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    background: #333;
    /* Dark camera icon */
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 27px;
    cursor: pointer;
    font-size: 13px;
    border: 2px solid #fff;
}

.user_profile h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #333;
}

.user_profile p {
    font-size: 13px;
    color: #777;
    margin-bottom: 0;
}

/* Dashboard Menu */
.dashboard_menu {
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.dashboard_menu li {
    list-style: none;
    margin-bottom: 10px;
}

.dashboard_menu li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 25px;
    background: #f0f4f8;
    /* Light gray for inactive */
    color: #333;
    border-radius: 50px;
    /* Pill shape */
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.dashboard_menu li a::after {
    font-family: "Font Awesome 5 Pro", "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f054";
    /* Chevron Right */
    font-size: 12px;
}

.dashboard_menu li a:hover {
    background: #e1e5fe;
    color: #1f0b9c;
}

.dashboard_menu li a.active,
.dashboard_menu li a.active-menu {
    background: var(--gradient-primary) 0% 0% no-repeat padding-box;
    /* Bright Blue */
    color: var(--color-white);
    box-shadow: 0 4px 10px rgb(3 22 244 / 30%);
}

/* Logout Button Special Style */
.dashboard_menu li a.btn-logout {
    background: #666666;
    /* Green */
    color: #fff;
    margin-top: 20px;
    justify-content: center;
}

.dashboard_menu li a.btn-logout::after {
    display: none;
    /* No chevron for logout if centered, or keep it */
}

.dashboard_menu li a.btn-logout i {
    margin-left: 10px;
}

/* Dashboard Content */
.dashboard_content h5 {
    font-size: 16px;
    font-weight: 600;
    /* margin-bottom: 25px; */
    text-transform: capitalize;
    color: #333;
}

/* Stats Cards - Blue Theme */
.dashboard_overview {
    background: var(--color-primary);
    /* Primary Theme Color */
    padding: 25px 15px;
    border-radius: 10px;
    box-shadow: var(--shadow-primary);
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    color: var(--color-white);
    min-height: 140px;
    justify-content: flex-start;
}

.dashboard_overview:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(3, 169, 244, 0.3);
}

.dashboard_overview .icon {
    width: 60px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    background: #fff;
    /* White circle */
    color: var(--color-primary);
    /* Blue Icon */
    border-radius: 50%;
    font-size: 24px;
    margin-right: 20px;
    flex-shrink: 0;
    z-index: 2;
}

.dashboard_overview .text {
    z-index: 2;
}

.dashboard_overview .text p {
    margin-bottom: 0;
    font-size: 14px;
    opacity: 0.9;
}

/* Color Variants for Dashboard Cards */
.dashboard_overview {
    background: var(--color-primary);
    /* Primary Theme Color */
    /* background: var(--gradient-primary); Optional: Use gradient */
    box-shadow: var(--shadow-primary);
}

.dashboard_overview.bg-success {
    background: #1f0b9c;
    /* Green - No variable available yet */
    box-shadow: 0 5px 15px rgba(0, 191, 142, 0.2);
}

.dashboard_overview.bg-success:hover {
    box-shadow: 0 8px 25px rgba(0, 191, 142, 0.3);
}

.dashboard_overview.bg-warning {
    background: #ffb74d;
    /* Orange - No variable available yet */
    box-shadow: 0 5px 15px rgba(255, 183, 77, 0.2);
}

.dashboard_overview.bg-warning:hover {
    box-shadow: 0 8px 25px rgba(255, 183, 77, 0.3);
}

.dashboard_overview.bg-info {
    background: var(--color-secondary);
    /* Secondary Theme Color */
    box-shadow: 0 5px 15px rgba(7, 204, 236, 0.2);
}

.dashboard_overview.bg-info:hover {
    box-shadow: 0 8px 25px rgba(7, 204, 236, 0.3);
}

.dashboard_overview.bg-purple {
    background: #5b3799;
    /* Purple */
    box-shadow: 0 5px 15px rgba(91, 55, 153, 0.2);
}

.dashboard_overview.bg-purple:hover {
    box-shadow: 0 8px 25px rgba(91, 55, 153, 0.3);
}

.dashboard_overview .text h3 {
    font-size: 28px;
    font-weight: 700;
    margin: 5px 0;
    color: var(--color-white);
}

/* Faint Background Icon */
.dashboard_overview .bg-icon {
    position: absolute;
    right: 10px;
    bottom: 0px;
    font-size: 80px;
    color: rgba(255, 255, 255, 0.15);
    transform: rotate(-10deg);
    pointer-events: none;
    z-index: 1;
}

/* Profile Info */
.dashboard_profile {
    background: #fff;
    /* White background */
    padding: 0;
    /* Removing padding to handle via internal spacing */
    border-radius: 0;
    box-shadow: none;
    margin-top: 0px;
    position: relative;
    list-style: none;
}

.dashboard_profile h5 {
    font-size: 20px;
    border-bottom: 2px solid var(--color-secondary);
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: 0px;
    color: #333;
}

.dashboard_profile a {
    position: absolute;
    top: 0;
    right: 0;
    padding: 13px 26px;
    border-radius: 50px;
    font-size: 14px;
    text-decoration: none;
    text-transform: capitalize;
    width: 100px;
    margin-top: -7px;
}

.dashboard_profile ul {
    margin: 0;
    padding: 20px 25px;
    margin-top: 25px;
    margin-bottom: 25px;
    border: 1px solid #cccccc45;
    border-radius: 10px;
}

/* .dashboard_profile ul li {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    font-size: 15px;
} */

.dashboard_profile ul li {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 0px;
    border-bottom: 0px solid #eee;
    padding-bottom: 0px;
    padding: 6px 0px;
}

.dashboard_profile ul li:last-child {
    border-bottom: none;
}

.dashboard_profile ul li span {
    width: 200px;
    /* Fixed label width */
    font-weight: 600;
    color: #333;
    flex-shrink: 0;
}

.dashboard_profile ul li {
    color: #666;
}



.dashboard_profile a:hover {
    background: var(--color-primary-dark, #0056b3);
}

/* .dashboard_profile ul {
    margin: 0;
    padding: 0;
} */

/* .dashboard_profile ul li {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
} */

.dashboard_profile ul li:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.dashboard_profile ul li span {
    width: 30%;
    font-weight: 600;
    color: var(--color-text-heading);
}

@media (max-width: 576px) {
    .dashboard_profile ul li span {
        width: 100%;
        margin-bottom: 5px;
    }
}

/* ==================== Appointment Card (Facilities) ==================== */
.appointment-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    /* Soft shadow */
    padding: 20px;
    position: relative;
    border: 1px solid #11065512;
    transition: all 0.3s ease;
    margin-bottom: 24px;
}

/* .appointment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
} */

.appointment-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.appointment-img-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #f0f0f0;
}

.appointment-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.appointment-info h5 {
    margin: 0 0 5px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
}

.appointment-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

.appointment-status-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.appointment-status-badge.status-expired {
    color: #dc3545;
}

.appointment-status-badge.status-upcoming {
    color: var(--color-primary);
}

.appointment-status-badge.status-completed {
    color: #198754;
}

.appointment-status-badge.status-cancelled {
    color: #dc3545;
}

.badge-payment {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.badge-payment.paid {
    background: #d1e7dd;
    color: #0f5132;
}

.badge-payment.unpaid {
    background: #fad7d7;
    color: #dc3545;
}

.badge-payment.health_card {
    background: #cff4fc;
    color: #055160;
}

.appointment-datetime {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 20px;
    padding-left: 75px;
    /* Align with text */
}

/* Action Buttons Footer */
.appointment-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid #f5f5f5;
}

.action-btn {
    flex: 1;
    background: #f0f0f0;
    color: #fff;
    border: none;
    border-radius: 8px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.action-btn i {
    color: #fff;
}

/* Enabled States - Default Colors */
.action-btn.btn-chat {
    background: #1a4b8c;
}

.action-btn.btn-chat i {
    color: #fff;
}

.action-btn.btn-call {
    background: #28a745;
}

.action-btn.btn-call i {
    color: #fff;
}

.action-btn.btn-video {
    background: #17a2b8;
}

.action-btn.btn-video i {
    color: #fff;
}

.action-btn.btn-cancel {
    background: #dc3545;
}

.action-btn.btn-cancel i {
    color: #fff;
}

/* Hover Effects */
.action-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    filter: brightness(1.1);
}

/* Standardized Disabled State - Gray for all */
.action-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    background: #e9ecef !important;
    transform: none !important;
    box-shadow: none !important;
}

.action-btn:disabled i {
    color: #adb5bd !important;
}

/* ==================== Custom Pagination ==================== */
.pagination {
    margin-bottom: 0;
    gap: 5px;
}

.page-item .page-link {
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.page-item.active .page-link {
    background: var(--color-primary);
    color: #fff;
    /* box-shadow: 0 4px 10px rgba(30, 11, 155, 0.3); */
    /* transform: translateY(-2px); */
}

.page-item .page-link:hover {
    background: #e0f7fa;
    color: var(--color-primary);
    transform: translateY(-2px);
}

.page-item.disabled .page-link {
    background: #f8f9fa;
    color: #ccc;
    box-shadow: none;
    cursor: not-allowed;
}

.page-item:first-child .page-link,
.page-item:last-child .page-link {
    border-radius: 50%;
    /* Override bootstrap rounded-pill/corners */
}

textarea.form-control {
    height: auto !important;
}

.g-10 {
    gap: 10px;
}

.d-flex.align-items-center.justify-content-center.rounded-circle.mb-1.bg-primary.text-white {
    width: 40px !important;
    margin: auto !important;
}

.modal-content {
    border-radius: 20px;
}

.cs-btn-group {
    border: 1px solid #dee2e6 !important;
    border-radius: 50px !important;
}

/* ==================== Animations ==================== */
@keyframes pulsate {
    0% {
        box-shadow: 0 0 0 0 rgba(23, 162, 184, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(23, 162, 184, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(23, 162, 184, 0);
    }
}

.pulsate-active {
    animation: pulsate 2s infinite;
}

.cs-btn-group button {
    height: 45px;
    width: 60px;
    color: #1e0b9b !important;
    border-right: 1px solid #ccc !important;
}

.cs-btn-group a {
    color: #09b7e3 !important;
    height: 45px;
    width: 60px;
    padding: 15px 0px !important;
    border-left: 1px solid #ccc;
}

.attachbtn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #6c757d !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background: transparent;
    border: none;
    padding: 0;
}

.attachbtn:hover {
    background-color: #f1f3f4;
    color: #007bff !important;
}

.attachbtn i {
    color: inherit;
    font-size: 1.1rem;
}

input#contact-search {
    padding: 10px 10px 10px 35px !important;
}

/* ==================== Countdown Timer ==================== */
.timer-countdown {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    /* background: rgba(220, 53, 69, 0.05);
    border: 1px dashed rgba(220, 53, 69, 0.2); */
    border-radius: 30px;
    padding: 6px 12px;
    transition: all 0.3s ease;
}

.timer-countdown .dt-item {
    font-size: 0.85rem;
    font-weight: 700;
}

.timer-countdown.ongoing {
    background: rgb(40 167 69 / 0%);
    border-color: rgb(40 167 69 / 0%);
}

.timer-countdown.ongoing .dt-item {
    color: #28a745 !important;
}

.timer-countdown.ended {
    background: #f8f9fa00;
    border-color: #dee2e600;
    opacity: 0.7;
}

.timer-countdown.ended .dt-item {
    color: #6c757d;
}

/* Inline timer specific (for appointment list) */
.timer-countdown.inline-timer {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    gap: 0 !important;
}

.timer-countdown.inline-timer .dt-item {
    font-size: 14px !important;
    color: #dc3545 !important;
}

.timer-countdown.inline-timer.ongoing {
    background: transparent !important;
    border: none !important;
}

.timer-countdown.inline-timer.ongoing .dt-item {
    color: #28a745 !important;
}

.gap-2 {
    gap: 5px !important;
}

.form-control {
    display: block;
    width: 100%;
    height: calc(1.5em + .75rem + 2px);
    padding: .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #f8fafc;
    background-clip: padding-box;
    border: 2px solid #edf2f7;
    border-radius: .5rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.gap-3 {
    gap: 15px;
}