/* FAD HEALTHCARE LOGIN / REGISTER / DASHBOARD CSS*/
.fad-login-wrapper, .fad-register-wrapper {
    width: 100%;
    min-height: 650px;
    padding: 50px 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: #f6f9fc;
}

.fad-login-card, .fad-register-card {
    width: 100%;
    max-width: 520px;
    padding: 40px;
    background: #ffffff;
    border: 1px solid #e5eaf1;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(15, 35, 60, 0.08);
}

.fad-login-header, .fad-register-header {
    margin-bottom: 30px;
    text-align: center;
}

.fad-login-logo {
    width: 58px;
    height: 58px;
    margin: 0 auto 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #2563eb,#06b6d4);
    color: #ffffff;
    font-size: 25px;
}

.fad-login-eyebrow {
    margin: 0 0 5px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.fad-login-header h1, .fad-register-header h1 {
    margin: 0 0 8px;
    color: #172033;
    font-size: 30px;
    line-height: 1.2;
}

.fad-login-header p:last-child, .fad-register-header p:last-child {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

.login-role-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 25px;
}

.login-role-option {
    position: relative;
}

.login-role-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.login-role-option label {
    min-height: 88px;
    padding: 12px 6px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border: 1px solid #dfe6ef;
    border-radius: 12px;
    background: #ffffff;
    color: #64748b;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    transition: .2s ease;
}

.login-role-option label i {
    font-size: 21px;
}

.login-role-option label:hover {
    border-color: #93c5fd;
    color: #2563eb;
    background: #f8fbff;
}

.login-role-option input:checked + label {
    border-color: #2563eb;
    background: #eff6ff;
    color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37,99,235,.08);
}

.login-form-field, .register-form-field {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #263247;
    font-size: 13px;
    font-weight: 700;
}

.form-control {
    width: 100%;
    height: 50px;
    padding: 0 15px;
    border: 1px solid #dce3ed;
    border-radius: 10px;
    outline: none;
    background: #ffffff;
    color: #172033;
    font-size: 14px;
    transition: .2s ease;
}

textarea.form-control {
    min-height: 120px;
    padding-top: 12px;
}

select.form-control {
    cursor: pointer;
}

.form-control::placeholder {
    color: #a0aec0;
}

.form-control:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.10);
}

.login-form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin: 5px 0 22px;
}

.login-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 13px;
    cursor: pointer;
}

.login-check input {
    width: 16px;
    height: 16px;
    accent-color: #2563eb;
}

.login-secondary-link, .login-register-inline {
    color: #2563eb;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.login-secondary-link:hover, .login-register-inline:hover {
    text-decoration: underline;
}

.login-submit-btn {
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg,#2563eb,#0ea5e9);
    color: #ffffff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    transition: .2s ease;
}

.login-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(37,99,235,.22);
}

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

.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 25px 0 18px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.login-divider::before, .login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e8edf3;
}

.login-register-note {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    text-align: center;
}

.fad-login-required {
    max-width: 500px;
    margin: 50px auto;
    padding: 35px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #e5eaf1;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15,35,60,.06);
}

.fad-login-required p {
    margin: 0 0 20px;
    color: #475569;
}

.fad-login-required a {
    display: inline-flex;
    padding: 11px 20px;
    border-radius: 9px;
    background: #2563eb;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.fad-dashboard-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    color: #172033;
}

.fad-dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 28px;
    margin-bottom: 30px;
    background: #ffffff;
    border: 1px solid #e8edf5;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(30,55,90,.06);
}

.fad-dashboard-welcome {
    display: flex;
    align-items: center;
    gap: 16px;
}

.fad-dashboard-avatar {
    /*width: 58px;*/
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg,#2563eb,#0ea5e9);
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
}

.fad-dashboard-eyebrow, .fad-section-eyebrow {
    margin: 0 0 4px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.fad-dashboard-header h1 {
    margin: 0 0 8px;
    font-size: 26px;
    line-height: 1.2;
}

.fad-doctor-name {
    position: relative;
    display: inline-block;
}

.fad-doctor-name .featured-badge {
    position: absolute;
    top: -8px;
    color: #f5a623;
    font-size: 18px;
    cursor: pointer;
}

.fad-doctor-name .featured-badge::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translate(-50%, 5px);
    background: #252525;
    color: #fff;
    padding: 8px 13px;
    border-radius: 7px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: 0.2s ease;
    z-index: 999;
}

.fad-doctor-name .featured-badge:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.fad-account-badge {
    display: inherit;
    /*padding: 5px 10px;*/
    border-radius: 20px;
    background: #fff;
    color: #2563eb;
    font-size: 12px;
    font-weight: 700;
}

.fad-dashboard-logout {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 9px;
    background: #fff1f2;
    color: #e11d48;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.fad-dashboard-logout:hover {
    background: #ffe4e6;
    color: #be123c;
}

.fad-dashboard-section {
    margin-bottom: 30px;
}

.fad-section-heading {
    margin-bottom: 16px;
}

.fad-section-heading h2 {
    margin: 0;
    /*color: #172033;*/
    color: #fff;
    font-size: 22px;
}

.fad-dashboard-cards {
    display: grid;
    grid-template-columns: repeat(4,minmax(0, 1fr));
    gap: 18px;
}

.fad-dashboard-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 210px;
    padding: 22px;
    background: #ffffff;
    border: 1px solid #e8edf5;
    border-radius: 16px;
    color: #172033;
    text-decoration: none;
    box-shadow: 0 6px 24px rgba(30,55,90,.05);
    transition: .2s ease;
}

.fad-dashboard-card:hover {
    transform: translateY(-3px);
    border-color: #bfdbfe;
    box-shadow: 0 12px 30px rgba(30,55,90,.10);
}

.fad-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    border-radius: 12px;
    font-size: 20px;
}

.fad-card-blue {
    background: #eff6ff;
    color: #2563eb;
}

.fad-card-green {
    background: #ecfdf5;
    color: #059669;
}

.fad-card-purple {
    background: #f5f3ff;
    color: #7c3aed;
}

.fad-card-orange {
    background: #fff7ed;
    color: #ea580c;
}

.fad-card-content h3 {
    margin: 0 0 8px;
    font-size: 17px;
}

.fad-card-content p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

.fad-card-arrow {
    position: absolute;
    right: 20px;
    bottom: 20px;
    color: #94a3b8;
}

.fad-dashboard-card:hover .fad-card-arrow {
    color: #2563eb;
}

.fad-profile-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e8edf5;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(30,55,90,.06);
}

.fad-profile-card-header {
    padding: 24px;
    border-bottom: 1px solid #edf1f6;
}

.fad-profile-title {
    display: flex;
    align-items: center;
    gap: 14px;
}

.fad-profile-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #eff6ff;
    color: #2563eb;
}

.fad-profile-title h3 {
    margin: 0 0 4px;
    font-size: 17px;
}

.fad-profile-title p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
}

.fad-profile-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0, 1fr));
}

.fad-profile-field {
    min-width: 0;
    padding: 18px 24px;
    border-bottom: 1px solid #edf1f6;
}

.fad-profile-field:nth-child(odd) {
    border-right: 1px solid #edf1f6;
}

.fad-profile-field span {
    display: block;
    margin-bottom: 6px;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}

.fad-profile-field strong {
    /*display: block;*/
    color: #172033;
    font-size: 14px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.fad-profile-field-full {
    grid-column: 1 / -1;
}

.fad-profile-field-full:nth-child(odd) {
    border-right: 0;
}

.fad-account-status {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 16px;
}

.fad-status-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #dcfce7;
    color: #16a34a;
}

.fad-account-status h3 {
    margin: 0 0 3px;
    color: #166534;
    font-size: 15px;
}

.fad-account-status p {
    margin: 0;
    color: #4d7c5a;
    font-size: 13px;
}

