/* Doctor Login Page Styles */
.wpsb-doctor-login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    font-family: 'Quicksand', sans-serif;
    background-color: #f9fafb;
    padding: 20px;
}

.wpsb-doctor-login-wrapper {
    display: flex;
    width: 100%;
    max-width: 900px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.wpsb-doctor-login-form {
    flex: 1;
    padding: 40px;
}

.wpsb-doctor-login-form h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #111827;
}

.wpsb-doctor-login-form .form-intro {
    margin-bottom: 30px;
    color: #6b7280;
}

.wpsb-doctor-login-form .form-group {
    margin-bottom: 20px;
}

.wpsb-doctor-login-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
    color: #374151;
}

.wpsb-doctor-login-form input[type="text"],
.wpsb-doctor-login-form input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    transition: border-color 0.2s;
}

.wpsb-doctor-login-form input[type="text"]:focus,
.wpsb-doctor-login-form input[type="password"]:focus {
    outline: none;
    border-color: #62A046;
    box-shadow: 0 0 0 2px rgba(98, 160, 70, 0.2);
}

.wpsb-doctor-login-form button {
    width: 100%;
    padding: 12px;
    border: none;
    background-color: #62A046;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    transition: background-color 0.2s;
}

.wpsb-doctor-login-form button:hover {
    background-color: #4a7c34;
}

.wpsb-login-illustration {
    flex: 1;
    background-color: #62A046;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.wpsb-login-illustration svg {
    width: 80%;
    height: auto;
}

/* Doctor Schedule View */
.wpsb-doctor-schedule-view {
    font-family: 'Quicksand', sans-serif;
    max-width: 1200px;
    margin: 20px auto;
}
.doctor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}
.doctor-header h1 {
    margin: 0;
}
.doctor-logout-btn {
    text-decoration: none;
    background: #d9534f;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    font-family: 'Quicksand', sans-serif;
    font-size: 14px;
}
.doctor-schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.appointment-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.appointment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.appointment-card .card-header {
    background: #f5f5f5;
    padding: 10px 15px;
    font-weight: 700;
    border-bottom: 1px solid #ddd;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    transition: background-color 0.3s, color 0.3s;
}
.appointment-card[data-status="Done"] .card-header {
    background-color: #62A046;
    color: white;
}
.appointment-card .card-body {
    padding: 15px;
}
.appointment-card .card-body p {
    margin: 0 0 10px 0;
}
.appointment-card .card-body p:last-child {
    margin-bottom: 0;
}

/* Modal Styles */
.wpsb-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); z-index: 10000;
    display: flex; justify-content: center; align-items: center;
}
.wpsb-modal-content {
    background: #fff; width: 90%; max-width: 500px;
    border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.wpsb-modal-header {
    padding: 15px 20px; border-bottom: 1px solid #eee;
    display: flex; justify-content: space-between; align-items: center;
}
.wpsb-modal-header h2 { margin: 0; font-size: 18px; }
.wpsb-modal-close { font-size: 28px; font-weight: bold; cursor: pointer; opacity: 0.3; }
.wpsb-modal-close:hover { opacity: 1; }
.wpsb-modal-body { padding: 20px; max-height: 70vh; overflow-y: auto; }
#wpsb-doctor-appointment-details p { margin: 0 0 10px 0; }
#wpsb-doctor-appointment-details strong { font-weight: 700; }
.wpsb-modal-footer { padding: 15px 20px; border-top: 1px solid #eee; text-align: right; }
.wpsb-modal-footer .button { margin-left: 10px; }
#wpsb-doctor-modal-done { background-color: #62A046; border-color: #4a7c34; }
#wpsb-doctor-modal-done:hover { background-color: #4a7c34; }
#wpsb-doctor-modal-done:disabled { background-color: #a5d6a7; border-color: #a5d6a7; cursor: not-allowed; }

/* --- MOBILE RESPONSIVE STYLES --- */
@media (max-width: 768px) {
    .wpsb-doctor-login-wrapper {
        flex-direction: column;
        box-shadow: none;
        background: transparent;
    }

    .wpsb-login-illustration {
        display: none;
    }

    .wpsb-doctor-login-container {
        align-items: flex-start;
        padding: 0;
        background: #fff;
    }

    .wpsb-doctor-login-form {
        width: 100%;
        padding: 40px 20px;
        position: relative;
        min-height: 70vh; /* Ensure form takes up space */
    }

    .wpsb-doctor-login-form form {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .wpsb-doctor-login-form button {
        position: absolute;
        bottom: 30px;
        right: 20px;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        padding: 0;
        font-size: 0; /* Hide text */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .wpsb-doctor-login-form button::after {
        content: '→';
        font-size: 28px;
        line-height: 1;
        color: white;
    }
}
