/* Doctor Page Styles */

/* Social Media Share Buttons */
.share-section {
    position: relative;
    margin-bottom: 30px;
}

.share-container {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.share-title {
    color: #1a365d;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.share-title i {
    margin-right: 10px;
    color: #007bff;
    font-size: 20px;
}

.share-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    min-width: 120px;
}

.share-btn i {
    margin-right: 8px;
    font-size: 16px;
}

.share-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.share-btn:hover::before {
    left: 100%;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Facebook */
.share-facebook {
    background: linear-gradient(135deg, #1877f2, #0d47a1);
    color: white;
}

.share-facebook:hover {
    background: linear-gradient(135deg, #0d47a1, #1565c0);
    color: white;
}

/* Twitter */
.share-twitter {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
    color: white;
}

.share-twitter:hover {
    background: linear-gradient(135deg, #0d8bd9, #1976d2);
    color: white;
}

/* WhatsApp */
.share-whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
}

.share-whatsapp:hover {
    background: linear-gradient(135deg, #128c7e, #075e54);
    color: white;
}

/* Telegram */
.share-telegram {
    background: linear-gradient(135deg, #0088cc, #005aa7);
    color: white;
}

.share-telegram:hover {
    background: linear-gradient(135deg, #005aa7, #0073b7);
    color: white;
}

/* LinkedIn */
.share-linkedin {
    background: linear-gradient(135deg, #0077b5, #005885);
    color: white;
}

.share-linkedin:hover {
    background: linear-gradient(135deg, #005885, #004c75);
    color: white;
}

/* Copy Link */
.share-copy {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
}

.share-copy:hover {
    background: linear-gradient(135deg, #495057, #343a40);
    color: white;
}

.share-copy.copied {
    background: linear-gradient(135deg, #28a745, #1e7e34);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .share-buttons {
        gap: 8px;
    }

    .share-btn {
        padding: 10px 14px;
        font-size: 13px;
        min-width: 100px;
    }

    .share-btn i {
        font-size: 14px;
        margin-right: 6px;
    }

    .share-container {
        padding: 20px;
    }

    .share-title {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .share-btn {
        padding: 8px 12px;
        font-size: 12px;
        min-width: 90px;
    }

    .share-btn i {
        font-size: 13px;
    }

    .share-buttons {
        justify-content: center;
    }
}

/* Card Hover Effects */
.cs_team:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15) !important;
}

/* Form Focus Styles */
.form-control:focus, .form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Modern Pagination Styles */
.pagination-modern {
    margin: 0;
    gap: 8px;
}

.pagination-modern .page-item {
    margin: 0;
}

.pagination-modern .page-link {
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 14px;
    color: #6c757d;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    text-decoration: none;
    min-width: 48px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.pagination-modern .page-link:hover {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.3);
}

.pagination-modern .page-item.active .page-link {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border-color: #007bff;
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.4);
    transform: translateY(-2px);
}

.pagination-modern .page-item.disabled .page-link {
    background-color: #e9ecef;
    color: #adb5bd;
    cursor: not-allowed;
    opacity: 0.6;
}

.pagination-modern .page-item.disabled .page-link:hover {
    background-color: #e9ecef;
    color: #adb5bd;
    transform: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Pagination Info Styling */
.pagination-info p {
    font-weight: 500;
    color: #495057 !important;
}

.pagination-summary .badge {
    font-weight: 600;
    font-size: 13px;
    border: 1px solid #dee2e6;
}

.pagination-summary .badge:hover {
    background: #007bff !important;
    color: white !important;
    transform: scale(1.05);
}

/* Doctor Action Buttons Styling */
.doctor-actions {
    border-top: 1px solid #f1f3f4;
    padding-top: 15px;
}

.quick-contact-row {
    justify-content: center;
}

.quick-contact-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 12px;
    font-weight: 600;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.quick-contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.quick-contact-btn:hover::before {
    left: 100%;
}

.quick-contact-btn i {
    font-size: 16px;
    margin-bottom: 4px;
    transition: transform 0.3s ease;
}

.quick-contact-btn:hover i {
    transform: scale(1.1);
}

.btn-text {
    font-size: 11px;
    font-weight: 600;
    opacity: 0.9;
}

/* Email Button */
.email-btn {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.email-btn:hover {
    background: linear-gradient(135deg, #c82333, #bd2130);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.4);
}

/* Phone Button */
.phone-btn {
    background: linear-gradient(135deg, #28a745, #218838);
    color: white;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.phone-btn:hover {
    background: linear-gradient(135deg, #218838, #1e7e34);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.4);
}

/* WhatsApp Button */
.whatsapp-btn {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover {
    background: linear-gradient(135deg, #128c7e, #075e54);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

/* Main Detail Button */
.detail-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.detail-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.detail-btn:hover::before {
    left: 100%;
}

.detail-btn:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.4);
}

.btn-content {
    display: flex;
    align-items: center;
}

.btn-arrow {
    transition: transform 0.3s ease;
}

.detail-btn:hover .btn-arrow {
    transform: translateX(5px);
}

/* Animation for pagination */
.cs_pagination_wrap {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Hover effect for pagination info */
.pagination-info, .pagination-summary {
    transition: all 0.3s ease;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .cs_team {
        margin-bottom: 30px;
    }

    .cs_white_bg {
        padding: 20px !important;
    }

    .pagination-modern .page-link {
        padding: 10px 12px;
        font-size: 13px;
        min-width: 40px;
    }

    .pagination-modern {
        gap: 4px;
    }

    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    /* Mobile Action Buttons */
    .quick-contact-btn {
        padding: 10px 6px;
        font-size: 11px;
    }

    .quick-contact-btn i {
        font-size: 14px;
        margin-bottom: 3px;
    }

    .btn-text {
        font-size: 10px;
    }

    .detail-btn {
        padding: 12px 16px;
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .pagination-modern .page-link {
        padding: 8px 10px;
        font-size: 12px;
        min-width: 36px;
    }

    /* Extra Small Mobile Action Buttons */
    .quick-contact-row {
        gap: 1px !important;
    }

    .quick-contact-btn {
        padding: 8px 4px;
        border-radius: 8px;
    }

    .quick-contact-btn i {
        font-size: 12px;
    }

    .btn-text {
        font-size: 9px;
    }

    .detail-btn {
        padding: 10px 14px;
        font-size: 12px;
        border-radius: 10px;
    }
}

/* Doctor Detail Page Styles */

/* Doctor Member Image Effects */
.cs_team_member_img img {
    transition: transform 0.3s ease;
}

.cs_team_member_img:hover img {
    transform: scale(1.05);
}

/* Badge Hover Effects */
.badge {
    transition: all 0.3s ease;
}

.badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,123,255,0.3);
}

/* Doctor Detail Mobile Responsive */
@media (max-width: 768px) {
    .cs_team_member_name {
        font-size: 22px !important;
    }

    .cs_team_member_designation {
        font-size: 16px !important;
    }
}

/* ===========================
   Schedule Page Styles
   =========================== */
.schedule-day-header {
    position: relative;
}

.week-header {
    position: relative;
}

.week-navigation {
    position: relative;
}

.day-tab {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.day-tab:hover {
    background: #e9ecef !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.day-tab.active {
    background: #007bff !important;
    color: white !important;
    border-color: #007bff;
}

.day-content {
    animation: fadeIn 0.3s ease-in-out;
}

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

.day-header {
    position: relative;
}

.day-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.schedule-card-compact {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.schedule-card-compact:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

.schedule-card-compact .card-header {
    position: relative;
}

.schedule-card-compact .card-body {
    position: relative;
}

.schedule-info .d-flex {
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 6px;
}

.schedule-info .d-flex:hover {
    background: #f8f9fa;
}

.schedule-note {
    position: relative;
}

.schedule-actions .btn {
    transition: all 0.3s ease;
    font-weight: 600;
}

.schedule-actions .btn:hover {
    transform: translateY(-1px);
}

.poliklinik-header h5 {
    position: relative;
    font-weight: 700;
}

.badge {
    transition: all 0.3s ease;
}

.badge:hover {
    transform: scale(1.05);
}

.schedule-legend {
    display: flex;
    align-items: center;
}

.legend-item {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #6c757d;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 5px;
    display: inline-block;
}

.poliklinik-section {
    position: relative;
}

.poliklinik-header h4 {
    position: relative;
    font-size: 20px;
    font-weight: 700;
}

.schedule-card {
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.schedule-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

.schedule-header {
    position: relative;
    overflow: hidden;
}

.schedule-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transform: translate(30px, -30px);
}

.schedule-body {
    position: relative;
}

.schedule-time {
    position: relative;
}

.schedule-time .d-flex {
    padding: 8px 0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.schedule-time .d-flex:hover {
    background: #f8f9fa;
    padding-left: 10px;
}

.schedule-note .alert {
    border-left: 4px solid #007bff;
    font-size: 13px;
    line-height: 1.5;
}

.schedule-actions .btn {
    font-size: 13px;
    padding: 8px 12px;
    transition: all 0.3s ease;
}

.schedule-actions .btn:hover {
    transform: translateY(-2px);
}

.schedule-actions .btn-outline-primary:hover {
    background: #007bff;
    color: white;
}

/* Status Indicators */
.status-available {
    background: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-unavailable {
    background: #dc3545;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Filter Section */
.form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

.form-label {
    font-size: 14px;
    margin-bottom: 8px;
}

/* Weekly View Specific Styles */
.week-navigation .row {
    gap: 0;
}

.week-navigation .col {
    padding: 0 4px;
}

/* Enhanced 3-column layout */
.schedule-card-compact {
    min-height: 280px;
}

.schedule-card-compact .card-header {
    min-height: 80px;
}

.schedule-card-compact .card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.schedule-info {
    flex-grow: 1;
}

/* Two-column layout for poliklinik sections */
.poliklinik-cards {
    max-height: none;
}

.poliklinik-section {
    height: auto;
    margin-bottom: 30px;
}

.poliklinik-section .schedule-card-compact {
    width: 100%;
    margin-bottom: 15px;
}

/* Balance columns */
@media (min-width: 1200px) {
    .col-xl-6 {
        display: flex;
        flex-direction: column;
    }

    .col-xl-6 .poliklinik-section:last-child {
        margin-bottom: 0;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .col-lg-12 {
        margin-bottom: 25px;
    }

    .col-lg-12:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 1200px) {
    .schedule-card-compact {
        min-height: 260px;
    }
}

@media (max-width: 992px) {
    .schedule-card-compact {
        min-height: 240px;
    }

    .col-xl-6, .col-lg-12, .col-md-12 {
        margin-bottom: 20px;
    }
}@media (max-width: 768px) {
    .week-navigation .col {
        padding: 0 2px;
        margin-bottom: 8px;
    }

    .day-tab {
        padding: 10px 8px !important;
    }

    .day-tab .day-name {
        font-size: 12px !important;
    }

    .day-tab .day-count {
        font-size: 10px !important;
    }

    .schedule-card-compact {
        min-height: auto;
        margin-bottom: 20px;
    }

    .poliklinik-section {
        margin-bottom: 25px;
    }
}

@media (max-width: 576px) {
    .schedule-card-compact {
        min-height: auto;
    }

    .col-xl-6, .col-lg-12, .col-md-12 {
        margin-bottom: 15px;
    }
}/* Schedule Responsive Design */
@media (max-width: 768px) {
    .schedule-legend {
        justify-content: center;
        margin-top: 20px;
    }

    .legend-item {
        margin: 0 10px;
    }

    .poliklinik-header h4 {
        font-size: 18px;
        text-align: center;
    }

    .poliklinik-header h5 {
        font-size: 16px;
        text-align: center;
    }

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

    .schedule-card-compact {
        margin-bottom: 15px;
    }

    .schedule-header {
        text-align: center;
    }

    .schedule-actions .btn {
        font-size: 12px;
        padding: 6px 10px;
    }

    .day-header h4 {
        font-size: 18px;
    }

    .week-header h3 {
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .schedule-day-header .row {
        text-align: center;
    }

    .schedule-day-header h3 {
        font-size: 18px;
        justify-content: center;
    }

    .week-header h3 {
        font-size: 18px;
        justify-content: center;
    }

    .schedule-time .d-flex {
        flex-direction: column;
        align-items: center !important;
        text-align: center;
    }

    .schedule-time .d-flex i {
        margin-bottom: 8px;
    }

    .schedule-card-compact .card-header {
        padding: 12px !important;
    }

    .schedule-card-compact .card-body {
        padding: 12px !important;
    }

    .schedule-card-compact .schedule-actions .btn {
        font-size: 10px;
        padding: 4px 6px;
    }

    .day-tab {
        padding: 8px 4px !important;
    }

    .day-tab .day-name {
        font-size: 11px !important;
    }

    .day-tab .day-count {
        font-size: 9px !important;
    }
}