.fad-status-active {
    margin-left: auto;
    padding: 6px 11px;
    border-radius: 20px;
    background: #dcfce7;
    color: #15803d;
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 1000px) {
    .fad-dashboard-cards {
        grid-template-columns: repeat(2,minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .fad-login-card,.fad-register-card {
        padding: 28px 20px;
    }

    .login-role-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .fad-dashboard-wrapper {
        margin: 25px auto;
        padding: 0 15px;
    }

    .fad-dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }

    .fad-dashboard-header-actions {
        width: 100%;
    }

    .fad-dashboard-logout {
        justify-content: center;
        width: 100%;
    }

    .fad-dashboard-cards {
        grid-template-columns: 1fr;
    }

    .fad-profile-grid {
        grid-template-columns: 1fr;
    }

    .fad-profile-field:nth-child(odd) {
        border-right: 0;
    }

    .fad-profile-field-full {
        grid-column: auto;
    }

    .fad-account-status {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .fad-status-active {
        margin-left: 56px;
    }

    .login-form-options {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .fad-login-wrapper, .fad-register-wrapper {
        padding: 25px 12px;
    }

    .fad-dashboard-welcome {
        align-items: flex-start;
    }

    .fad-dashboard-avatar {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }

    .fad-dashboard-header h1 {
        font-size: 21px;
    }

    .fad-profile-card-header, .fad-profile-field {
        padding-left: 18px;
        padding-right: 18px;
    }

    .fad-login-header h1, .fad-register-header h1 {
        font-size: 25px;
    }
}

.fad-appointments {
    width: 100%;
    /*max-width: 1050px;*/
    margin: 30px auto;
    padding: 25px;
    background: #ffffff;
    /*border-radius: 16px;*/
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    overflow-x: auto;
}

.fad-appointments table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    color: #333;
}

.fad-appointments thead {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #fff;
}

.fad-appointments th {
    padding: 16px 18px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fad-appointments td {
    padding: 16px 18px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 15px;
}

.fad-appointments tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

.fad-appointments tbody tr {
    transition: all 0.2s ease;
}

.fad-appointments tbody tr:hover {
    background-color: #eef2ff;
    transform: scale(1.005);
}

.fad-appointments td:first-child {
    font-weight: 600;
    color: #4f46e5;
}

.fad-appointments td:nth-child(4), .fad-appointments td.schedulled {
    color: #15803d;
    font-weight: 600;
}

.fad-appointments td.cancelled {
    color: red;
}

.fad-appointments td:nth-child(4) {
    position: relative;
}

.fad-appointments td:nth-child(4)::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 7px;
    background: #22c55e;
    border-radius: 50%;
}

@media (max-width: 768px) {
    .fad-appointments {
        margin: 15px 0;
        padding: 15px;
        border-radius: 12px;
    }

    .fad-appointments th,
    .fad-appointments td {
        padding: 12px 10px;
        font-size: 13px;
    }
}

@media (max-width: 600px) {
    .fad-appointments {
        background: transparent;
        box-shadow: none;
        padding: 0;
    }

    .fad-appointments table {
        min-width: 650px;
    }
}

.fad-appointment-wrapper {
    max-width: 650px;
    margin: 40px auto;
    padding: 35px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    font-family: Arial, sans-serif;
}

.fad-appointment-wrapper h2 {
    margin: 0 0 8px;
    color: #1f2937;
    font-size: 28px;
    text-align: center;
}

.fad-appointment-wrapper .fad-subtitle {
    margin-bottom: 30px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

.fad-success {
    padding: 14px 18px;
    margin-bottom: 25px;
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    font-size: 14px;
}

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

.fad-form-group label {
    display: block;
    margin-bottom: 7px;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
}

.fad-appointment-wrapper input, .fad-appointment-wrapper select, .fad-appointment-wrapper textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    color: #1f2937;
    font-size: 15px;
    outline: none;
    transition: all 0.2s ease;
}

.fad-appointment-wrapper input:focus, .fad-appointment-wrapper textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.fad-appointment-wrapper textarea {
    min-height: 120px;
    resize: vertical;
}

.fad-date-time {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.fad-book-btn {
    width: 100%;
    padding: 14px 20px;
    margin-top: 10px;
    border: none;
    border-radius: 8px;
    background: #2563eb;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.fad-book-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.fad-book-btn:active {
    transform: translateY(0);
}

.fad-time-slots {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.fad-time-slot {
    padding: 12px 8px;
    border: 1px solid #d1d5db;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    transition: all .2s ease;
}

.fad-time-slot:hover {
    border-color: #2563eb;
    background: #eff6ff;
}

.fad-time-slot.selected {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.fad-time-slot.booked {
    background: #f3f4f6;
    border-color: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    text-decoration: line-through;
}

.fad-slot-message {
    grid-column: 1 / -1;
    padding: 15px;
    background: #f9fafb;
    border-radius: 6px;
    color: #6b7280;
}

#fad-date-message {
    margin-top: 8px;
    color: #dc2626;
}

@media (max-width: 600px) {
    .fad-appointment-wrapper {
        margin: 20px 15px;
        padding: 25px 20px;
    }

    .fad-appointment-wrapper h2 {
        font-size: 23px;
    }

    .fad-date-time {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .fad-time-slots {
        grid-template-columns: repeat(2, 1fr);
    }
}

.fad-prescription-form {
    max-width: 900px;
    margin: 30px auto;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1f2937;
}

.fad-form-header {
    background: linear-gradient(135deg, #0f766e, #0d9488);
    color: #fff;
    padding: 28px 30px;
    border-radius: 14px 14px 0 0;
}

.fad-form-header h2 {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 700;
    color: #fff;
}

.fad-form-header p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
}

.fad-form-section {
    background: #fff;
    padding: 28px 30px;
    border: 1px solid #e5e7eb;
    border-top: 0;
}

.fad-section-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.fad-section-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ecfdf5;
    border-radius: 10px;
    font-size: 20px;
}

.fad-section-title h3 {
    margin: 0 0 3px;
    font-size: 18px;
    color: #111827;
}

.fad-section-title p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

.fad-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.fad-full-width {
    grid-column: 1 / -1;
}

.fad-form-group {
    display: flex;
    flex-direction: column;
}

.fad-form-group label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.fad-form-group label span {
    color: #dc2626;
}

.fad-form-group input, .fad-form-group select, .fad-form-group textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #111827;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: all 0.2s ease;
}

.fad-form-group input {
    height: 46px;
}

.fad-form-group textarea {
    min-height: 110px;
    resize: vertical;
    line-height: 1.5;
}

.fad-form-group input::placeholder, .fad-form-group textarea::placeholder {
    color: #9ca3af;
}

.fad-form-group input:focus, .fad-form-group textarea:focus {
    border-color: #0d9488;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

.fad-medicine-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 22px;
}

.fad-medicine-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.fad-medicine-header > div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fad-medicine-number {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #0d9488;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.fad-medicine-header h4 {
    margin: 0;
    font-size: 16px;
    color: #111827;
}

.fad-form-actions {
    background: #fff;
    padding: 22px 30px 30px;
    border: 1px solid #e5e7eb;
    border-top: 0;
    border-radius: 0 0 14px 14px;
    display: flex;
    justify-content: flex-end;
}

.fad-submit-btn {
    border: 0;
    background: #0d9488;
    color: #fff;
    padding: 13px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.fad-submit-btn:hover {
    background: #0f766e;
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(13, 148, 136, 0.2);
}

.fad-submit-btn:active {
    transform: translateY(0);
}

@media (max-width: 700px) {
    .fad-prescription-form {
        margin: 15px;
    }

    .fad-form-header {
        padding: 22px;
    }

    .fad-form-header h2 {
        font-size: 22px;
    }

    .fad-form-section {
        padding: 22px;
    }

    .fad-form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .fad-full-width {
        grid-column: auto;
    }

    .fad-medicine-card {
        padding: 16px;
    }

    .fad-form-actions {
        padding: 20px 22px 22px;
    }

    .fad-submit-btn {
        width: 100%;
        justify-content: center;
    }
}

.fad-prescriptions {
    max-width: 900px;
    margin: 30px auto;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1f2937;
}

.fad-success {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 14px 18px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 10px;
    color: #047857;
    font-size: 14px;
    font-weight: 600;
}

.fad-success::before {
    content: "✓";
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #10b981;
    color: #fff;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
}

.fad-prescription {
    margin-bottom: 24px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.05);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.fad-prescription:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.08);
}

.fad-prescription h3 {
    margin: 0;
    padding: 22px 26px;
    background: linear-gradient(135deg, #0f766e, #0d9488);
    color: #fff;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.fad-prescription > p {
    margin: 0;
    padding: 16px 26px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
    line-height: 1.6;
    color: #4b5563;
}

.fad-prescription > p:first-of-type {
    padding-top: 20px;
}

.fad-prescription > p strong {
    display: inline-block;
    min-width: 105px;
    margin-right: 5px;
    color: #111827;
    font-weight: 600;
}

.fad-prescription > p:nth-of-type(2), .fad-prescription > p:nth-of-type(3) {
    margin: 0 26px;
    padding: 15px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
}

.fad-prescription > p:nth-of-type(2) {
    margin-top: 18px;
}

.fad-prescription > p:nth-of-type(3) {
    margin-top: 12px;
    margin-bottom: 24px;
}

.fad-prescription > p:nth-of-type(2) strong, .fad-prescription > p:nth-of-type(3) strong {
    display: block;
    margin-bottom: 5px;
    color: #0f766e;
}

.fad-prescription h4 {
    margin: 0;
    padding: 20px 26px 14px;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fad-prescription h4::before {
    content: "💊";
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ecfdf5;
    border-radius: 8px;
    font-size: 17px;
}

.fad-prescription table {
    width: calc(100% - 52px);
    margin: 0 26px 26px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    font-size: 13px;
}

.fad-prescription table thead th {
    padding: 13px 14px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    color: #374151;
    font-size: 12px;
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
}

.fad-prescription table thead th:first-child {
    border-top-left-radius: 9px;
}

.fad-prescription table thead th:last-child {
    border-top-right-radius: 9px;
}

.fad-prescription table tbody td {
    padding: 14px;
    border-bottom: 1px solid #f1f5f9;
    color: #4b5563;
    vertical-align: top;
    line-height: 1.5;
}

.fad-prescription table tbody tr:last-child td {
    border-bottom: 0;
}

.fad-prescription table tbody tr {
    transition: background 0.15s ease;
}

.fad-prescription table tbody tr:hover {
    background: #f8fffd;
}

.fad-prescription table tbody td:first-child {
    color: #111827;
    font-weight: 600;
}

.fad-prescription table tbody td:nth-child(2) {
    color: #0f766e;
    font-weight: 600;
}

.fad-prescriptions > p {
    margin: 30px auto;
    padding: 40px 25px;
    text-align: center;
    background: #fff;
    border: 1px dashed #d1d5db;
    border-radius: 12px;
    color: #6b7280;
    font-size: 14px;
}

@media (max-width: 700px) {
    .fad-prescriptions {
        margin: 15px;
    }

    .fad-prescription {
        border-radius: 12px;
    }

    .fad-prescription h3 {
        padding: 18px 20px;
        font-size: 17px;
    }

    .fad-prescription > p {
        padding-left: 20px;
        padding-right: 20px;
    }

    .fad-prescription > p:nth-of-type(2), .fad-prescription > p:nth-of-type(3) {
        margin-left: 20px;
        margin-right: 20px;
    }

    .fad-prescription h4 {
        padding-left: 20px;
        padding-right: 20px;
    }

    .fad-prescription table,
    .fad-prescription table thead,
    .fad-prescription table tbody,
    .fad-prescription table tr,
    .fad-prescription table th,
    .fad-prescription table td {
        display: block;
    }

    .fad-prescription table {
        width: calc(100% - 40px);
        margin-left: 20px;
        margin-right: 20px;
        border: 0;
        background: transparent;
    }

    .fad-prescription table thead {
        display: none;
    }

    .fad-prescription table tbody tr {
        margin-bottom: 14px;
        padding: 15px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
    }

    .fad-prescription table tbody tr:last-child {
        margin-bottom: 0;
    }

    .fad-prescription table tbody td {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        padding: 8px 0;
        border: 0;
        font-size: 13px;
    }

    .fad-prescription table tbody td::before {
        flex: 0 0 90px;
        color: #6b7280;
        font-weight: 600;
    }

    .fad-prescription table tbody td:nth-child(1)::before {
        content: "Medicine";
    }

    .fad-prescription table tbody td:nth-child(2)::before {
        content: "Dosage";
    }

    .fad-prescription table tbody td:nth-child(3)::before {
        content: "Frequency";
    }

    .fad-prescription table tbody td:nth-child(4)::before {
        content: "Duration";
    }

    .fad-prescription table tbody td:nth-child(5)::before {
        content: "Instructions";
    }

    .fad-prescription table tbody td:first-child {
        padding-top: 0;
        color: #111827;
    }

    .fad-prescription table tbody td:last-child {
        padding-bottom: 0;
    }
}

@media (max-width: 420px) {
    .fad-prescriptions {
        margin: 10px;
    }

    .fad-prescription h3 {
        font-size: 16px;
    }

    .fad-prescription > p {
        font-size: 13px;
    }

    .fad-prescription > p strong {
        min-width: 85px;
    }

    .fad-prescription table tbody td {
        flex-direction: column;
        gap: 3px;
    }

    .fad-prescription table tbody td::before {
        flex: none;
    }
}

.fad-medical-form-wrapper {
    width: 100%;
    max-width: 950px;
    margin: 30px auto;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 10px 35px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.fad-medical-form-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 25px 30px;
    background: linear-gradient(135deg, #0f766e, #0d9488);
    color: #ffffff;
}

.fad-medical-form-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 28px;
    font-weight: 700;
}

.fad-medical-form-header h2 {
    margin: 0 0 4px;
    font-size: 24px;
    line-height: 1.3;
    color: #ffffff;
}

.fad-medical-form-header p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
}

.fad-medical-form {
    padding: 30px;
}

.fad-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.fad-form-group {
    margin-bottom: 22px;
}

.clinical-information .fad-form-group{
    width: 49%;
    display: inline-block;
    margin-right: 6px;
}

.fad-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #1f2937;
    font-size: 14px;
    font-weight: 600;
}

.fad-required {
    color: #dc2626;
    margin-left: 3px;
}

.fad-medical-form input[type="number"],
.fad-medical-form textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d1d5db;
    border-radius: 9px;
    background: #f9fafb;
    color: #111827;
    font-size: 15px;
    padding: 12px 14px;
    outline: none;
    transition: all 0.2s ease;
}

.fad-medical-form input[type="number"] {
    height: 48px;
}

.fad-medical-form textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

.fad-medical-form input::placeholder,
.fad-medical-form textarea::placeholder {
    color: #9ca3af;
}

.fad-medical-form input[type="number"]:focus,
.fad-medical-form textarea:focus {
    border-color: #0d9488;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

.fad-form-help {
    display: block;
    margin-top: 6px;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.5;
}

.fad-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 10px;
    border-top: 1px solid #e5e7eb;
}

.fad-security-note {
    color: #6b7280;
    font-size: 13px;
}

.fad-submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 20px;
    border: 0;
    border-radius: 9px;
    background: #0d9488;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fad-submit-button:hover {
    background: #0f766e;
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(13, 148, 136, 0.25);
}

