/* 
 * Clinician Portal CSS
 * Vima Physiotherapy Ltd
 */

:root {
    --primary-color: #1e3c72;
    --primary-light: #2a5298;
    --secondary-color: #28a745;
    --accent-color: #17a2b8;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --gray-light: #e9ecef;
    --gray-medium: #6c757d;
    --border-radius: 10px;
    --box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    --box-shadow-hover: 0 5px 20px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fb;
    color: var(--dark-color);
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.2rem;
}

h2 {
    font-size: 1.8rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.3rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-light);
}

/* Layout Components */
.content-wrapper {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--box-shadow);
}

.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    margin-bottom: 20px;
}

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

.card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
    padding: 15px 20px;
    border: none;
}

.card-header h5 {
    color: white;
    margin: 0;
}

.card-body {
    padding: 20px;
}

/* Dashboard Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    display: flex;
    align-items: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-hover);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 1.8rem;
}

.stat-icon.appointments {
    background: rgba(40, 167, 69, 0.1);
    color: var(--secondary-color);
}

.stat-icon.patients {
    background: rgba(30, 60, 114, 0.1);
    color: var(--primary-color);
}

.stat-icon.revenue {
    background: rgba(255, 193, 7, 0.1);
    color: var(--warning-color);
}

.stat-icon.notes {
    background: rgba(23, 162, 184, 0.1);
    color: var(--accent-color);
}

.stat-content h3 {
    font-size: 2rem;
    margin: 0;
    color: var(--dark-color);
}

.stat-content p {
    margin: 5px 0 0;
    color: var(--gray-medium);
    font-size: 0.9rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 500;
    color: #fff; /*var(--primary-color);*/
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(30, 60, 114, 0.15);
}

.form-control-sm {
    padding: 6px 12px;
    font-size: 0.875rem;
}

/* Buttons */
.btn {
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
    border: none;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.2);
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    color: #212529;
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.875rem;
}

.btn-group {
    border-radius: 8px;
    overflow: hidden;
}

.btn-group .btn {
    border-radius: 0;
}

/* Tables */
.table-responsive {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.table {
    margin-bottom: 0;
}

.table thead th {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    padding: 15px;
    font-weight: 500;
}

.table tbody tr {
    transition: var(--transition);
}

.table tbody tr:hover {
    background-color: rgba(30, 60, 114, 0.03);
}

.table tbody td {
    padding: 15px;
    vertical-align: middle;
    border-color: var(--gray-light);
}

/* Badges */
.badge {
    padding: 6px 12px;
    font-weight: 500;
    border-radius: 20px;
    font-size: 0.85rem;
}

.badge-pending {
    background-color: #fff3cd;
    color: #856404;
}

.badge-confirmed {
    background-color: #d4edda;
    color: #155724;
}

.badge-completed {
    background-color: #d1ecf1;
    color: #0c5460;
}

.badge-cancelled {
    background-color: #f8d7da;
    color: #721c24;
}

/* Status Indicators */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.online {
    background-color: var(--secondary-color);
}

.status-dot.offline {
    background-color: var(--danger-color);
}

.status-dot.away {
    background-color: var(--warning-color);
}

/* Calendar Styles */
.calendar-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.fc {
    font-family: inherit;
}

.fc .fc-toolbar-title {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.fc .fc-button {
    background: var(--primary-color);
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-weight: 500;
}

.fc .fc-button:hover {
    background: var(--primary-light);
}

.fc .fc-button:active, .fc .fc-button:focus {
    background: var(--primary-light) !important;
    box-shadow: none !important;
}

/* Appointment Cards */
.appointment-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.appointment-card:hover {
    transform: translateX(5px);
    box-shadow: var(--box-shadow-hover);
}

.appointment-card.upcoming {
    border-left-color: var(--secondary-color);
}

.appointment-card.urgent {
    border-left-color: var(--danger-color);
}

.appointment-card.completed {
    border-left-color: var(--accent-color);
    opacity: 0.8;
}

.appointment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.appointment-time {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.appointment-patient {
    display: flex;
    align-items: center;
    gap: 10px;
}

.patient-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.patient-info h6 {
    margin: 0;
    font-size: 1rem;
}

.patient-info p {
    margin: 2px 0 0;
    font-size: 0.85rem;
    color: var(--gray-medium);
}

.appointment-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* Modal Customization */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    border-radius: 15px 15px 0 0;
    border: none;
    padding: 20px;
}

.modal-header .modal-title {
    color: white;
    margin: 0;
}

.modal-header .btn-close {
    filter: invert(1) brightness(100%);
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    border-top: 1px solid var(--gray-light);
    padding: 20px;
}

/* Alert Customization */
.alert {
    border-radius: var(--border-radius);
    border: none;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid var(--secondary-color);
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid var(--danger-color);
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-left: 4px solid var(--warning-color);
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid var(--accent-color);
}

/* Loading Spinner */
.spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-light);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 50px 20px;
}

