/* ========================================
   HOSPITAL DASHBOARD - EXACT DESIGN MATCH
   ======================================== */

/* Reset and Base */
* {
    box-sizing: border-box;
}

/* Main Dashboard Container */
.hoc-hospital-dashboard {
    display: flex;
    min-height: 700px;
    background: #f5f7fa;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    margin: 0 -20px;
}

/* Left Sidebar */
.hoc-left-sidebar {
    width: 240px;
    background: #1e293b;
    flex-shrink: 0;
    padding: 0;
}

.hoc-sidebar-header {
    padding: 25px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.hoc-sidebar-header h2 {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.hoc-sidebar-nav ul {
    list-style: none !important;
    margin: 0;
    padding: 20px 0;
    margin-left: 0px !important;
}

.hoc-sidebar-nav li {
	list-style-type: none !important;
    margin: 0;
}

.hoc-sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    font-size: 14px;
}

.hoc-sidebar-nav li:hover a {
    background: rgba(255,255,255,0.05);
    color: #fff;
}

.hoc-sidebar-nav li.active a {
    background: rgba(59, 130, 246, 0.15);
    color: #fff;
    font-weight: 500;
}

.hoc-sidebar-nav li.active a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #3b82f6;
}

.hoc-nav-icon {
    font-size: 18px;
    margin-right: 12px;
    width: 20px;
    display: inline-block;
}

.hoc-nav-text {
    flex: 1;
}

.hoc-coming-soon {
    font-size: 10px;
    background: rgba(255,255,255,0.1);
    padding: 2px 8px;
    border-radius: 10px;
    color: rgba(255,255,255,0.6);
}

.hoc-sidebar-nav li.disabled a {
    cursor: not-allowed;
    opacity: 0.5;
}

/* Main Content Area */
.hoc-main-dashboard-content {
    flex: 1;
    padding: 30px 40px;
    overflow-y: auto;
    background: #fff;
}

/* Content Header */
.hoc-content-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.hoc-header-left h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
}

.hoc-breadcrumb {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.hoc-breadcrumb a {
    color: #64748b;
    text-decoration: none;
}

.hoc-breadcrumb a:hover {
    color: #3b82f6;
}

.hoc-breadcrumb .active {
    color: #3b82f6;
    font-weight: 500;
}

.hoc-back-link {
    display: inline-block;
    color: #3b82f6;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 15px;
    font-weight: 500;
}

.hoc-back-link:hover {
    text-decoration: underline;
}

/* Toolbar (Filter + Search) */
.hoc-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    gap: 15px;
}

.hoc-filter-group {
    display: flex;
    gap: 15px;
    flex: 1;
}

.hoc-dropdown {
    padding: 10px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #1e293b;
    background: #fff;
    cursor: pointer;
    min-width: 200px;
}

.hoc-dropdown:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.hoc-search-box {
    display: flex;
    border: none;
    border-radius: 8px;
    overflow: hidden;
    flex: 1;
    max-width: 400px;
}

.hoc-search-box input {
    flex: 1;
    padding: 10px 16px;
    border: none;
    font-size: 14px;
    outline: none;
    margin-bottom: 0px !important;
    height: 50px;
}

.hoc-search-box button {
    background: #eee;
    border: 1px solid #eee;
    padding: 0 16px;
    cursor: pointer;
    font-size: 16px;
    color: #64748b;
    height: 50px;
}

.hoc-search-box button:hover {
    background: #f8fafc;
}

/* Specializations List */
.hoc-specializations-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.hoc-spec-list-card {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    gap: 20px;
}

.hoc-spec-list-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
    transform: translateX(5px);
}

.hoc-spec-list-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hoc-spec-list-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hoc-default-icon {
    font-size: 28px;
}

.hoc-spec-list-info {
    flex: 1;
}

.hoc-spec-list-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 5px 0;
}

.hoc-spec-list-info p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.hoc-arrow {
    color: #94a3b8;
    font-size: 20px;
}

/* Doctors Grid */
.hoc-doctors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.hoc-doctor-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
    position: relative;
}

.hoc-doctor-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}