.fad-submit-button:active {
    transform: translateY(0);
}

.fad-button-icon {
    font-size: 16px;
    font-weight: 700;
}

@media (max-width: 700px) {
    .fad-medical-form-wrapper {
        margin: 20px 10px;
        border-radius: 12px;
    }

    .fad-medical-form-header {
        padding: 20px;
    }

    .fad-medical-form-header h2 {
        font-size: 20px;
    }

    .fad-medical-form {
        padding: 20px;
    }

    .fad-form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .fad-form-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .fad-security-note {
        text-align: center;
    }

    .fad-submit-button {
        width: 100%;
    }
}

.fad-medical-records {
    width: 100%;
    max-width: 950px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.fad-success {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    padding: 15px 18px;
    border: 1px solid #a7f3d0;
    border-radius: 10px;
    background: #ecfdf5;
    color: #065f46;
}

.fad-success-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    background: #10b981;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
}

.fad-success strong {
    display: block;
    font-size: 14px;
}

.fad-success span:not(.fad-success-icon) {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: #047857;
}

.fad-medical-records {
    width: 100%;
    max-width: 950px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.fad-success {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 14px 18px;
    border: 1px solid #a7f3d0;
    border-radius: 10px;
    background: #ecfdf5;
    color: #065f46;
}

.fad-success-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    background: #10b981;
    color: #fff;
    font-weight: 700;
}

.fad-success strong {
    display: block;
    font-size: 14px;
}

.fad-success div span {
    display: block;
    margin-top: 2px;
    color: #047857;
    font-size: 12px;
}

.fad-medical-record {
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.04);
    transition: all 0.2s ease;
}

.fad-medical-record:hover {
    border-color: #cbd5e1;
}

.fad-record-toggle {
    width: 100%;
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 20px;
    border: 0;
    background: #ffffff;
    color: inherit;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

.fad-record-toggle:hover {
    background: #f8fafc;
}

.fad-record-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.fad-record-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 10px;
    background: #0d9488;
    color: #ffffff;
    font-size: 22px;
    font-weight: 600;
}

.fad-record-info {
    min-width: 0;
}

.fad-record-label {
    display: block;
    margin-bottom: 2px;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.fad-record-info h3 {
    margin: 0;
    overflow: hidden;
    color: #1e293b;
    font-size: 16px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fad-record-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.fad-record-date {
    text-align: right;
}

.fad-record-date span {
    display: block;
    margin-bottom: 2px;
    color: #94a3b8;
    font-size: 10px;
    text-transform: uppercase;
}

.fad-record-date strong {
    color: #475569;
    font-size: 12px;
    font-weight: 600;
}

.fad-record-arrow {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    font-size: 11px;
    transition: transform 0.25s ease, background 0.25s ease;
}

.fad-medical-record.active {
    border-color: #99f6e4;
    box-shadow: 0 5px 18px rgba(13, 148, 136, 0.08);
}

.fad-medical-record.active .fad-record-toggle {
    background: #f0fdfa;
}

.fad-medical-record.active .fad-record-arrow {
    transform: rotate(180deg);
    background: #ccfbf1;
    color: #0f766e;
}

.fad-record-content-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
}

.fad-medical-record.active .fad-record-content-wrapper {
    grid-template-rows: 1fr;
}

.fad-record-content-inner {
    min-height: 0;
    overflow: hidden;
    border-top: 1px solid #e2e8f0;
}

.fad-record-section {
    padding: 20px 20px 0;
}

.fad-section-heading {
    display: block;
    align-items: center;
    gap: 9px;
    margin-bottom: 10px;
}

.fad-section-heading h4 {
    margin: 0;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

.fad-section-icon {
    width: 27px;
    height: 27px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 700;
}

.fad-diagnosis-icon {
    background: #ccfbf1;
    color: #0f766e;
}

.fad-notes-icon {
    background: #dbeafe;
    color: #2563eb;
}

.fad-record-text {
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    background: #f8fafc;
    color: #475569;
    font-size: 13px;
    line-height: 1.7;
}

.fad-notes-text {
    background: #f8fafc;
}

.fad-record-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 20px;
    padding: 13px 20px;
    border-top: 1px solid #e5e7eb;
    background: #fafafa;
}

.fad-record-secure {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 11px;
}

.fad-record-secure > span {
    width: 17px;
    height: 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #dcfce7;
    color: #16a34a;
    font-size: 9px;
    font-weight: 700;
}

.fad-record-id {
    color: #94a3b8;
    font-family: monospace;
    font-size: 10px;
}

@media (max-width: 650px) {

    .fad-medical-records {
        margin: 20px 10px;
    }

    .fad-record-toggle {
        min-height: 70px;
        padding: 13px 15px;
    }

    .fad-record-icon {
        width: 38px;
        height: 38px;
        font-size: 20px;
    }

    .fad-record-meta {
        gap: 8px;
    }

    .fad-record-date {
        display: none;
    }

    .fad-record-arrow {
        width: 28px;
        height: 28px;
    }

    .fad-record-section {
        padding: 16px 15px 0;
    }

    .fad-record-footer {
        align-items: flex-start;
        flex-direction: column;
        padding: 12px 15px;
    }
}

#doctorProfileImage{
    padding-top: 15px;
}

#tell-a-friend .fad-tell-friend-card {
    padding: 30px;
}

#tell-a-friend .fad-tell-friend-intro {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
}

#tell-a-friend .fad-tell-friend-intro .fad-profile-icon {
    flex-shrink: 0;
}

#tell-a-friend .fad-tell-friend-intro h3 {
    margin: 0 0 6px;
}

#tell-a-friend .fad-tell-friend-intro p {
    margin: 0;
    color: #6b7280;
}

#tell-a-friend .fad-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

#tell-a-friend .fad-form-field {
    display: flex;
    flex-direction: column;
}

#tell-a-friend .fad-form-field-full {
    grid-column: 1 / -1;
}

#tell-a-friend .fad-form-field label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #1f2937;
}

#tell-a-friend .fad-form-field label em {
    color: #dc2626;
    font-style: normal;
}

#tell-a-friend .fad-form-field input,
#tell-a-friend .fad-form-field select,
#tell-a-friend .fad-form-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    color: #111827;
    font-size: 15px;
    box-sizing: border-box;
}

#tell-a-friend .fad-form-field input:focus,
#tell-a-friend .fad-form-field select:focus,
#tell-a-friend .fad-form-field textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}

#tell-a-friend .fad-form-field textarea {
    resize: vertical;
}

#tell-a-friend .fad-character-count {
    margin-top: 6px;
    color: #6b7280;
}

#tell-a-friend .fad-tell-friend-actions {
    margin-top: 25px;
}

#tell-a-friend .fad-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border: 0;
    border-radius: 8px;
    background: #2563eb;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

#tell-a-friend .fad-submit-btn:hover {
    background: #1d4ed8;
}

#tell-a-friend .fad-form-message {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    padding: 14px 16px;
    border-radius: 8px;
}

#tell-a-friend .fad-form-success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

#tell-a-friend .fad-form-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

@media (max-width: 768px) {
    #tell-a-friend .fad-form-grid {
        grid-template-columns: 1fr;
    }

    #tell-a-friend .fad-form-field-full {
        grid-column: auto;
    }

    #tell-a-friend .fad-tell-friend-card {
        padding: 20px;
    }
}

.fad-subscription-card {
    padding: 30px;
}

.fad-subscription-card .fad-tell-friend-intro {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
}

.fad-subscription-card .fad-profile-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #fff7ed;
    color: #f97316;
    font-size: 20px;
}

.fad-subscription-card .fad-tell-friend-intro h3 {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.fad-subscription-card .fad-tell-friend-intro p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
}

.fad-subscription-form {
    width: 100%;
}

.fad-subscription-form .fad-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.fad-subscription-form .fad-form-field {
    display: flex;
    flex-direction: column;
}

.fad-subscription-form .fad-form-field label {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
}

.fad-subscription-form .fad-form-field label em {
    color: #dc2626;
    font-style: normal;
}

.fad-subscription-form input, .fad-subscription-form select {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    color: #111827;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fad-subscription-form select {
    cursor: pointer;
}

.fad-subscription-form input:focus, .fad-subscription-form select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}

.fad-plan-details {
    margin-top: 24px;
}