.empty-state-icon {
    font-size: 4rem;
    color: var(--gray-light);
    margin-bottom: 20px;
}

.empty-state h4 {
    color: var(--gray-medium);
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--gray-medium);
    max-width: 400px;
    margin: 0 auto;
}

/* Filter Bar */
.filter-bar {
    background: white;
    border-radius: var(--border-radius);
    padding: 15px 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    box-shadow: var(--box-shadow);
}

.filter-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Search Box */
.search-box {
    position: relative;
    width: 300px;
}

.search-box input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    font-size: 0.95rem;
}

.search-box .search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-medium);
}

/* Pagination */
.pagination {
    justify-content: center;
}

.page-link {
    border: 1px solid var(--gray-light);
    color: var(--primary-color);
    margin: 0 5px;
    border-radius: 6px;
    padding: 8px 15px;
}

.page-link:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
    
    .stat-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        width: 100%;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .content-wrapper {
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .btn-group {
        flex-wrap: wrap;
    }
    
    .btn-group .btn {
        width: 100%;
        margin-bottom: 5px;
        border-radius: 8px !important;
    }
    
    .table-responsive {
        font-size: 0.9rem;
    }
    
    .appointment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Print Styles */
@media print {
    .sidebar,
    .top-bar,
    .btn,
    .no-print {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
        padding: 0 !important;
    }
    
    .content-wrapper {
        box-shadow: none;
        padding: 0;
    }
    
    .table {
        border: 1px solid #ddd;
    }
    
    .table th {
        background: #f8f9fa !important;
        color: #000 !important;
        -webkit-print-color-adjust: exact;
    }
}

/* Utility Classes */
.text-primary { color: var(--primary-color) !important; }
.text-success { color: var(--secondary-color) !important; }
.text-danger { color: var(--danger-color) !important; }
.text-warning { color: var(--warning-color) !important; }
.text-info { color: var(--accent-color) !important; }

.bg-primary { background-color: var(--primary-color) !important; }
.bg-success { background-color: var(--secondary-color) !important; }
.bg-danger { background-color: var(--danger-color) !important; }
.bg-warning { background-color: var(--warning-color) !important; }
.bg-info { background-color: var(--accent-color) !important; }

.shadow-sm { box-shadow: var(--box-shadow) !important; }
.shadow { box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important; }

.rounded-lg { border-radius: var(--border-radius) !important; }

.mt-6 { margin-top: 4rem !important; }
.mb-6 { margin-bottom: 4rem !important; }

.cursor-pointer { cursor: pointer; }
.user-select-none { user-select: none; }

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}


/***
Clinicians from index.php page
***/
/* assets/css/clinicians.css */

.clinicians-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 5rem 0;
}

.clinicians-section h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-align: center;
}

.clinicians-section > .text-center > p {
    color: #5d6d7e;
    font-size: 1.0rem;
    font-weight: 400;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.clinician-card {
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    height: 100%;
    position: relative;
    background: var(--text-white);
}

.clinician-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.clinician-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.8rem;
    padding: 2rem 2rem 0;
}

