/**
 * Aexo Hub - Provider Portal Styles
 * Custom styles specific to the Provider Portal module
 */

/*--------------------------------------------------------------
# 1. Custom Variables
--------------------------------------------------------------*/
:root {
    /* May inherit from global.css but can be overridden */
    --provider-primary: #d13964;
    --provider-secondary: #000000;
    --provider-accent: #e73e66;
}

/*--------------------------------------------------------------
# 2. Registration & Login Specific Styles
--------------------------------------------------------------*/
.register-container, .thankyou-container, .verify-container {
    max-width: 800px;
    margin: 30px auto;
    padding-top: 20px;
}

.register-logo, .thankyou-logo, .verify-logo {
    text-align: center;
    margin-bottom: 20px;
}

.register-logo img, .thankyou-logo img, .verify-logo img {
    max-width: 180px;
    height: auto;
}

.register-title, .thankyou-title, .verify-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 28px;
    font-weight: 600;
    color: var(--dark-color);
}

.register-card, .thankyou-card, .verify-card {
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.form-section {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.form-section-title {
    margin-bottom: 15px;
    color: var(--secondary-color);
    font-weight: 600;
}

.required-field::after {
    content: '*';
    color: red;
    margin-left: 4px;
}

.thankyou-icon, .verify-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.thankyou-icon {
    color: var(--secondary-color);
}

.verify-icon.success {
    color: #28a745;
}

.verify-icon.error {
    color: #dc3545;
}

.email-highlight {
    font-weight: bold;
    color: var(--secondary-color);
}

/*--------------------------------------------------------------
# 3. Dashboard Specific Styles
--------------------------------------------------------------*/
.stats-card {
    border-left: 4px solid var(--secondary-color);
}

/*--------------------------------------------------------------
# 4. Work Order Specific Styles 
--------------------------------------------------------------*/
.work-order-status {
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
}

.status-draft {
    background-color: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.status-active {
    background-color: #cfe2ff;
    color: #0d6efd;
    border: 1px solid #9ec5fe;
}

.status-completed {
    background-color: #d1e7dd;
    color: #198754;
    border: 1px solid #a3cfbb;
}

.status-cancelled {
    background-color: #f8d7da;
    color: #dc3545;
    border: 1px solid #f5c2c7;
}

/*--------------------------------------------------------------
# 5. Helper Classes
--------------------------------------------------------------*/
.text-xs {
    font-size: 0.75rem;
}

.text-sm {
    font-size: 0.875rem;
}

.bg-lighter {
    background-color: #f9fafb;
}

.border-dashed {
    border-style: dashed !important;
}

/* CKEditor 5 custom styles */
.ck-editor__editable {
    min-height: 250px;
    max-height: 600px;
    overflow-y: auto !important;
}

/* Make the toolbar sticky */
.ck.ck-editor__top .ck-sticky-panel .ck-toolbar {
    border: 1px solid #ddd;
    border-radius: 4px 4px 0 0;
}

/* Main content area */
.ck.ck-editor__main > .ck-editor__editable {
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
}

/* Focus states */
.ck.ck-editor__editable.ck-focused:not(.ck-editor__nested-editable) {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.25rem rgba(209, 57, 100, 0.25);
}

/* Fix editor width to 100% of container */
.ck-editor {
    width: 100%;
}

/* Hide original textarea */
textarea.ckeditor {
    display: none;
}