.fad-plan-detail-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    border: 1px solid #dbeafe;
    border-radius: 10px;
    background: #eff6ff;
}

.fad-plan-detail-box strong {
    display: block;
    margin-bottom: 6px;
    color: #1e3a8a;
    font-size: 16px;
}

.fad-plan-detail-box p {
    margin: 0;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.5;
}

.fad-plan-price {
    flex-shrink: 0;
    color: #1d4ed8;
    font-size: 20px;
    font-weight: 700;
    white-space: nowrap;
}

.fad-subscription-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 28px;
}

.fad-subscription-actions .fad-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: 8px;
    background: #2563eb;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.fad-subscription-actions .fad-submit-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.fad-subscription-actions .fad-submit-btn:active {
    transform: translateY(0);
}

.fad-subscription-form select.loading {
    opacity: 0.65;
    cursor: wait;
}

@media (max-width: 768px) {

    .fad-subscription-card {
        padding: 20px;
    }

    .fad-subscription-form .fad-form-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .fad-subscription-card .fad-tell-friend-intro {
        align-items: flex-start;
    }

    .fad-subscription-card .fad-tell-friend-intro h3 {
        font-size: 18px;
    }

    .fad-plan-detail-box {
        align-items: flex-start;
        flex-direction: column;
    }

    .fad-plan-price {
        font-size: 18px;
    }

    .fad-subscription-actions {
        justify-content: stretch;
    }

    .fad-subscription-actions .fad-submit-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {

    .fad-subscription-card {
        padding: 16px;
    }

    .fad-subscription-card .fad-profile-icon {
        width: 42px;
        height: 42px;
        font-size: 17px;
    }

    .fad-subscription-card .fad-tell-friend-intro h3 {
        font-size: 16px;
    }

    .fad-subscription-card .fad-tell-friend-intro p {
        font-size: 13px;
    }
}

/*.fad-digital-clock {
    font-size: 25px;
    font-weight: 700;
    font-family: monospace;
    text-align: center;
    color: #2563eb;
}*/

.fad-digital-clock {
    font-size: 24px;
    font-weight: 700;
    font-family: "SFMono-Regular", "Roboto Mono", monospace;
    font-variant-numeric: tabular-nums;
    letter-spacing: 2px;
    text-align: center;
    color: #2563eb;
    padding: 8px 14px;
    border-radius: 10px;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.10);
    line-height: 1;
}

/* =========================================
   DASHBOARD NAVIGATION
========================================= */

.fad-dashboard-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.fad-dashboard-nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;

    display: flex;
    align-items: center;
    gap: 4px;

    overflow-x: auto;
    scrollbar-width: none;
}

.fad-dashboard-nav-inner::-webkit-scrollbar {
    display: none;
}

.fad-dashboard-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 58px;
    padding: 0 15px;
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.fad-dashboard-nav-link i {
    font-size: 15px;
}

.fad-dashboard-nav-link:hover {
    color: #2563eb;
    background: #f8fafc;
}

.fad-dashboard-nav-link.active {
    color: #2563eb;
}

.fad-dashboard-nav-link.active::after {
    content: "";
    position: absolute;
    left: 15px;
    right: 15px;
    bottom: 0;
    height: 3px;
    background: #2563eb;
    border-radius: 3px 3px 0 0;
}

.fad-dashboard-nav-link.fad-nav-logout {
    margin-left: auto;
    color: #dc2626;
}

.fad-dashboard-nav-link.fad-nav-logout:hover {
    color: #b91c1c;
    background: #fef2f2;
}

@media (max-width: 768px) {
    .fad-dashboard-nav-inner {
        padding: 0 12px;
    }

    .fad-dashboard-nav-link {
        min-height: 52px;
        padding: 0 12px;
        font-size: 13px;
    }

    .fad-dashboard-nav-link.active::after {
        left: 12px;
        right: 12px;
    }

    .fad-dashboard-nav-link span {
        display: inline;
    }

    .fad-dashboard-nav-link.fad-nav-logout {
        margin-left: 0;
    }
}

.fad-dashboard-wrapper .fad-dashboard-nav{
    margin-bottom: 30px;
}

.fad-monthly-calendar {
    width: 100%;
    max-width: 1400px;
    margin: 25px auto;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(15, 23, 42, .06);
}

.fad-monthly-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.fad-calendar-heading h2 {
    margin: 0;
    color: #111827;
    font-size: 22px;
    font-weight: 700;
}

.fad-calendar-current-month {
    margin-top: 3px;
    color: #64748b;
    font-size: 14px;
}

.fad-calendar-navigation {
    display: flex;
    align-items: center;
    gap: 7px;
}

.fad-calendar-nav {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 8px;
    color: #334155 !important;
    text-decoration: none !important;
    font-size: 25px;
}

.fad-calendar-nav:hover {
    background: #e2e8f0;
}

.fad-calendar-today {
    height: 38px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2563eb;
    color: #fff !important;
    border-radius: 8px;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
}

.fad-calendar-today:hover {
    background: #1d4ed8;
}

.fad-calendar-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 24px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.fad-calendar-total {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 13px;
}

.fad-calendar-total strong {
    color: #0f172a;
    font-size: 18px;
}

.fad-calendar-legend {
    display: flex;
    gap: 18px;
    color: #64748b;
    font-size: 11px;
}

.fad-calendar-legend span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.fad-calendar-legend i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.fad-calendar-legend i.scheduled {
    background: #2563eb;
}

.fad-calendar-legend i.confirmed {
    background: #10b981;
}

.fad-calendar-legend i.completed {
    background: #7c3aed;
}

.fad-calendar-legend i.cancelled {
    background: #ef4444;
}

.fad-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 1px;
    background: #e2e8f0;
}

.fad-calendar-weekday {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.fad-calendar-weekday.weekend {
    color: #94a3b8;
}

.fad-calendar-day {
    min-height: 180px;
    padding: 9px;
    background: #fff;
    overflow: hidden;
}

.fad-calendar-day:hover {
    background: #fcfdff;
}

.fad-calendar-day-empty {
    background: #f8fafc;
}

.fad-calendar-day.is-today {
    background: #f8fbff;
    box-shadow: inset 0 0 0 2px #3b82f6;
}

.fad-calendar-day-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 35px;
    margin-bottom: 7px;
}

.fad-calendar-day-name {
    display: block;
    color: #94a3b8;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}

.fad-calendar-day-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 29px;
    height: 29px;
    margin-top: 2px;
    border-radius: 50%;
    color: #0f172a;
    font-size: 14px;
    font-weight: 700;
}

.fad-calendar-day.is-today .fad-calendar-day-number {
    background: #2563eb;
    color: #fff;
}

.fad-calendar-today-badge {
    padding: 3px 6px;
    border-radius: 20px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 8px;
    font-weight: 700;
}

.fad-calendar-events {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fad-calendar-no-events {
    padding: 12px 3px;
    text-align: center;
    color: #cbd5e1;
    font-size: 10px;
}

.fad-calendar-event {
    padding: 8px;
    border-radius: 8px;
    border-left: 3px solid #2563eb;
    background: #eff6ff;
}

.fad-event-time {
    margin-bottom: 4px;
    color: #1d4ed8;
    font-size: 10px;
    font-weight: 800;
}

.fad-event-patient {
    margin-bottom: 4px;
    color: #0f172a;
    font-size: 11px;
    font-weight: 700;
}

.fad-event-doctor, .fad-event-hospital {
    overflow: hidden;
    color: #64748b;
    font-size: 9px;
    line-height: 1.5;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fad-event-doctor span, .fad-event-hospital span {
    color: #94a3b8;
}

.fad-event-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    margin-top: 6px;
    padding-top: 5px;
    border-top: 1px solid rgba(148,163,184,.2);
}

.fad-event-status {
    padding: 3px 6px;
    border-radius: 20px;
    font-size: 7px;
    font-weight: 800;
    text-transform: uppercase;
}

.fad-calendar-event.status-scheduled {
    background: #eff6ff;
    border-left-color: #2563eb;
}

.fad-calendar-event.status-scheduled .fad-event-status {
    background: #dbeafe;
    color: #1d4ed8;
}

.fad-calendar-event.status-confirmed {
    background: #ecfdf5;
    border-left-color: #10b981;
}

.fad-calendar-event.status-confirmed .fad-event-time {
    color: #047857;
}

.fad-calendar-event.status-confirmed .fad-event-status {
    background: #d1fae5;
    color: #047857;
}

.fad-calendar-event.status-completed {
    background: #f5f3ff;
    border-left-color: #7c3aed;
}

.fad-calendar-event.status-completed .fad-event-time {
    color: #6d28d9;
}

.fad-calendar-event.status-completed .fad-event-status {
    background: #ede9fe;
    color: #6d28d9;
}

.fad-calendar-event.status-cancelled {
    background: #fef2f2;
    border-left-color: #ef4444;
    opacity: .7;
}

.fad-calendar-event.status-cancelled .fad-event-time {
    color: #b91c1c;
}

.fad-calendar-event.status-cancelled .fad-event-status {
    background: #fee2e2;
    color: #b91c1c;
}

.fad-event-cancel {
    color: #dc2626 !important;
    font-size: 9px;
    text-decoration: none !important;
}

.fad-event-cancel:hover {
    text-decoration: underline !important;
}

@media (max-width: 1000px) {
    .fad-calendar-day {
        min-height: 160px;
        padding: 7px;
    }

    .fad-event-doctor,
    .fad-event-hospital {
        font-size: 8px;
    }
}

@media (max-width: 700px) {
    .fad-monthly-calendar-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .fad-calendar-navigation {
        justify-content: center;
    }

    .fad-calendar-summary {
        flex-direction: column;
        align-items: center;
    }

    .fad-calendar-legend {
        flex-wrap: wrap;
        justify-content: center;
    }

    .fad-calendar-grid {
        overflow-x: auto;
        grid-template-columns: repeat(7, 145px);
    }

    .fad-calendar-weekday {
        min-width: 145px;
    }

    .fad-calendar-day {
        min-width: 145px;
    }
}

.fad-calendar-day.has-multiple-appointments {
    cursor: pointer;
}

.fad-calendar-day.has-multiple-appointments:hover {
    background: #f8fbff;
}

.fad-calendar-day.has-multiple-appointments
.fad-calendar-day-header {
    position: relative;
}

.fad-calendar-day.has-multiple-appointments
.fad-calendar-day-number {
    box-shadow: 0 0 0 3px #dbeafe;
}

.fad-appointment-date-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
}

.fad-appointment-date-modal.is-open {
    display: block;
}

