/* Custom styles for the login page Body start*/
html {
    font-size: 13px;
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    background-attachment: fixed;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

/* Premium Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.5px;
}

/* Top Bar in Login Page Start*/
.top-bar {
    background: linear-gradient(to right, #007bff, #00c6ff);
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.2);
}

.top-bar a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.top-bar a:hover {
    opacity: 0.8;
}
/* Top Bar End */

/* Premium Card Styling */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.card-header {
    background: linear-gradient(135deg, #007bff, #00c6ff) !important;
    color: white !important;
    border: none;
    padding: 1.5rem;
    border-radius: 12px 12px 0 0;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Dashboard Insights Start */
.card-hover:hover {
    transform: translateY(-8px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.icon-bg {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.card:hover .icon-bg {
    transform: scale(1.1);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #007bff, #0056b3) !important;
    color: white;
}

.bg-gradient-success {
    background: linear-gradient(135deg, #28a745, #1e7e34) !important;
    color: white;
}

.bg-gradient-danger {
    background: linear-gradient(135deg, #dc3545, #a71d2a) !important;
    color: white;
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #ffc107, #e0a800) !important;
    color: #333;
}

.bg-gradient-info {
    background: linear-gradient(135deg, #17a2b8, #117a8b) !important;
    color: white;
}

.bg-gradient-dark {
    background: linear-gradient(135deg, #343a40, #1d2124) !important;
    color: white;
}

.bg-gradient-purple {
    background: linear-gradient(135deg, #6f42c1, #4b2c91) !important;
    color: white;
}

.bg-gradient-indigo {
    background: linear-gradient(135deg, #6610f2, #520dc2) !important;
    color: white;
}

.bg-gradient-orange {
    background: linear-gradient(135deg, #fd7e14, #d65a00) !important;
    color: white;
}
/* Dashboard Insights End */

/* Global Style For Card End */

/* Premium Button Styling */
.btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    transition: all 0.3s ease;
    border: none;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d, #495057);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.btn-secondary:hover {
    box-shadow: 0 8px 20px rgba(108, 117, 125, 0.4);
    transform: translateY(-2px);
}

.btn-info {
    background: linear-gradient(135deg, #17a2b8, #117a8b);
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
}

.btn-info:hover {
    box-shadow: 0 8px 20px rgba(23, 162, 184, 0.4);
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-success:hover {
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.4);
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545, #a71d2a);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.btn-danger:hover {
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.4);
    transform: translateY(-2px);
}

.btn-outline-success {
    border: 2px solid #28a745;
    color: #28a745;
    background: transparent;
}

.btn-outline-success:hover {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: white;
    border-color: transparent;
}

/* Sidebar Styling */
.sidebar {
    min-height: 100vh;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 50%, #ffffff 100%);
    font-size: 14px;
    border-right: 2px solid rgba(0, 123, 255, 0.08);
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.05);
    padding-top: 1.5rem !important;
}

.nav-link.active {
    background: linear-gradient(90deg, #007bff, #00c6ff);
    color: white !important;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

.accordion-body .nav-link {
    font-size: 13px;
    color: #333;
    transition: all 0.3s ease;
    margin: 0.25rem 0;
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
}

.accordion-body .nav-link:hover {
    font-weight: 500;
    background-color: rgba(0, 123, 255, 0.1);
    color: #007bff;
    margin-left: 5px;
    border-radius: 8px;
}

.accordion-item {
    background: transparent;
    border: none;
    margin-bottom: 0.5rem;
}

.accordion-button {
    font-weight: 600;
    color: #333;
    transition: all 0.3s ease;
    font-size: 14px;
    background: linear-gradient(90deg, rgba(0, 123, 255, 0), transparent) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 0.75rem 1rem !important;
}

.accordion-button:hover {
    background: linear-gradient(90deg, rgba(0, 123, 255, 0.1), transparent) !important;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(90deg, #007bff, #00c6ff) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15) !important;
    border-radius: 8px !important;
}

.accordion-body {
    padding: 0.5rem 0.5rem !important;
    background: transparent;
}
/* Sidebar Style End */

/* Premium Table Styling */
.table {
    border-collapse: collapse;
    margin: 0;
}

.table th {
    background: linear-gradient(135deg, #007bff, #00c6ff) !important;
    color: white !important;
    font-weight: 600;
    padding: 1.2rem 0.8rem !important;
    border: none !important;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.table td {
    padding: 1rem 0.8rem !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    vertical-align: middle;
}

.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
    box-shadow: inset 0 0 0 1000px rgba(0, 123, 255, 0.02);
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.01);
}

/* Premium Form Styling */
.form-control, .form-select {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.8rem 1rem;
    transition: all 0.3s ease;
    font-size: 14px;
}

.form-control:focus, .form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    border-radius: 8px;
}

.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.6rem;
    font-size: 14px;
    letter-spacing: 0.3px;
}

.underline-input {
    border: none;
    border-bottom: 2px solid #ccc;
    border-radius: 0;
    background-color: transparent;
    box-shadow: none;
    outline: none;
    transition: border-color 0.3s ease;
    padding-left: 0;
    padding-right: 0;
}

.underline-input:focus {
    border-bottom-color: #007bff;
    box-shadow: none;
}

/* Alert Styling */
.alert {
    border: none;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border-left: 4px solid;
    animation: slideIn 0.3s ease-out;
}

.alert-success {
    border-left-color: #28a745;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.05), rgba(40, 167, 69, 0.02));
}

.alert-danger {
    border-left-color: #dc3545;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.05), rgba(220, 53, 69, 0.02));
}

.alert-warning {
    border-left-color: #ffc107;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.05), rgba(255, 193, 7, 0.02));
}

.alert-info {
    border-left-color: #17a2b8;
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.05), rgba(23, 162, 184, 0.02));
}

@keyframes slideIn {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Badge Styling */
.badge {
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    font-weight: 600;
    letter-spacing: 0.3px;
    font-size: 11px;
}

/* Main Page Content Styling */
.container-fluid {
    background: linear-gradient(135deg, rgba(245, 247, 250, 0.5), rgba(195, 207, 226, 0.1));
    min-height: 100vh;
}

/* Smooth Scrolling and Page Transitions */
html {
    scroll-behavior: smooth;
}

/* Page Title with Gradient Effect */
h1, h2, h3 {
    transition: all 0.3s ease;
}

/* Premium Input with Focus States */
textarea.form-control {
    resize: vertical;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    font-size: 14px;
}

textarea.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Enhanced Links */
a {
    transition: all 0.3s ease;
}

a:hover {
    color: #007bff;
}

/* Badge Enhancements */
.badge {
    font-weight: 600;
    padding: 0.6rem 0.9rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

/* Card Shadow Enhancement */
.card {
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12) !important;
}

/* Table Styling Enhancement */
.table thead th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

/* Status Badge Animations */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 123, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0); }
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* Modal Styling */
.modal-content {
    border: none;
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.modal-header {
    border: none;
    padding: 1.5rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border: none;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.01);
}

/* Pagination Styling */
.pagination {
    gap: 0.25rem;
}

.page-link {
    border-radius: 6px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
    color: #007bff;
}

.page-link:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.page-link.active {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-color: #0056b3;
}

/* Responsive Grid for Cards */
@media (max-width: 768px) {
    .container-fluid {
        padding: 0.5rem !important;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    h1 {
        font-size: 1.5rem !important;
    }
}

/* Navbar Styling */
.navbar {
    background: linear-gradient(90deg, #007bff, #00c6ff) !important;
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.15);
    padding: 1rem 1.5rem;
}

.navbar-brand img {
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.dropdown-menu {
    border: none;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-top: 3px solid #007bff;
}

.dropdown-item {
    padding: 0.8rem 1.2rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.dropdown-item:hover {
    background: linear-gradient(90deg, #007bff, #00c6ff);
    color: white;
}

/* Treatment Page / New sale / checkout Component Styles */
.medicine-input {
    border: none;
    border-bottom: 1px solid #ccc;
    border-radius: 0;
    background-color: transparent;
    box-shadow: none;
    outline: none;
    transition: border-color 0.3s ease;
    padding-left: 0;
    padding-right: 0;
}

/* Doctor Sections Styles Start */
.schedule-time {
    width: 105px;
}

.schedule-table th, .schedule-table td {
    vertical-align: middle;
    text-align: center;
}

.doctor-name {
    font-weight: bold;
}

.specialization {
    font-size: 0.875rem;
    color: #6c757d;
}

.action-btns .btn {
    margin: 0 2px;
}
/* Doctor Section Styles End */

/* Main Footer */
.main-footer {
    margin-bottom: 0px;
}

/* Reports page button styles Start */
.report-button-mini {
    width: 150px;
    height: 150px;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-weight: 500;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.report-button-mini:hover {
    transform: scale(1.12);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
/* Reports page button styles End */

/* Responsive Design */
@media (max-width: 768px) {
    body {
        background-attachment: scroll;
    }
    
    .sidebar {
        border-right: none;
        border-bottom: 1px solid rgba(0, 123, 255, 0.08);
    }
    
    .container-fluid {
        padding: 0;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-enter {
    animation: fadeIn 0.3s ease-out;
}

/* Smooth transitions */
* {
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn, .card, .nav-link, .form-control, .dropdown-item {
    transition: all 0.3s ease;
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #ffc107, #e0a800);
}

.bg-gradient-info {
    background: linear-gradient(135deg, #17a2b8, #117a8b);
}

.bg-gradient-dark {
    background: linear-gradient(135deg, #343a40, #1d2124);
}
.bg-gradient-purple {
    background: linear-gradient(135deg, #6f42c1, #4b2c91);
}
.bg-gradient-indigo {
    background: linear-gradient(135deg, #6610f2, #520dc2);
}
.bg-gradient-orange {
    background: linear-gradient(135deg, #fd7e14, #d65a00);
}
/* Dashboard Insights End */

/* Global Style For Card Header Start */
.card-header {
    background: linear-gradient(to right, #007bff, #00c6ff)
}
/* Global Style For Card Header End */

/* Sidebar Style Start */
.sidebar {
    min-height: 100vh;
    background-color: #f8f9fa; /* Light gray Bootstrap color */
    font-size: 14px;
}

.nav-link.active {
    background-color: #0d6efd; /* Bootstrap primary */
    color: white !important;
    font-weight: 500;
    border-radius: 5px;
}

.accordion-body .nav-link:hover {
    font-weight: 500;
    background-color: #0080ff56; /* Light gray on hover */
    margin-left: 5px;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.accordion-body .nav-link {
    font-size: 12px; /* Adjust for sidebar links */
    color: #333435;
}


.btn-close {
    font-size: 1rem;
}
/* Sidebar Style End */


/* Styles for the login page start*/
.login-form {
    background-color: rgba(255, 255, 255, 0.9);
}

.underline-input {
    border: none;
    border-bottom: 2px solid #ccc;
    border-radius: 0;
    background-color: transparent;
    box-shadow: none;
    outline: none;
    transition: border-color 0.3s ease;
    padding-left: 0;
    padding-right: 0;
}

.underline-input:focus {
    border-bottom-color: #007bff; /* or any color you like */
    box-shadow: none;
}

/* Styles for the login page End*/

/* Treatment Page / New sale / chekout Component Styles Start*/
.medicine-input {
    border: none;
    border-bottom: 1px solid #ccc;
    border-radius: 0;
    background-color: transparent;
    box-shadow: none;
    outline: none;
    transition: border-color 0.3s ease;
    padding-left: 0;
    padding-right: 0;
}
/* Treatment Page / New sale / chekout Component Styles end*/

/* Doctor Sections Styles Start */
.schedule-time{
    width: 105px;
}

.schedule-table th, .schedule-table td {
    vertical-align: middle;
    text-align: center;
  }
  .doctor-name {
    font-weight: bold;
  }
  .specialization {
    font-size: 0.875rem;
    color: #6c757d;
  }
  .action-btns .btn {
    margin: 0 2px;
  }
/* Doctor Section Styles End */

/* Footer Start */
.main-footer{
    margin-bottom: 0px;
}
/* Footer End */

/* Reports page button styles Start */
.report-button-mini {
    width: 150px;
    height: 150px;
    font-size: 14px; /* Icon size */
    transition: transform 0.2s ease;
    font-weight: 500;
}
.report-button-mini:hover {
    transform: scale(1.1);
}
/* Reports page button styles End*/


/* Background Image Responsive Code Start */
@media (max-width: 768px) {
    body {
        background-attachment: scroll; /* fallback for mobile smoothness */
    }
}
/* Background Image Responsive Code End */

.position-fixed.bottom-0 {
    background-color: #f8f9fa; /* Light background */
    font-size: 13px;
    z-index: 1030; /* So it's above other content */
}

/* Dashboard theme overrides (match home page color palette) */
.dashboard-theme .navbar {
    background: linear-gradient(90deg, #007bff 0%, #00c6ff 100%);
    color: #ffffff;
}
.dashboard-theme .navbar .navbar-brand img { filter: brightness(0) invert(1); }
.dashboard-theme .navbar .dropdown-toggle strong,
.dashboard-theme .navbar a,
.dashboard-theme .navbar .nav-link {
    color: #fff !important;
}

.dashboard-theme .sidebar {
    background: linear-gradient(180deg,#ffffff,#f1fbff);
    border-right: 1px solid rgba(13,110,253,0.06);
}
.dashboard-theme .nav-link.active {
    background: linear-gradient(90deg,#007bff,#00c6ff);
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(0,123,255,0.12);
}
.dashboard-theme .accordion-button:not(.collapsed) {
    background: linear-gradient(90deg,#007bff,#00c6ff);
    color: #fff;
}

.dashboard-theme .card-header {
    background: linear-gradient(135deg, #007bff, #00c6ff);
    color: #fff;
}

.dashboard-theme .btn-outline-primary {
    color: #007bff;
    border-color: rgba(0,123,255,0.2);
}
.dashboard-theme .btn-outline-primary:hover {
    background: linear-gradient(90deg,#007bff,#00c6ff);
    color: #fff;
    border-color: transparent;
}
/* end dashboard-theme overrides */
.dashboard-theme main { padding-bottom: 120px; }



/* Booking widget: suppress duplicate native/bootstrap select arrow so only theme arrow shows */
.checkout-wrapper .form-select {
    /* Remove Bootstrap's background SVG arrow */
    background-image: none !important;
    /* Ensure native appearance is removed on WebKit/Firefox */
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    padding-right: 1rem; /* keep some right padding for custom arrow */
}

/* If the theme places a custom arrow with ::after on a parent, keep it visible */
.checkout-wrapper .nice-select::after {
    display: inline-block;
}

/* Hide native dropdown arrow in IE/Edge */
.checkout-wrapper select::-ms-expand {
    display: none;
}

/* jQuery UI Datepicker fixes: ensure visible background, shadow, and above other elements */
#ui-datepicker-div.ui-datepicker,
.ui-datepicker {
    background: #ffffff !important;
    border: 1px solid rgba(0,0,0,0.08) !important;
    box-shadow: 0 8px 24px rgba(13, 38, 76, 0.12) !important;
    z-index: 99999 !important;
    border-radius: 8px !important;
    width: auto !important ;
}

.ui-datepicker .ui-datepicker-header {
    background: transparent !important;
    border: 0 !important;
}

.ui-datepicker table {
    background: transparent !important;
}

.ui-datepicker .ui-state-default {
    background: transparent !important;
    border-radius: 6px !important;
}

/* Make sure the datepicker doesn't get clipped by overflowed containers */
#ui-datepicker-div { position: absolute !important; top: auto; left: auto; }

