/**
 * Public styles for ArvenaDoc
 *
 * @package ArvenaDoc
 * @since 1.0.0
 */

/* Button System - Unified Styles */
.button {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
    vertical-align: middle;
}

.button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(108, 195, 198, 0.3);
}

/* Button Sizes */
.button-small {
    padding: 6px 12px;
    font-size: 12px;
}

.button-large {
    padding: 14px 28px;
    font-size: 16px;
}

/* Button Variants */
.button-primary {
    background: #6cc3c6;
    color: #fff;
    border-color: #6cc3c6;
}

.button-primary:hover {
    background: #5ab3b6;
    border-color: #5ab3b6;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(108, 195, 198, 0.3);
}

.button-secondary {
    background: #f8f9fa;
    color: #666;
    border-color: #e9ecef;
}

.button-secondary:hover {
    background: #e9ecef;
    color: #333;
    border-color: #dee2e6;
    transform: translateY(-1px);
}

.button-link-delete {
    background: #dc3545;
    color: #fff;
    border-color: #dc3545;
}

.button-link-delete:hover {
    background: #c82333;
    border-color: #bd2130;
    color: #fff;
    transform: translateY(-1px);
}

.button:disabled,
.button.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Filter Buttons (Special case for dashboard filters) */
.filter-btn {
    padding: 8px 16px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    background: #f8f9fa;
    color: #666;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.filter-btn:hover {
    background: #e9ecef;
    color: #333;
    border-color: #dee2e6;
}

.filter-btn.active {
    background: #6cc3c6;
    color: #fff;
    border-color: #6cc3c6;
}

.filter-btn.active:hover {
    background: #5ab3b6;
    border-color: #5ab3b6;
}

/* Dashboard Styles */
.arvena-dashboard {
    width: 100%;
    margin: 0;
}

.dashboard-header {
    margin-bottom: 30px;
    padding: 20px 30px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.dashboard-header p {
    font-size: 20px;
    color: #333;
    margin: 0;
    font-weight: 600;
    flex: 1;
}

/* Logout button uses existing .button .button-link-delete styles */
.dashboard-header .button {
    flex-shrink: 0;
}

.dashboard-content h2 {
    font-size: 20px;
    color: #333;
    margin: 0 0 20px 0;
    font-weight: 600;
}

.dashboard-navigation {
    margin-bottom: 30px;
}

.dashboard-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.dashboard-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    font-weight: 500;
}

.dashboard-nav .nav-link:hover {
    background: #e9ecef;
    color: #0073aa;
    text-decoration: none;
}

.dashboard-nav .nav-link:hover .nav-icon i {
    color: #0073aa;
}

.dashboard-nav .nav-link.active {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.dashboard-nav .nav-link.active .nav-icon i {
    color: #fff;
}

.dashboard-nav .nav-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.dashboard-nav .nav-icon i {
    color: #6cc3c6;
}

.dashboard-content {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 100%;
}

/* Dashboard Cards */
.overview-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.overview-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.overview-card .card-icon {
    font-size: 24px;
    color: #6cc3c6;
    width: 40px;
    text-align: center;
}

.overview-card .card-content h3 {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.overview-card .card-number {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin: 0 0 5px 0;
}

.overview-card .card-description {
    font-size: 12px;
    color: #999;
    margin: 0;
}

/* Account Sections */
.account-sections {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.account-section {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 25px;
}

.account-section h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.account-section p {
    margin: 0 0 15px 0;
    color: #666;
    line-height: 1.5;
}

.info-grid {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item strong {
    color: #555;
    min-width: 120px;
    font-weight: 500;
}

.info-item span {
    color: #333;
    text-align: right;
}

/* Account section buttons use global button styles */

/* Account Edit Forms */
.personal-info-form,
.address-form,
.password-form,
.bio-form,
.company-form,
.photo-form {
    display: none !important;
    margin-top: 20px;
}

.personal-info-form.active,
.address-form.active,
.password-form.active,
.bio-form.active,
.company-form.active,
.photo-form.active {
    display: block !important;
}

.account-edit-form {
    padding: 20px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6cc3c6;
    box-shadow: 0 0 0 2px rgba(108, 195, 198, 0.2);
}

.form-help {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

/* Form actions use global button styles */

.required {
    color: #d63638;
    font-weight: bold;
}

/* Loading state */
.form-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Form Validation Styles */
.field-error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.field-error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    margin-bottom: 10px;
    padding: 8px 12px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    display: block;
}

.field-error-message:before {
    content: "⚠ ";
    font-weight: bold;
}

.form-loading .button {
    position: relative;
}

.form-loading .button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg);     }
}

/* Doctor Photo Section */
.doctor-photo-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.photo-display {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e9ecef;
}

.doctor-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 0; /* Usuwamy border-radius z img, bo kontener już go ma */
}