.fad-appointment-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(3px);
}

.fad-appointment-modal {
    position: relative;
    z-index: 2;
    width: calc(100% - 30px);
    max-width: 650px;
    max-height: calc(100vh - 60px);
    margin: 30px auto;
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(15, 23, 42, 0.25);
    animation: fadModalIn .2s ease-out;
}

@keyframes fadModalIn {
    from {
        opacity: 0;
        transform: translateY(15px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.fad-appointment-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 24px;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
}

.fad-modal-date-label {
    color: #2563eb;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.fad-appointment-modal-header h3 {
    margin: 3px 0 4px;
    color: #0f172a;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
}

#fad-modal-appointment-count {
    color: #64748b;
    font-size: 12px;
}

.fad-modal-close {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border: 0;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475569;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: all .2s ease;
}

.fad-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.fad-modal-appointments {
    max-height: calc(100vh - 190px);
    overflow-y: auto;
    padding: 18px 20px 22px;
}

.fad-popup-appointment {
    display: grid;
    grid-template-columns: 82px 1fr auto;
    gap: 15px;
    align-items: start;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #2563eb;
    background: #f8fafc;
    transition: all .2s ease;
}

.fad-popup-appointment:last-child {
    margin-bottom: 0;
}

.fad-popup-appointment:hover {
    background: #ffffff;
    box-shadow: 0 5px 18px rgba(15, 23, 42, .08);
}

.fad-popup-time {
    color: #1d4ed8;
    font-size: 14px;
    font-weight: 800;
    padding-top: 2px;
}

.fad-popup-content {
    min-width: 0;
}

.fad-popup-patient {
    margin-bottom: 7px;
    color: #0f172a;
    font-size: 14px;
    font-weight: 700;
}

.fad-popup-detail {
    margin-top: 3px;
    color: #475569;
    font-size: 11px;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fad-popup-detail span {
    display: inline-block;
    min-width: 60px;
    color: #94a3b8;
    font-weight: 600;
}

.fad-popup-status span {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 20px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
}

.fad-popup-appointment.status-scheduled {
    background: #eff6ff;
    border-left-color: #2563eb;
}

.fad-popup-appointment.status-scheduled
.fad-popup-status span {
    background: #dbeafe;
    color: #1d4ed8;
}

.fad-popup-appointment.status-confirmed {
    background: #ecfdf5;
    border-left-color: #10b981;
}

.fad-popup-appointment.status-confirmed
.fad-popup-time {
    color: #047857;
}

.fad-popup-appointment.status-confirmed
.fad-popup-status span {
    background: #d1fae5;
    color: #047857;
}

.fad-popup-appointment.status-completed {
    background: #f5f3ff;
    border-left-color: #7c3aed;
}

.fad-popup-appointment.status-completed
.fad-popup-time {
    color: #6d28d9;
}

.fad-popup-appointment.status-completed
.fad-popup-status span {
    background: #ede9fe;
    color: #6d28d9;
}

.fad-popup-appointment.status-cancelled {
    background: #fef2f2;
    border-left-color: #ef4444;
    opacity: .75;
}

.fad-popup-appointment.status-cancelled
.fad-popup-time {
    color: #b91c1c;
}

.fad-popup-appointment.status-cancelled
.fad-popup-status span {
    background: #fee2e2;
    color: #b91c1c;
}

body.fad-modal-open {
    overflow: hidden;
}

@media (max-width: 600px) {
    .fad-appointment-modal {
        width: calc(100% - 20px);
        max-height: calc(100vh - 20px);
        margin: 10px auto;
        border-radius: 14px;
    }

    .fad-appointment-modal-header {
        padding: 18px;
    }

    .fad-appointment-modal-header h3 {
        font-size: 17px;
    }

    .fad-modal-appointments {
        padding: 12px;
        max-height: calc(100vh - 140px);
    }

    .fad-popup-appointment {
        grid-template-columns: 1fr;
        gap: 7px;
        padding: 13px;
    }

    .fad-popup-status {
        margin-top: 3px;
    }
}

.fad-calendar-more-appointments {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    padding: 5px 9px;
    border-radius: 20px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s ease;
}

.fad-calendar-more-appointments:hover {
    background: #dbeafe;
    color: #1d4ed8;
}

.fad-calendar-more-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    font-size: 11px;
    line-height: 1;
}

.fad-calendar-day.has-multiple-appointments {
    cursor: pointer;
}

.fad-calendar-day.has-multiple-appointments:hover {
    background: #f8fbff;
}

.fad-calendar-empty-day {
    color: #94a3b8;
    font-size: 11px;
    text-align: center;
    padding: 10px 5px;
}

.fad-profile-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.fad-edit-profile-btn,
.fad-save-profile-btn,
.fad-cancel-edit-btn {
    border: 0;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fad-edit-profile-btn {
    background: #2563eb;
    color: #fff;
}

.fad-edit-profile-btn:hover {
    background: #1d4ed8;
}

.fad-save-profile-btn {
    background: #16a34a;
    color: #fff;
}

.fad-save-profile-btn:hover {
    background: #15803d;
}

.fad-cancel-edit-btn {
    background: #e5e7eb;
    color: #374151;
}

.fad-cancel-edit-btn:hover {
    background: #d1d5db;
}

.fad-profile-edit-form {
    width: 100%;
}

.fad-profile-field label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.fad-profile-field input,
.fad-profile-field select,
.fad-profile-field textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 11px 13px;
    background: #fff;
    color: #111827;
    font-size: 14px;
}

.fad-profile-field input:focus,
.fad-profile-field select:focus,
.fad-profile-field textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.fad-profile-field textarea {
    resize: vertical;
}

.fad-profile-form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-top: 25px;
}

@media (max-width: 700px) {
    .fad-profile-card-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .fad-edit-profile-btn {
        width: 100%;
    }

    .fad-profile-form-actions {
        flex-direction: column-reverse;
    }

    .fad-profile-form-actions button {
        width: 100%;
    }
}

.fad-profile-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

.fad-profile-notice-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.fad-profile-notice-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.fad-profile-description {
    margin-top: 8px;
    line-height: 1.7;
    color: #555;
}

.fad-profile-description p {
    margin-bottom: 10px;
}

.fad-profile-description ul,
.fad-profile-description ol {
    margin: 10px 0;
    padding-left: 25px;
}

.fad-profile-description strong {
    font-weight: 700;
}

.fad-profile-description a {
    color: #0d6efd;
    text-decoration: underline;
}

.fad-error-message {
    color: #b42318;
    background: #fef3f2;
    border: 1px solid #fecdca;
    border-left: 4px solid #d92d20;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 12px 0;
    text-align: left;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(180, 35, 24, 0.08);
}

.fad-working-hours {
    margin-top: 25px;
    padding: 26px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 3px 12px rgba(15, 23, 42, .04);
}

.fad-working-hours-header {
    margin-bottom: 22px;
}

.fad-working-hours-header h2 {
    margin: 0 0 5px;
    color: #111827;
    font-size: 21px;
    font-weight: 700;
}

.fad-working-hours-header p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

/* Two-column layout */
.fad-working-hours-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.fad-working-hour-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    min-height: 62px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid #e8edf2;
    border-radius: 10px;
    transition: .2s ease;
}

.fad-working-hour-row:hover {
    background: #f1f5f9;
    border-color: #dbe2ea;
}

.fad-working-day label {
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
}

.fad-working-day input {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: #2563eb;
    cursor: pointer;
}

.fad-working-day strong {
    color: #1f2937;
    font-size: 14px;
    font-weight: 600;
}

.fad-working-time {
    display: flex;
    align-items: center;
    gap: 6px;
}

.fad-working-time span {
    color: #9ca3af;
    font-size: 12px;
}

.fad-working-time input[type="time"] {
    width: 100px;
    padding: 7px 7px;
    background: #fff;
    border: 1px solid #d8dee6;
    border-radius: 7px;
    color: #374151;
    font-size: 12px;
}

.fad-working-time input[type="time"]:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, .1);
}

.fad-working-hours-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.fad-dashboard-primary-button {
    padding: 10px 20px;
    border: 0;
    border-radius: 8px;
    background: #2563eb;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: .2s ease;
}

.fad-dashboard-primary-button:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.fad-dashboard-notice {
    padding: 11px 14px;
    margin-bottom: 18px;
    border-radius: 8px;
    font-size: 14px;
}

.fad-dashboard-notice-success {
    color: #047857;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
}

.fad-dashboard-notice-error {
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

@media (max-width: 900px) {
    .fad-working-hours-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .fad-working-hours {
        padding: 18px;
    }

    .fad-working-hour-row {
        flex-direction: column;
        align-items: stretch;
    }

    .fad-working-time {
        width: 100%;
    }

    .fad-working-time input[type="time"] {
        flex: 1;
        width: auto;
    }

    .fad-working-hours-actions {
        margin-top: 16px;
    }

    .fad-dashboard-primary-button {
        width: 100%;
    }
}

/* =========== FindaDoc Messaging ========= */
.fad-messaging-section {
    margin-top: 32px;
}

.fad-messaging-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.fad-message-heading-description {
    margin: 8px 0 0;
    color: #718096;
    font-size: 14px;
}

.fad-message-heading-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 25px;
    height: 25px;
    margin-left: 7px;
    padding: 0 7px;
    border-radius: 20px;
    background: #2563eb;
    color: #fff;
    font-size: 12px;
    vertical-align: middle;
}

.fad-message-compose-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    border-radius: 10px;
    padding: 11px 17px;
    background: #2563eb;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
}

.fad-message-compose-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.fad-messaging-wrapper {
    display: grid;
    grid-template-columns: 210px minmax(320px, 430px) minmax(350px, 1fr);
    min-height: 620px;
    margin-top: 22px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(15, 23, 42, .05);
}

.fad-messaging-sidebar {
    border-right: 1px solid #e5e7eb;
    background: #f8fafc;
}

.fad-message-sidebar-header {
    padding: 22px 18px 14px;
    color: #111827;
    font-size: 14px;
    font-weight: 700;
}

.fad-message-folders {
    padding: 0 10px;
}

.fad-message-folder {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 4px;
    border: 0;
    border-radius: 9px;
    padding: 11px 12px;
    background: transparent;
    color: #475569;
    text-align: left;
    font-size: 13px;
    cursor: pointer;
}

.fad-message-folder span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fad-message-folder i {
    width: 18px;
    color: #64748b;
}

.fad-message-folder:hover {
    background: #eef2ff;
    color: #1d4ed8;
}