.hoc-doctor-card a {
    text-decoration: none;
    display: block;
}

.hoc-doctor-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f8fafc;
    position: relative;
}

.hoc-doctor-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hoc-status-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hoc-status-badge.online {
    background: #10b981;
}

.hoc-status-badge.offline {
    background: #94a3b8;
}

.hoc-doctor-card-info {
    padding: 12px 14px;
}

.hoc-status-text {
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hoc-status-text.online {
    color: #10b981;
}

.hoc-status-text.offline {
    color: #94a3b8;
}

.hoc-doctor-card-info h3 {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 5px 0;
}

.hoc-doctor-card-info p {
    font-size: 12px;
    color: #64748b;
    margin: 0;
}

/* Doctor Detail Page */
.hoc-detail-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px;
    display: flex;
    gap: 40px;
}

.hoc-detail-left {
    flex-shrink: 0;
}

.hoc-detail-image {
    width: 280px;
    height: 320px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.hoc-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hoc-detail-right {
    flex: 1;
}

.hoc-detail-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.hoc-detail-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
}

.hoc-detail-spec {
    font-size: 16px;
    color: #3b82f6;
    font-weight: 500;
    margin: 0 0 12px 0;
}

.hoc-status-badge-large {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
}

.hoc-status-badge-large.online {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.hoc-status-badge-large.offline {
    background: rgba(148, 163, 184, 0.1);
    color: #64748b;
}

.hoc-detail-info {
    margin-bottom: 25px;
}

.hoc-info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
}

.hoc-info-label {
    font-size: 14px;
    color: #64748b;
    min-width: 120px;
}

.hoc-info-value {
    font-size: 14px;
    color: #1e293b;
    font-weight: 500;
}

.hoc-detail-bio {
    margin-bottom: 25px;
}

.hoc-detail-bio h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 15px 0;
}

.hoc-detail-bio p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.7;
}

.hoc-book-appointment-btn {
    background: #3b82f6;
    color: #fff;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hoc-book-appointment-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Modal */
.hoc-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}

.hoc-modal-content {
    background: #fff;
    margin: 5% auto;
    padding: 35px;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalSlide 0.3s ease-out;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

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

.hoc-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #94a3b8;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.hoc-close:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.hoc-modal-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 25px 0;
}

#hoc-booking-form p {
    margin-bottom: 18px;
}

#hoc-booking-form label {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    display: block;
    margin-bottom: 8px;
}

#hoc-booking-form input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
}

#hoc-booking-form input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#hoc-booking-form input[readonly] {
    background: #f8fafc;
    color: #64748b;
    font-weight: 500;
}

.hoc-submit-btn {
    width: 100%;
    background: #3b82f6;
    color: #fff;
    border: none;
    padding: 13px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.hoc-submit-btn:hover {
    background: #2563eb;
}

.hoc-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#hoc-form-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    display: none;
}

#hoc-form-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
    display: block;
}

#hoc-form-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
    display: block;
}

.hoc-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 1024px) {
    .hoc-hospital-dashboard {
        flex-direction: column;
    }
    
    .hoc-left-sidebar {
        width: 100%;
    }
    
    .hoc-sidebar-nav ul {
        display: flex;
        padding: 0;
    }
    
    .hoc-sidebar-nav li {
        flex: 1;
    }
    
    .hoc-sidebar-nav a {
        justify-content: center;
        flex-direction: column;
        text-align: center;
        padding: 12px 8px;
    }
    
    .hoc-nav-icon {
        margin: 0 0 4px 0;
    }
    
    .hoc-nav-text {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .hoc-main-dashboard-content {
        padding: 20px;
    }
    
    .hoc-doctors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .hoc-doctor-card-image {
        height: 200px;
    }
    
    .hoc-detail-card {
        flex-direction: column;
        padding: 20px;
    }
    
    .hoc-detail-image {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .hoc-toolbar {
        flex-direction: column;
    }
    
    .hoc-filter-group {
        width: 100%;
        flex-direction: column;
    }
    
    .hoc-dropdown,
    .hoc-search-box {
        max-width: 100%;
    }
}