.clinician-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    margin-right: 1.8rem;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.3);
}

.clinician-info {
    flex: 1;
}
.clinician-info {
    fonct-size: 1.0rem;
}

.clinician-name {
    font-size: 1rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.clinician-title {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.8rem;
    letter-spacing: 0.5px;
}

.clinician-specialization {
    display: inline-block;
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f7ff 100%);
    padding: 0.6rem 0.2rem;
    border-radius: 20px;
    font-size: 0.95rem;
    color: var(--primary-color);
    font-weight: 600;
    border: 2px solid #d0ebff;
}

.clinician-blurb {
    color: #5d6d7e;
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1.05rem;
    padding: 0 2rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 400;
}

.card-body {
    padding: 0 0 2rem;
}

/* Reduce Book Appointment button size */
.btn-book-appointment {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    color: var(--text-white);
    padding: 0.6rem 1.5rem !important; /* Reduced from 1rem 2.2rem */
    border-radius: 40px !important; /* Reduced from 50px */
    font-weight: 600 !important; /* Reduced from 700 */
    font-size: 0.95rem !important; /* Reduced from 1.1rem */
    transition: var(--transition);
    width: 85% !important; /* Reduced from 90% */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem !important; /* Reduced from 0.8rem */
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3) !important; /* Reduced from 0 8px 20px */
    text-transform: uppercase;
    letter-spacing: 0.5px !important; /* Reduced from 1px */
    height: auto !important;
    min-height: 44px !important; /* Better touch target */
}

.btn-book-appointment:hover {
    transform: translateY(-2px) !important; /* Reduced from -3px */
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4) !important; /* Reduced from 0 15px 30px */
    color: var(--text-white);
    background: linear-gradient(135deg, #0069d9 0%, #004085 100%);
}

/* Make icon smaller */
.btn-book-appointment i {
    font-size: 0.9rem !important; /* Reduced icon size */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .btn-book-appointment {
        padding: 0.5rem 1.2rem !important;
        font-size: 0.9rem !important;
        width: 90% !important;
    }
    
    .btn-book-appointment i {
        font-size: 0.85rem !important;
    }
}

@media (max-width: 576px) {
    .btn-book-appointment {
        padding: 0.4rem 1rem !important;
        font-size: 0.85rem !important;
        width: 95% !important;
        border-radius: 30px !important;
    }
}

.btn-book-appointment:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 123, 255, 0.4);
    color: var(--text-white);
    background: linear-gradient(135deg, #0069d9 0%, #004085 100%);
}

/* Locations Section */
.locations-section {
    background: linear-gradient(135deg, #1a5276 0%, #2980b9 100%) !important;
    border-radius: var(--border-radius);
    padding: 3.5rem;
    color: var(--text-white);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.locations-section h4 {
    color: var(--text-white);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.location-list {
    max-height: 450px;
    overflow-y: auto;
    padding-right: 15px;
}

.location-list::-webkit-scrollbar {
    width: 8px;
}

.location-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.location-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.location-item {
    border: none;
    border-radius: 12px;
    margin-bottom: 1.2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
}

.location-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.25);
}

.location-item h6 {
    color: var(--text-white);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.location-item p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
    line-height: 1.6;
}

.location-item small {
    color: var(--text-white);
    font-weight: 600;
    font-size: 1rem;
}

.map-container {
    height: 450px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 992px) {
    .clinician-photo {
        width: 100px;
        height: 100px;
    }
    
    .clinician-name {
        font-size: 1.4rem;
    }
    
    .locations-section {
        padding: 2.5rem;
    }
}

@media (max-width: 768px) {
    .clinician-header {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1.5rem 0;
    }
    
    .clinician-photo {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .locations-section {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .clinician-photo {
        width: 80px;
        height: 80px;
    }
    
    .clinician-name {
        font-size: 1.2rem;
    }
    
    .btn-book-appointment {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .locations-section {
        padding: 1.5rem;
    }
}