.fad-message-folder.active {
    background: #dbeafe;
    color: #1d4ed8;
    font-weight: 600;
}

.fad-message-folder.active i {
    color: #2563eb;
}

.fad-folder-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 21px;
    height: 21px;
    padding: 0 5px;
    border-radius: 20px;
    background: #2563eb;
    color: #fff;
    font-size: 10px;
}

.fad-message-sidebar-info {
    display: flex;
    gap: 10px;
    margin: 25px 14px;
    border: 1px solid #dbeafe;
    border-radius: 10px;
    padding: 12px;
    background: #eff6ff;
}

.fad-message-security-icon {
    flex: 0 0 24px;
    color: #2563eb;
    font-size: 17px;
}

.fad-message-sidebar-info strong {
    display: block;
    color: #1e3a8a;
    font-size: 11px;
}

.fad-message-sidebar-info p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 10px;
    line-height: 1.5;
}

.fad-message-list-panel {
    min-width: 0;
    border-right: 1px solid #e5e7eb;
}

.fad-message-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    padding: 15px 18px;
    border-bottom: 1px solid #e5e7eb;
}

.fad-message-list-header h3 {
    margin: 0;
    color: #111827;
    font-size: 17px;
}

.fad-message-list-header span {
    display: block;
    margin-top: 4px;
    color: #94a3b8;
    font-size: 11px;
}

.fad-message-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #64748b;
    cursor: pointer;
}

.fad-message-icon-button:hover {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #2563eb;
}

.fad-message-list {
    max-height: 548px;
    overflow-y: auto;
}

.fad-message-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 86px;
    border: 0;
    border-bottom: 1px solid #f1f5f9;
    padding: 14px 15px;
    background: #fff;
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: background .15s ease;
}

.fad-message-row:hover {
    background: #f8fafc;
}

.fad-message-row.is-unread {
    background: #f8fbff;
}

.fad-message-row.is-unread:hover {
    background: #eff6ff;
}

.fad-message-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.fad-message-row-content {
    min-width: 0;
    flex: 1;
}

.fad-message-row-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.fad-message-row-top strong {
    overflow: hidden;
    color: #1e293b;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fad-message-row-top time {
    flex: 0 0 auto;
    color: #94a3b8;
    font-size: 10px;
}

.fad-message-row.is-unread .fad-message-row-top strong {
    color: #111827;
    font-weight: 700;
}

.fad-message-row-subject {
    overflow: hidden;
    margin-top: 5px;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fad-message-row-preview {
    overflow: hidden;
    margin-top: 4px;
    color: #94a3b8;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fad-message-row-actions {
    flex: 0 0 20px;
    color: #cbd5e1;
}

.fad-star-active {
    color: #f59e0b;
}

.fad-message-empty,
.fad-conversation-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    padding: 30px;
    text-align: center;
}

.fad-message-empty-icon,
.fad-conversation-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: #eff6ff;
    color: #2563eb;
    font-size: 25px;
}

.fad-message-empty h3,
.fad-conversation-empty h3 {
    margin: 0;
    color: #1e293b;
    font-size: 17px;
}

.fad-message-empty p,
.fad-conversation-empty p {
    max-width: 280px;
    margin: 7px 0 20px;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.6;
}

.fad-conversation-panel {
    min-width: 0;
    background: #fbfdff;
}

.fad-conversation {
    display: flex;
    flex-direction: column;
    height: 620px;
}

.fad-conversation-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    padding: 12px 18px;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
}

.fad-conversation-person {
    display: flex;
    align-items: center;
    gap: 11px;
}

.fad-conversation-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.fad-conversation-person strong {
    display: block;
    color: #1e293b;
    font-size: 13px;
}

.fad-conversation-person span {
    display: block;
    margin-top: 3px;
    color: #94a3b8;
    font-size: 10px;
}

.fad-conversation-actions {
    display: flex;
    gap: 5px;
}

.fad-conversation-body {
    flex: 1;
    overflow-y: auto;
    padding: 22px;
}

.fad-message-bubble {
    max-width: 75%;
    margin-bottom: 16px;
}

.fad-message-bubble.mine {
    margin-left: auto;
}

.fad-message-bubble.theirs {
    margin-right: auto;
}

.fad-message-bubble-content {
    border-radius: 13px;
    padding: 11px 14px;
    background: #fff;
    color: #334155;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .05);
}

.fad-message-bubble.mine .fad-message-bubble-content {
    background: #2563eb;
    color: #fff;
}

.fad-message-bubble-content p {
    margin: 0;
    font-size: 12px;
    line-height: 1.65;
}

.fad-message-bubble-time {
    display: block;
    margin-top: 5px;
    color: #94a3b8;
    font-size: 9px;
}

.fad-message-bubble.mine .fad-message-bubble-time {
    color: #93c5fd;
    text-align: right;
}

.fad-conversation-reply {
    display: flex;
    gap: 9px;
    padding: 12px;
    border-top: 1px solid #e5e7eb;
    background: #fff;
}

.fad-conversation-reply textarea {
    flex: 1;
    min-height: 42px;
    max-height: 110px;
    resize: vertical;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px;
    outline: none;
    font-family: inherit;
    font-size: 12px;
}

.fad-conversation-reply textarea:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .08);
}

.fad-conversation-send {
    align-self: flex-end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 10px;
    background: #2563eb;
    color: #fff;
    cursor: pointer;
}

.fad-message-modal {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: none;
}

.fad-message-modal.is-open {
    display: block;
}

.fad-message-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .55);
    backdrop-filter: blur(3px);
}

.fad-message-modal-dialog {
    position: relative;
    z-index: 2;
    width: min(600px, calc(100% - 30px));
    margin: 70px auto;
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 25px 70px rgba(15, 23, 42, .2);
}

.fad-message-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px;
    border-bottom: 1px solid #e5e7eb;
}

.fad-message-modal-eyebrow {
    display: block;
    margin-bottom: 3px;
    color: #2563eb;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.fad-message-modal-header h3 {
    margin: 0;
    color: #111827;
    font-size: 19px;
}

.fad-message-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border: 0;
    border-radius: 8px;
    background: #f8fafc;
    color: #64748b;
    cursor: pointer;
}

.fad-message-modal-close:hover {
    background: #fee2e2;
    color: #dc2626;
}

.fad-compose-message-form {
    padding: 22px;
}

.fad-compose-field {
    margin-bottom: 17px;
}

.fad-compose-field label {
    display: block;
    margin-bottom: 7px;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
}

.fad-compose-field input,
.fad-compose-field select,
.fad-compose-field textarea {
    box-sizing: border-box;
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    padding: 10px 12px;
    background: #fff;
    color: #1e293b;
    outline: none;
    font-family: inherit;
    font-size: 13px;
}

.fad-compose-field input:focus,
.fad-compose-field select:focus,
.fad-compose-field textarea:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .08);
}

.fad-compose-actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    padding-top: 7px;
}

.fad-message-cancel-btn {
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    padding: 10px 16px;
    background: #fff;
    color: #475569;
    font-size: 13px;
    cursor: pointer;
}

.fad-message-send-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 0;
    border-radius: 9px;
    padding: 10px 17px;
    background: #2563eb;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

@media (max-width: 1100px) {
    .fad-messaging-wrapper {
        grid-template-columns: 180px minmax(280px, 1fr);
    }

    .fad-conversation-panel {
        display: none;
    }
}

@media (max-width: 700px) {
    .fad-messaging-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .fad-message-compose-btn {
        width: 100%;
        justify-content: center;
    }

    .fad-messaging-wrapper {
        display: block;
        min-height: auto;
    }

    .fad-messaging-sidebar {
        border-right: 0;
        border-bottom: 1px solid #e5e7eb;
    }

    .fad-message-folders {
        display: flex;
        gap: 5px;
        overflow-x: auto;
        padding: 8px;
    }

    .fad-message-folder {
        flex: 0 0 auto;
        width: auto;
    }

    .fad-message-folder span {
        white-space: nowrap;
    }

    .fad-message-sidebar-info {
        display: none;
    }

    .fad-message-list-panel {
        border-right: 0;
    }

    .fad-message-list {
        max-height: none;
    }

    .fad-conversation-panel {
        display: none;
    }

    .fad-message-row {
        min-height: 75px;
        padding: 12px;
    }

    .fad-message-row-top time {
        display: none;
    }

    .fad-message-modal-dialog {
        margin: 20px auto;
    }
}

/* =========================================================
   FindaDoc Conversation Panel
   ========================================================= */

.fad-conversation-panel {
    width: 100%;
    height: 100%;
    min-height: 560px;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e7eaf0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}


/* =========================================================
   Conversation Header
   ========================================================= */

.fad-conversation-header {
    flex-shrink: 0;
    padding: 18px 24px;
    background: #ffffff;
    border-bottom: 1px solid #eef0f4;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fad-conversation-header > div {
    min-width: 0;
}

.fad-message-modal-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #7b8494;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.fad-conversation-header h3 {
    margin: 0;
    color: #172033;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
}


/* =========================================================
   Messages Area
   ========================================================= */
.fad-conversation-messages {
    flex: 1;
    min-height: 0;
    padding: 28px 24px;
    background: linear-gradient(to bottom, #fafbfc 0%, #ffffff 100%);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-height: 395px;
}

.fad-conversation-messages::-webkit-scrollbar {
    width: 6px;
}

.fad-conversation-messages::-webkit-scrollbar-track {
    background: transparent;
}

.fad-conversation-messages::-webkit-scrollbar-thumb {
    background: #d7dce5;
    border-radius: 10px;
}

.fad-conversation-messages::-webkit-scrollbar-thumb:hover {
    background: #bcc4d0;
}

.fad-conversation-message {
    width: 100%;
    max-width: 75%;
    display: flex;
    flex-direction: column;
}

.fad-conversation-message.is-mine {
    align-self: flex-end;
    align-items: flex-end;
}

.fad-conversation-message.is-other {
    align-self: flex-start;
    align-items: flex-start;
}

.fad-conversation-message-meta {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 6px;
    padding: 0 5px;
}

.fad-conversation-message.is-mine
.fad-conversation-message-meta {
    flex-direction: row-reverse;
}

.fad-conversation-message-meta strong {
    color: #344054;
    font-size: 12px;
    font-weight: 700;
}

.fad-conversation-message-meta time {
    color: #98a2b3;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

.fad-conversation-message-body {
    padding: 12px 16px;
    color: #344054;
    background: #f1f3f6;
    border: 1px solid #e5e7eb;
    border-radius: 16px 16px 16px 5px;
    font-size: 14px;
    line-height: 1.6;
    word-break: break-word;
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.03);
}

.fad-conversation-message.is-mine
.fad-conversation-message-body {
    color: #ffffff;
    background: #2563eb;
    border-color: #2563eb;
    border-radius: 16px 16px 5px 16px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.18);
}