.no-photo {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

.no-photo i {
    font-size: 48px;
    margin-bottom: 10px;
}

.no-photo p {
    margin: 0;
    font-size: 14px;
}

.form-group input[type="file"] {
    padding: 8px;
    border: 2px dashed #ddd;
    border-radius: 4px;
    background: #fafafa;
    cursor: pointer;
}

.form-group input[type="file"]:hover {
    border-color: #6cc3c6;
    background: #f0f8f8;
}


/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 15px 20px;
    }
    
    .dashboard-header .button {
        width: 100%;
        justify-content: center;
    }
    
    .dashboard-nav {
        flex-direction: column;
    }
    
    .dashboard-nav .nav-link {
        justify-content: center;
        text-align: center;
    }
    
    .dashboard-content {
        padding: 20px;
    }
    
    .overview-cards {
        grid-template-columns: 1fr;
    }
    
}


/* Login Form Styles */
.arvena-login-form {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.arvena-login-form .login-username,
.arvena-login-form .login-password {
    margin-bottom: 15px;
}

.arvena-login-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.arvena-login-form input[type="text"],
.arvena-login-form input[type="password"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.arvena-login-form .login-submit {
    margin-top: 20px;
}

.arvena-login-form .button-primary {
    width: 100%;
    padding: 10px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.arvena-login-form .button-primary:hover {
    background: #005a87;
}

.arvena-login-error {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin-bottom: 15px;
}

.arvena-login-message {
    background: #d4edda;
    color: #155724;
    padding: 10px;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    margin-bottom: 15px;
}

.arvena-login-links {
    margin-top: 15px;
    text-align: center;
}

.arvena-login-required,
.arvena-access-denied {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    text-align: center;
    margin: 20px 0;
}

/* Access denied buttons use global button styles with primary variant */
.arvena-login-required .button,
.arvena-access-denied .button {
    margin-top: 10px;
}


/* Required Field Indicator */
abbr.required {
    text-decoration: none;
    color: #d63638;
    font-weight: bold;
    cursor: help;
}

abbr.required:hover {
    text-decoration: underline;
}

/* Notice Messages - Success, Error & Warning */
.arvena-success,
.arvena-error,
.arvena-warning {
    margin: 20px 0;
    padding: 15px 20px;
    border-radius: 6px;
    border-left: 4px solid;
    font-weight: 500;
}

.arvena-success {
    background: #d4edda;
    border-left-color: #28a745;
    color: #155724;
}

.arvena-error {
    background: #f8d7da;
    border-left-color: #dc3545;
    color: #721c24;
}

.arvena-warning {
    background: #fff3cd;
    border-left-color: #ffc107;
    color: #856404;
}

.arvena-success p,
.arvena-error p,
.arvena-warning p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 8px;
}

.arvena-success i,
.arvena-error i,
.arvena-warning i {
    font-size: 16px;
    flex-shrink: 0;
}

/* Patient Register Form Styles */
.arvena-register-form {
    margin: 0 auto;
}

.register-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.register-header h2 {
    font-size: 28px;
    color: #333;
    margin: 0 0 12px 0;
    font-weight: 600;
}

.register-description {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Form Field Styles for Registration Form */
.arvena-register-form .form-field {
    margin-bottom: 20px;
}

.arvena-register-form .form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: #333;
}

.arvena-register-form .form-field input[type="text"],
.arvena-register-form .form-field input[type="email"],
.arvena-register-form .form-field input[type="tel"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    color: #333;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    display: block;
}

.arvena-register-form .form-field input[type="text"]:focus,
.arvena-register-form .form-field input[type="email"]:focus,
.arvena-register-form .form-field input[type="tel"]:focus {
    outline: none;
    border-color: #6cc3c6;
    box-shadow: 0 0 0 2px rgba(108, 195, 198, 0.2);
}

.arvena-register-form .form-field .description {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

/* Date of Birth Fields Styling */
.arvena-register-form .date-of-birth-fields {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.arvena-register-form .date-of-birth-fields > div {
    display: flex;
    flex-direction: column;
}

.arvena-register-form .date-of-birth-fields label {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    color: #666;
    font-weight: normal;
}

.arvena-register-form .date-of-birth-fields input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    color: #333;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.arvena-register-form .date-of-birth-fields input[type="text"]:focus {
    outline: none;
    border-color: #6cc3c6;
    box-shadow: 0 0 0 2px rgba(108, 195, 198, 0.2);
}

.arvena-register-form .date-of-birth-fields input[type="text"].field-error {
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2);
}

/* Date of Birth Error Container */
.arvena-register-form .date-of-birth-error {
    margin-top: 6px;
}

.arvena-register-form .date-of-birth-error .field-error-message {
    color: #dc3545;
    font-size: 12px;
    line-height: 1.4;
    display: block;
}

.arvena-register-links {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.arvena-register-links p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.arvena-register-links a {
    color: #6cc3c6;
    text-decoration: none;
    font-weight: 500;
}

.arvena-register-links a:hover {
    color: #5ab3b6;
    text-decoration: underline;
}

/* Questionnaire Form Styles */
.arvena-questionnaire .question-item {
    margin-bottom: 2rem;
}

.arvena-questionnaire .question-header {
    padding-bottom: 10px;
}

.arvena-questionnaire .question-input {
    margin-bottom: 0.25rem;
}

.arvena-questionnaire .question-input-field {
    padding: 13px !important;
    margin-bottom: 0 !important;
}

.arvena-questionnaire .question-input-field:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

.arvena-questionnaire .question-help {
    font-size: 12px;
    color: #666;
    margin-top: 0;
    margin-bottom: 0;
    font-style: italic;
}

.arvena-questionnaire .question-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.arvena-questionnaire .option-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.arvena-questionnaire .option-label input[type="radio"],
.arvena-questionnaire .option-label input[type="checkbox"] {
    margin-right: 10px;
    margin-bottom: 0;
}

.arvena-questionnaire .question-options .option-label .option-text {
    font-size: 15px !important;
}

/* "Other" input wrapper - full width to force new line */
.arvena-questionnaire .other-input-wrapper {
    flex-basis: 100%;
    /* margin-left: 1.5rem; */
}

/* "Other" input field */
.arvena-questionnaire .other-input {
    width: 100%;
    max-width: 400px;
    padding: 10px !important;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s ease;
    margin-bottom: 0 !important;
}

.arvena-questionnaire .other-input:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

/* Conditional questions */
.arvena-questionnaire .conditional-question {
    transition: all 0.3s ease;
    overflow: hidden;
}

.arvena-questionnaire .questionnaire-footer .button {
    margin: 0 !important;
    padding: 16px 20px !important;
    border-radius: 2px !important;
    border-bottom-width: 1px !important;
    border-bottom-style: solid !important;
    font-weight: 400 !important;
    font-size: .92em !important;
    min-width: 142px !important;
    outline: 0 !important;
}

/* Photo form disabled state */
.photo-upload-group.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.photo-upload-group.disabled label,
.photo-upload-group.disabled input,
.photo-upload-group.disabled .form-help {
    color: #999;
}

/* Doctor Schedule Styles */
.doctor-schedule-list {
    margin: 20px 0;
}

.schedule-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 20px;
}

.schedule-table-wrapper {
    overflow-x: auto;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.schedule-table th,
.schedule-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.schedule-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.schedule-table tr:hover {
    background: #f8f9fa;
}

.schedule-type {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 500;
}

.schedule-type.single {
    background: #e3f2fd;
    color: #1976d2;
}

.schedule-type.recurring {
    background: #f3e5f5;
    color: #7b1fa2;
}

.single-date {
    font-weight: 600;
    color: #1976d2;
}

.more-slots {
    color: #666;
    font-size: 0.9em;
}

.slot-step {
    background: #e8f5e8;
    color: #2e7d32;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.85em;
}

.status-active {
    color: #46b450;
    font-weight: bold;
}

.status-inactive {
    color: #dc3232;
    font-weight: bold;
}

.valid-period {
    font-size: 0.9em;
    color: #666;
}

.unlimited {
    color: #999;
    font-style: italic;
}

.schedule-actions {
    display: flex;
    gap: 8px;
}

/* Schedule actions use global button-small styles */

/* Schedule Cards Layout */
.schedule-cards-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

.schedule-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    overflow: hidden;
}

.schedule-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.card-title {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.card-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.card-body {
    padding: 20px;
}

.card-footer {
    padding: 16px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.card-row {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
}

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

.card-field {
    flex: 1;
    min-width: 0;
}

.card-field.full-width {
    flex: 1 1 100%;
}

.card-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.card-field .field-value {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}

/* Schedule type badges in cards */
.schedule-card .schedule-type {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Status badges in cards */
.schedule-card .status-active,
.schedule-card .status-inactive,
.schedule-card .status-warning {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.schedule-card .status-active {
    background: #d4edda;
    color: #155724;
}

.schedule-card .status-inactive {
    background: #f8d7da;
    color: #721c24;
}

.schedule-card .status-warning {
    background: #fff3cd;
    color: #856404;
}

/* Service details styling in cards */
.service-details {
    color: #666;
    font-size: 0.9em;
    font-weight: normal;
}

/* Time slots styling in cards */
.time-slots-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.time-slots-list .time-slot-item {
    padding: 6px 10px;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #6cc3c6;
}

.time-slots-list .time-slot-item strong {
    color: #333;
    font-size: 14px;
}

/* Slot step badge in cards */
.card-field .slot-step {
    background: #e8f5e8;
    color: #2e7d32;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Valid period styling in cards */
.card-field .valid-period {
    font-size: 13px;
    color: #666;
}

.card-field .unlimited {
    color: #999;
    font-style: italic;
    font-size: 13px;
}

/* Single date styling in cards */
.card-field .single-date {
    font-weight: 600;
    color: #1976d2;
    background: #e3f2fd;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
}

/* Schedule Form Styles */
.doctor-schedule-form {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

/* Schedule Type Radio Buttons - Side by Side */
.schedule-type-options {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.schedule-type-option {
    flex: 1;
    min-width: 250px;
}

.schedule-type-option label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: #f8f9fa;
    transition: all 0.2s ease;
}

.schedule-type-option label:hover {
    border-color: #6cc3c6;
    background: #f0fffe;
}

.schedule-type-option input[type="radio"] {
    width: auto;
    margin: 0;
    margin-top: 2px;
}

.schedule-type-option input[type="radio"]:checked + .option-content {
    font-weight: 600;
}

.schedule-type-option input[type="radio"]:checked {
    accent-color: #6cc3c6;
}

.schedule-type-option label:has(input[type="radio"]:checked) {
    border-color: #6cc3c6;
    background: #f0fffe;
    box-shadow: 0 2px 8px rgba(108, 195, 198, 0.2);
}

.option-content {
    flex: 1;
}

.option-title {
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.option-description {
    font-size: 0.9em;
    color: #666;
    margin: 0;
}

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

.form-header h3 {
    margin: 0;
    font-size: 1.3em;
}

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

.form-section:last-child {
    border-bottom: none;
}

.form-section h4 {
    margin: 0 0 15px 0;
    font-size: 1.1em;
    color: #333;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #6cc3c6;
    box-shadow: 0 0 0 2px rgba(108, 195, 198, 0.2);
}

.form-group .description {
    margin-top: 5px;
    font-size: 0.9em;
    color: #666;
}

.weekdays-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.weekday-option {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.weekday-option:hover {
    background: #e9ecef;
}

.weekday-option input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

.weekday-option input[type="checkbox"]:checked + span {
    font-weight: 600;
}

.time-slots-container {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    background: #f8f9fa;
}

.time-slot-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    padding: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.time-inputs {
    display: flex;
    gap: 15px;
    flex: 1;
}

.time-inputs label {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.time-inputs input[type="time"] {
    width: 120px;
    max-width: none;
}

.single-day-options,
.recurring-options {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.form-actions {
    display: flex;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.schedule-notice {
    border-left: 4px solid #46b450;
    padding: 12px;
    margin: 10px 0;
    background: #f0f8f0;
}

.schedule-notice.notice-error {
    border-left-color: #dc3232;
    background: #fef7f7;
}

/* Loading states */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .schedule-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .schedule-table-wrapper {
        font-size: 0.9em;
    }
    
    .schedule-actions {
        flex-direction: column;
    }
    
    .time-inputs {
        flex-direction: column;
        gap: 10px;
    }
    
    .weekdays-selector {
        flex-direction: column;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    /* Schedule type options stack on mobile */
    .schedule-type-options {
        flex-direction: column;
        gap: 15px;
    }
    
    .schedule-type-option {
        min-width: auto;
    }
    
    /* Schedule cards responsive */
    .schedule-cards-container {
        gap: 12px;
    }
    
    .card-row {
        flex-direction: column;
        gap: 12px;
    }
    
    .card-header {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .card-actions {
        justify-content: flex-end;
    }
}

/* Google Meet Link Styles */
.google-meet-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #4285f4 0%, #34a853 100%);
    color: #fff !important;
    border-radius: 6px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.google-meet-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.4);
    color: #fff !important;
}

.google-meet-link i {
    font-size: 16px;
}

/* Payment Status Badges */
.payment-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

.payment-status-badge.status-pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.payment-status-badge.status-completed {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.payment-status-badge.status-failed {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.payment-status-badge.status-expired {
    background: #e2e3e5;
    color: #383d41;
    border: 1px solid #d6d8db;
}

.payment-status-badge.status-refunded {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Appointment Status Badges */
.appointment-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

.appointment-status-badge.status-confirmed {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.appointment-status-badge.status-pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.appointment-status-badge.status-pending-payment {
    background: #cfe2ff;
    color: #084298;
    border: 1px solid #b6d4fe;
}

.appointment-status-badge.status-payment-expired {
    background: #e2e3e5;
    color: #383d41;
    border: 1px solid #d6d8db;
}

.appointment-status-badge.status-cancelled {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Payment Actions */
.payment-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.payment-retry-timer {
    font-size: 12px;
    color: #666;
    font-family: 'Courier New', monospace;
    padding: 2px 6px;
    background: #f8f9fa;
    border-radius: 3px;
}

/* Confirmation Step (No Payment Mode) */
.billing-address {
    margin: 30px 0;
    padding: 25px;
    background: #f9f9f9;
    border-radius: 8px;
}

.billing-address h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
}

.current-address {
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.current-address p {
    margin: 5px 0;
}

.use-different-address-label {
    display: block;
    margin: 15px 0;
    font-weight: 600;
    cursor: pointer;
}

.use-different-address-label input[type="checkbox"] {
    margin-right: 8px;
}

.edit-address-fields {
    margin-top: 20px;
    padding: 20px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.edit-address-fields .form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.edit-address-fields input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.terms-acceptance {
    margin: 30px 0;
    padding: 20px;
    background: #fffbea;
    border: 2px solid #ffc107;
    border-radius: 8px;
}

.terms-acceptance label {
    display: flex;
    align-items: center;
    font-weight: 600;
    cursor: pointer;
    flex-wrap: wrap;
}

.terms-acceptance input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.terms-acceptance a {
    color: #0073aa;
    text-decoration: underline;
    margin: 0 4px;
}

.terms-acceptance .required {
    color: #d63638;
    margin-left: 4px;
}

#confirm-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #ccc !important;
}

/* Google Meet Warning */
.google-meet-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.google-meet-warning .warning-icon {
    color: #f39c12;
    font-size: 24px;
    margin-top: 2px;
}

.google-meet-warning .warning-content h4 {
    margin: 0 0 8px 0;
    color: #8b4513;
    font-size: 16px;
    font-weight: 600;
}

.google-meet-warning .warning-content p {
    margin: 0;
    color: #8b4513;
    font-size: 14px;
    line-height: 1.5;
}

/* Generate Meet Link Button */
.generate-meet-link-btn {
    background: #0073aa !important;
    border-color: #0073aa !important;
    color: white !important;
}

.generate-meet-link-btn:hover {
    background: #005a87 !important;
    border-color: #005a87 !important;
}

.generate-meet-link-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Messages */
.arvena-message {
    padding: 12px 16px;
    margin: 10px 0;
    border-radius: 4px;
    font-weight: 500;
}

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

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

