/**
 * Provider Portal Styles for Physician Panel Manager
 */

/* Onboarding Page */
.ppm-onboarding-page {
    background: #f1f1f1;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.ppm-onboarding-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 20px;
}

.ppm-onboarding-header {
    text-align: center;
    margin-bottom: 30px;
}

.ppm-onboarding-header h1 {
    color: #1e3a5f;
    margin: 0;
    font-size: 28px;
}

/* Onboarding Form Container */
.ppm-onboarding-form-container {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.ppm-onboarding-form-container h2 {
    margin: 0 0 10px 0;
    color: #1e3a5f;
    font-size: 24px;
}

.ppm-onboarding-intro {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Form Sections */
.ppm-form-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.ppm-form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 20px;
    padding-bottom: 0;
}

.ppm-form-section h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #2e5984;
    font-weight: 600;
}

/* Form Rows */
.ppm-form-row {
    margin-bottom: 20px;
}

.ppm-form-row:last-child {
    margin-bottom: 0;
}

.ppm-form-row-thirds {
    display: flex;
    gap: 15px;
}

.ppm-form-row-thirds .ppm-form-field:first-child {
    flex: 2;
}

.ppm-form-row-thirds .ppm-form-field:nth-child(2),
.ppm-form-row-thirds .ppm-form-field:last-child {
    flex: 1;
}

/* Form Fields */
.ppm-form-field {
    display: flex;
    flex-direction: column;
}

.ppm-form-field label {
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
    font-size: 14px;
}

.ppm-form-field label .required {
    color: #dc3545;
}

.ppm-form-field input[type="text"],
.ppm-form-field input[type="email"],
.ppm-form-field input[type="url"],
.ppm-form-field input[type="tel"],
.ppm-form-field select {
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ppm-form-field input:focus,
.ppm-form-field select:focus {
    border-color: #1e3a5f;
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
    outline: none;
}

.ppm-field-hint {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

/* Checkbox Field */
.ppm-checkbox-field label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.ppm-checkbox-field input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
}

/* Telehealth Fields */
#ppm-telehealth-fields {
    margin-top: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
}

/* Form Actions */
.ppm-form-actions {
    margin-top: 30px;
    text-align: center;
}

/* Provider Dashboard */
.ppm-provider-dashboard {
    max-width: 800px;
    margin: 20px auto;
}

.ppm-provider-dashboard h2 {
    margin: 0 0 25px 0;
    color: #1e3a5f;
}

/* Provider Listing Card */
.ppm-provider-listing-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.ppm-listing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.ppm-listing-header h3 {
    margin: 0;
    color: #1e3a5f;
}

.ppm-listing-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.ppm-listing-status.active {
    background: #d4edda;
    color: #155724;
}

.ppm-listing-status.inactive {
    background: #f8d7da;
    color: #721c24;
}

.ppm-listing-details p {
    margin: 8px 0;
    color: #555;
}

.ppm-listing-details strong {
    color: #333;
}

.ppm-listing-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.ppm-dashboard-note {
    color: #666;
    font-style: italic;
    font-size: 14px;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 600px) {
    .ppm-form-row-thirds {
        flex-direction: column;
        gap: 15px;
    }
    
    .ppm-onboarding-container {
        padding: 20px 15px;
    }
    
    .ppm-onboarding-form-container {
        padding: 20px;
    }
}

/* Modal */
.ppm-modal {
    position: fixed;
    z-index: 100001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.ppm-modal-content {
    background: #fff;
    border-radius: 8px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    padding: 25px;
}

.ppm-modal-large {
    max-width: 700px;
}

.ppm-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
}

.ppm-modal-close:hover {
    color: #000;
}

.ppm-modal-content h2 {
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    color: #1e3a5f;
}

/* Edit Form in Modal */
#ppm-edit-listing-form .ppm-form-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
}

#ppm-edit-listing-form .ppm-form-section h3 {
    font-size: 16px;
    margin-bottom: 15px;
}

#ppm-edit-listing-form .ppm-form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Button Secondary */
.ppm-button-secondary {
    background: #fff;
    color: #666;
    border: 1px solid #ccc;
}

.ppm-button-secondary:hover {
    background: #f5f5f5;
    border-color: #aaa;
}

/* Message Styles */
.ppm-message {
    padding: 12px 15px;
    border-radius: 4px;
    margin-top: 15px;
}

.ppm-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.ppm-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Checkbox Label in Forms */
.ppm-checkbox-label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.ppm-checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
}

/* Telehealth Details in Edit Form */
#ppm-edit-telehealth-details {
    margin-top: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
}

/* Badge */
.ppm-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

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

/* Responsive Modal */
@media (max-width: 600px) {
    .ppm-modal-content {
        padding: 20px 15px;
    }
    
    .ppm-modal-large {
        max-width: 100%;
    }
    
    #ppm-edit-listing-form .ppm-form-actions {
        flex-direction: column;
    }
    
    #ppm-edit-listing-form .ppm-form-actions .ppm-button {
        width: 100%;
    }
}

/* ===== Ortho Subspecialty Checkboxes (Onboarding Form) ===== */
.ppm-subspecialty-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ppm-subspecialty-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: #f0f7ff;
    border: 1px solid #c0d8ef;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.15s, border-color 0.15s;
}

.ppm-subspecialty-label:hover {
    background: #e0f0ff;
}

.ppm-subspecialty-label:has(input:checked) {
    background: #d0e8ff;
    border-color: #0073aa;
}

/* ===== Upgrade to Premium Button ===== */
.ppm-button-upgrade {
    background: linear-gradient(135deg, #d4a843 0%, #b8922e 100%);
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.ppm-button-upgrade:hover {
    opacity: 0.9;
}

.ppm-button-upgrade:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