.fad-conversation-reply {
    flex-shrink: 0;
    padding: 16px 20px;
    background: #ffffff;
    border-top: 1px solid #eef0f4;
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

#fad-conversation-reply-text {
    flex: 1;
    min-width: 0;
    min-height: 52px;
    max-height: 140px;
    padding: 13px 15px;
    resize: vertical;
    color: #1f2937;
    background: #f8fafc;
    border: 1px solid #dfe3ea;
    border-radius: 13px;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

#fad-conversation-reply-text::placeholder {
    color: #98a2b3;
}

#fad-conversation-reply-text:hover {
    border-color: #cbd2dc;
}

#fad-conversation-reply-text:focus {
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}

#fad-send-conversation-reply {
    flex-shrink: 0;
    min-height: 52px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #ffffff;
    background: #2563eb;
    border: 0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.20);
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

#fad-send-conversation-reply:hover {
    background: #1d4ed8;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
    transform: translateY(-1px);
}

#fad-send-conversation-reply:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(37, 99, 235, 0.18);
}

#fad-send-conversation-reply i {
    font-size: 13px;
}

#fad-send-conversation-reply:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.fad-conversation-messages:empty {
    align-items: center;
    justify-content: center;
}

.fad-conversation-messages:empty::before {
    content: "No messages yet";
    color: #98a2b3;
    font-size: 14px;
}

@media (max-width: 768px) {

    .fad-conversation-panel {
        min-height: 500px;
        border-radius: 14px;
    }

    .fad-conversation-header {
        padding: 15px 16px;
    }

    .fad-conversation-header h3 {
        font-size: 16px;
    }

    .fad-conversation-messages {
        padding: 20px 14px;
        gap: 15px;
    }

    .fad-conversation-message {
        max-width: 88%;
    }

    .fad-conversation-reply {
        padding: 12px;
        gap: 8px;
    }

    #fad-conversation-reply-text {
        min-height: 48px;
        padding: 11px 12px;
    }

    #fad-send-conversation-reply {
        width: 48px;
        min-width: 48px;
        height: 48px;
        min-height: 48px;
        padding: 0;
        border-radius: 12px;
    }

    #fad-send-conversation-reply i {
        margin: 0;
    }

    #fad-send-conversation-reply {
        font-size: 0;
    }

    #fad-send-conversation-reply i {
        font-size: 14px;
    }
}

@media (max-width: 480px) {

    .fad-conversation-panel {
        min-height: 450px;
    }

    .fad-conversation-message {
        max-width: 92%;
    }

    .fad-conversation-message-body {
        padding: 10px 13px;
        font-size: 13px;
    }

    .fad-conversation-message-meta {
        gap: 6px;
    }

    .fad-conversation-message-meta strong {
        font-size: 11px;
    }

    .fad-conversation-message-meta time {
        font-size: 10px;
    }
}


/* Main profile grid */
.fad-profile-grid {
    --fad-primary: #2563eb;
    --fad-text: #172033;
    --fad-muted: #64748b;
    --fad-border: #e5eaf1;
    --fad-bg: #ffffff;
    --fad-soft-bg: #f8fafc;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    padding: 28px;
    background: var(--fad-bg);
    border: 1px solid var(--fad-border);
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    box-sizing: border-box;
}

.fad-profile-grid *,
.fad-profile-grid *::before,
.fad-profile-grid *::after {
    box-sizing: border-box;
}

.fad-profile-field {
    min-width: 0;
    padding: 17px 18px;
    background: var(--fad-soft-bg);
    border: 1px solid var(--fad-border);
    border-radius: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.fad-profile-field:hover {
    border-color: #c7d7fe;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.06);
    transform: translateY(-2px);
}

.fad-profile-field > span {
    display: block;
    margin-bottom: 8px;
    color: var(--fad-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.7px;
    line-height: 1.5;
    text-transform: uppercase;
}

.fad-profile-field > strong {
    display: block;
    color: var(--fad-text);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.fad-profile-field-full, .fad-profile-field-full1 {
    grid-column: 1 / -1;
}

.fad-profile-field-full {
    padding: 22px;
    background: linear-gradient(135deg, #f8fbff, #ffffff);
    border-color: #dce7f8;
}

.fad-profile-field-full > span {
    margin-bottom: 16px;
    color: var(--fad-primary);
    font-size: 13px;
    letter-spacing: 0.5px;
}

.fad-profile-description {
    display: flex;
    align-items: flex-start;
    gap: 22px;
}

.fad-profile-description .profile-image {
    flex: 0 0 120px;
    width: 120px;
}

.fad-profile-description .profile-image img {
    display: block;
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 14px;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}

.fad-profile-description .profile-description {
    flex: 1;
    min-width: 0;
}

.fad-profile-description .profile-description p {
    margin: 0;
    color: #475569;
    font-size: 14px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.fad-profile-field-full1 {
    background: #ffffff;
    border-left: 4px solid var(--fad-primary);
}

@media (max-width: 768px) {
    .fad-profile-grid {
        gap: 14px;
        padding: 20px;
    }

    .fad-profile-field {
        padding: 15px;
    }

    .fad-profile-description {
        gap: 16px;
    }

    .fad-profile-description .profile-image {
        flex-basis: 90px;
        width: 90px;
    }

    .fad-profile-description .profile-image img {
        width: 90px;
        height: 90px;
    }
}

@media (max-width: 520px) {
    .fad-profile-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 14px;
        border-radius: 14px;
    }

    .fad-profile-field-full, .fad-profile-field-full1 {
        grid-column: auto;
    }

    .fad-profile-field {
        padding: 14px;
    }

    .fad-profile-description {
        flex-direction: column;
        gap: 14px;
    }

    .fad-profile-description .profile-image {
        flex: none;
        width: 100px;
    }

    .fad-profile-description .profile-image img {
        width: 100px;
        height: 100px;
        border-radius: 12px;
    }

    .fad-profile-description .profile-description p {
        font-size: 14px;
        line-height: 1.8;
    }

    .fad-profile-field > strong {
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fad-profile-field {
        transition: none;
    }

    .fad-profile-field:hover {
        transform: none;
    }
}

.fad-appointment-wrapper {
    --fad-primary: #176b87;
    --fad-primary-dark: #10546d;
    --fad-text: #203449;
    --fad-muted: #718096;
    --fad-border: #dce5ee;
    --fad-bg: #f4f8fc;

    max-width: 850px;
    width: calc(100% - 32px);
    margin: 40px auto;
    padding: 36px;
    background: #ffffff;
    border: 1px solid #e5edf4;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(28, 57, 85, 0.09);
    box-sizing: border-box;
    font-family: Inter, -apple-system, BlinkMacSystemFont,
                 "Segoe UI", sans-serif;
    color: var(--fad-text);
}

.fad-appointment-wrapper h2 {
    margin: 0 0 10px;
    color: var(--fad-text);
    font-size: 30px;
    font-weight: 750;
    line-height: 1.3;
    letter-spacing: -0.8px;
}

.fad-appointment-wrapper .fad-subtitle {
    margin-bottom: 30px;
    padding: 12px 16px;
    background: #eff7fa;
    border-left: 4px solid var(--fad-primary);
    border-radius: 6px;
    color: #426477;
    font-size: 14px;
    line-height: 1.6;
}

#fad-appointment-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 20px;
    width: 100%;
    margin: 0;
}

#fad-appointment-form .fad-form-group {
    display: flex;
    flex-direction: column;
    grid-column: span 1;
    min-width: 0;
    margin: 0;
    padding: 0;
}

#fad-appointment-form .fad-form-group:has(#doctor_user_id),
#fad-appointment-form .fad-form-group:has(#hospital_user_id),
#fad-appointment-form .fad-form-group:has(#appointment_date),
#fad-appointment-form .fad-form-group:has(#fad-time-slots),
#fad-appointment-form .fad-form-group:has(#reason) {
    grid-column: 1 / -1;
}

#fad-appointment-form label {
    display: block;
    margin: 0 0 9px;
    color: #344b60;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.5;
    letter-spacing: 0.15px;
}

#fad-appointment-form select,
#fad-appointment-form input[type="date"],
#fad-appointment-form textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 49px;
    margin: 0;
    padding: 12px 14px;
    background-color: #fbfdff;
    border: 1px solid var(--fad-border);
    border-radius: 10px;
    color: var(--fad-text);
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    box-sizing: border-box;
    outline: none;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

#fad-appointment-form select {
    cursor: pointer;
    padding-right: 32px;
}

#fad-appointment-form textarea {
    min-height: 120px;
    resize: vertical;
}

#fad-appointment-form select:hover,
#fad-appointment-form input[type="date"]:hover,
#fad-appointment-form textarea:hover {
    border-color: #a6c5d5;
    background-color: #ffffff;
}

#fad-appointment-form select:focus,
#fad-appointment-form input[type="date"]:focus,
#fad-appointment-form textarea:focus {
    border-color: var(--fad-primary);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(23, 107, 135, 0.11);
}

#fad-appointment-form select:focus-visible,
#fad-appointment-form input[type="date"]:focus-visible,
#fad-appointment-form textarea:focus-visible {
    outline: 2px solid rgba(23, 107, 135, 0.2);
    outline-offset: 2px;
}

#fad-appointment-form input[type="date"] {
    color-scheme: light;
    cursor: pointer;
}

#fad-date-message {
    margin-top: 8px;
    color: var(--fad-muted);
    font-size: 12px;
    line-height: 1.6;
}

#fad-time-slots {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 54px;
    padding: 14px;
    background: var(--fad-bg);
    border: 1px dashed #cbd9e5;
    border-radius: 10px;
    box-sizing: border-box;
}

#fad-time-slots .fad-slot-message {
    margin: 0;
    color: var(--fad-muted);
    font-size: 13px;
    line-height: 1.6;
}

#fad-time-slots button,
#fad-time-slots .fad-time-slot,
#fad-time-slots .time-slot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 15px;
    background: #ffffff;
    border: 1px solid #cbd9e5;
    border-radius: 8px;
    color: #35556b;
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

#fad-time-slots button:hover,
#fad-time-slots .fad-time-slot:hover,
#fad-time-slots .time-slot:hover {
    background: #eaf5f9;
    border-color: var(--fad-primary);
    color: var(--fad-primary-dark);
}

#fad-time-slots .selected,
#fad-time-slots button[aria-pressed="true"],
#fad-time-slots .fad-time-slot.active,
#fad-time-slots .time-slot.active {
    background: var(--fad-primary);
    border-color: var(--fad-primary);
    color: #ffffff;
}

#fad-appointment-form .fad-book-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    grid-column: 1 / -1;
    width: 100%;
    min-height: 54px;
    margin: 4px 0 0;
    padding: 15px 24px;
    background: var(--fad-primary);
    border: 1px solid var(--fad-primary);
    border-radius: 10px;
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.2px;
    cursor: pointer;
    box-shadow: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

#fad-appointment-form .fad-book-btn:not(:disabled):hover {
    background: var(--fad-primary-dark);
    border-color: var(--fad-primary-dark);
    box-shadow: 0 7px 18px rgba(23, 107, 135, 0.2);
    transform: translateY(-1px);
}

#fad-appointment-form .fad-book-btn:focus-visible {
    outline: 3px solid rgba(23, 107, 135, 0.3);
    outline-offset: 3px;
}

#fad-appointment-form .fad-book-btn:disabled {
    background: #a9c0ca;
    border-color: #a9c0ca;
    color: #ffffff;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
    opacity: 1;
}

@media (max-width: 768px) {
    .fad-appointment-wrapper {
        max-width: 700px;
        padding: 28px;
    }

    #fad-appointment-form {
        gap: 20px 16px;
    }
}

@media (max-width: 600px) {
    .fad-appointment-wrapper {
        width: calc(100% - 24px);
        margin: 20px auto;
        padding: 22px 18px;
        border-radius: 15px;
    }

    .fad-appointment-wrapper h2 {
        font-size: 25px;
        letter-spacing: -0.5px;
    }

    .fad-appointment-wrapper .fad-subtitle {
        margin-bottom: 24px;
        padding: 11px 12px;
        font-size: 13px;
    }

    #fad-appointment-form {
        grid-template-columns: minmax(0, 1fr);
        gap: 19px;
    }

    #fad-appointment-form .fad-form-group,
    #fad-appointment-form .fad-form-group:has(#doctor_user_id),
    #fad-appointment-form .fad-form-group:has(#hospital_user_id),
    #fad-appointment-form .fad-form-group:has(#appointment_date),
    #fad-appointment-form .fad-form-group:has(#fad-time-slots),
    #fad-appointment-form .fad-form-group:has(#reason) {
        grid-column: 1 / -1;
    }

    #fad-appointment-form select,
    #fad-appointment-form input[type="date"],
    #fad-appointment-form textarea {
        font-size: 16px;
    }

    #fad-appointment-form .fad-book-btn {
        min-height: 52px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fad-appointment-wrapper *,
    #fad-appointment-form * {
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

.fad-review-appointment, .fad-review-target, .fad-public-review, .fad-public-rating-summary {
    box-sizing: border-box;
    font-family: inherit;
}

.fad-reviews-section .fad-review-appointment {
    padding: 20px;
    margin: 18px 0;
    background: #fff;
    border: 1px solid #e5eaf1;
    border-radius: 14px;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.035);
}

.fad-reviews-section .fad-review-appointment > h3 {
    margin: 0 0 5px;
    color: #19243a;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.fad-reviews-section .fad-review-appointment > p {
    margin: 0 0 12px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
}

.fad-reviews-section .fad-review-target {
    margin: 0;
    padding: 12px 0;
    background: transparent;
    border: 0;
    border-top: 1px solid #edf0f5;
    border-radius: 0;
}

.fad-review-row, .fad-review-professional {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fad-review-row {
    justify-content: space-between;
}

.fad-review-professional {
    min-width: 0;
}

.fad-review-avatar {
    display: flex;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #2456a6;
    background: #eaf1ff;
    border-radius: 11px;
    font-size: 15px;
    font-weight: 700;
}

.fad-review-professional-info {
    min-width: 0;
}

.fad-review-professional-info h4 {
    margin: 0 0 3px !important;
    color: #1e293b;
    font-size: 14px !important;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.fad-review-type {
    color: #64748b;
    font-size: 12px;
}

.fad-review-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    color: #2456c4;
    background: #fff;
    border: 1px solid #cddafa;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.fad-review-toggle:hover {
    background: #eff5ff;
    border-color: #9db8f4;
}

.fad-review-toggle:focus-visible {
    outline: 3px solid #bfdbfe;
    outline-offset: 2px;
}

.fad-review-completed {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 5px;
    padding: 6px 9px;
    color: #167346;
    background: #eaf8ef;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
}

.fad-review-status {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.6;
}

.fad-review-form-panel {
    margin-top: 14px;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e8edf4;
    border-radius: 10px;
}

.fad-review-form-panel[hidden] {
    display: none !important;
}

.fad-review-form {
    display: grid;
    gap: 14px;
    margin-top: 0;
}

.fad-review-form label {
    display: grid;
    gap: 7px;
    color: #344054;
    font-size: 13px;
    font-weight: 600;
}

.fad-review-form select,
.fad-review-form textarea {
    box-sizing: border-box;
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 11px 12px;
    color: #202b40;
    background: #fff;
    border: 1px solid #d8e0eb;
    border-radius: 8px;
    font: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.fad-review-form select {
    min-height: 44px;
    cursor: pointer;
}

.fad-review-form textarea {
    min-height: 90px;
    line-height: 1.7;
    resize: vertical;
}

.fad-review-form select:focus,
.fad-review-form textarea:focus {
    border-color: #6558e8;
    box-shadow: 0 0 0 3px rgba(101, 88, 232, 0.1);
}

.fad-review-form textarea::placeholder {
    color: #9ba4b4;
}

.fad-review-form-panel .fad-dashboard-primary-button {
    justify-self: start;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
}

.fad-review-form-panel .fad-dashboard-primary-button:focus-visible {
    outline: 3px solid rgba(101, 88, 232, 0.25);
    outline-offset: 3px;
}

.fad-review-notice {
    padding: 14px 17px;
    margin: 16px 0;
    color: #2854a6;
    background: #f0f5ff;
    border: 1px solid #dce7ff;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.7;
}

.fad-reviews-summary {
    padding-bottom: 10px;
    background: #fff;
}

.fad-public-rating-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 22px;
    padding: 26px;
    margin: 24px 0;
    background: linear-gradient(135deg, #f5f4ff, #fbfaff);
    border: 1px solid #e8e6fb;
    border-radius: 0;
}

.fad-demo-label {
    display: block;
    margin-bottom: 8px;
    color: #6258d9;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 1.3px;
}

.fad-public-rating-summary h3 {
    margin: 0;
    color: #19243a;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.5px;
}

.fad-demo-rating {
    display: flex;
    align-items: center;
    gap: 16px;
}

.fad-demo-rating > strong {
    color: #29265b;
    font-size: 45px;
    line-height: 1;
    letter-spacing: -1.5px;
}

.fad-rating-stars {
    color: #efa936;
    font-size: 17px;
    letter-spacing: 2px;
}

.fad-demo-rating > div > span {
    display: block;
    margin-top: 5px;
    color: #7c8598;
    font-size: 12px;
}

.fad-public-review {
    padding: 23px;
    margin: 0 16px 16px;
    background: #fff;
    border: 1px solid #e8edf4;
    border-radius: 15px;
    box-shadow: 0 3px 12px rgba(20, 35, 65, 0.025);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.fad-public-review:hover {
    border-color: #d8d5fa;
    box-shadow: 0 6px 20px rgba(20, 35, 65, 0.05);
}

.fad-public-review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

.fad-demo-reviewer {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.fad-demo-avatar {
    display: flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: #5145cd;
    background: #eeedff;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
}

.fad-demo-reviewer strong {
    display: block;
    color: #253047;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.fad-public-review time {
    display: block;
    margin-top: 5px;
    color: #929bad;
    font-size: 12px;
}

.fad-demo-rating-badge {
    padding: 6px 10px;
    color: #b77b1d;
    background: #fff7e8;
    border-radius: 8px;
    font-size: 13px;
    letter-spacing: 1px;
}

.fad-public-review > p {
    margin: 19px 0 0;
    padding-top: 16px;
    color: #536075;
    border-top: 1px solid #eff1f5;
    font-size: 14px;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

.fad-public-review > p.fad-no-written-review {
    color: #929bad;
    font-style: italic;
}

.fad-no-reviews {
    padding: 16px;
    color: #64748b;
    font-size: 14px;
}

.advanced-input-wrap{
    color: #607089;
}

.form-check-input {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    vertical-align: middle;
    background: #fff;
    border: 1.5px solid #cbd5e1;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color .2s, border-color .2s, box-shadow .2s;
}

.form-check-input:hover, .form-check-input:checked {
    border-color: #2563eb;
}

.form-check-input:checked {
    background-color: #2563eb;
}

.form-check-input:checked::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 6px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.form-check-input:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgb(37 99 235 / 15%);
}

.form-check-input:disabled {
    opacity: .5;
    cursor: not-allowed;
}

@media (prefers-reduced-motion: reduce) {
    .fad-review-toggle,
    .fad-public-review,
    .fad-review-form select,
    .fad-review-form textarea {
        transition: none;
    }
}

@media (max-width: 600px) {
    .fad-reviews-section .fad-review-appointment {
        padding: 16px;
    }

    .fad-public-rating-summary {
        align-items: flex-start;
        padding: 20px;
    }

    .fad-public-rating-summary h3 {
        font-size: 20px;
    }

    .fad-demo-rating {
        gap: 12px;
    }

    .fad-demo-rating > strong {
        font-size: 38px;
    }

    .fad-public-review {
        padding: 17px;
        margin: 0 0 12px;
    }
}

@media (max-width: 480px) {
    .fad-reviews-section .fad-review-appointment {
        padding: 14px;
    }

    .fad-review-row {
        gap: 8px;
    }

    .fad-review-professional {
        gap: 8px;
    }

    .fad-review-avatar {
        flex-basis: 34px;
        width: 34px;
        height: 34px;
    }

    .fad-review-toggle {
        gap: 4px;
        padding: 8px;
        font-size: 11px;
    }

    .fad-review-form-panel {
        padding: 12px;
    }

    .fad-public-rating-summary {
        gap: 16px;
    }

    .fad-demo-rating-badge {
        padding: 5px 7px;
        font-size: 11px;
    }

    .fad-public-review-header {
        gap: 10px;
    }
}
