﻿.rawafed-trainer-page {
    direction: rtl;
    padding: 30px;
    background: #F8FAFC;
    min-height: 100vh;
}

.trainer-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 26px;
    padding: 32px;
    border-radius: 28px;
    color: #fff;
    background: linear-gradient(135deg, #0F172A, #1D4ED8, #16A34A);
    box-shadow: 0 22px 55px rgba(15, 23, 42, .18);
    overflow: hidden;
    position: relative;
}

    .trainer-hero::after {
        content: "";
        position: absolute;
        width: 280px;
        height: 280px;
        border-radius: 50%;
        background: rgba(255,255,255,.10);
        left: -90px;
        top: -80px;
    }

.trainer-hero-content {
    position: relative;
    z-index: 2;
}

.trainer-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.22);
    font-weight: 800;
    font-size: 13px;
}

.trainer-hero h1 {
    margin: 15px 0 8px;
    font-size: 34px;
    font-weight: 900;
}

.trainer-hero p {
    margin: 0;
    max-width: 680px;
    color: rgba(255,255,255,.78);
    font-size: 15px;
    line-height: 1.9;
}

.trainer-hero-icon {
    position: relative;
    z-index: 2;
    width: 110px;
    height: 110px;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.20);
    font-size: 48px;
    flex-shrink: 0;
}

.trainer-form-card {
    background: #fff;
    border-radius: 26px;
    padding: 30px;
    border: 1px solid rgba(15,23,42,.06);
    box-shadow: 0 18px 45px rgba(15,23,42,.08);
}

.trainer-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

    .trainer-section-title h3 {
        margin: 0;
        color: #0F172A;
        font-size: 21px;
        font-weight: 900;
    }

    .trainer-section-title p {
        margin: 6px 0 0;
        color: #64748B;
        font-size: 14px;
    }

.trainer-section-step {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: #EFF6FF;
    color: #2563EB;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    border: 1px solid #DBEAFE;
}

.trainer-form-card .form-label {
    color: #334155;
    font-size: 14px;
    font-weight: 900;
    margin-bottom: 8px;
}

.trainer-form-card .form-control, .trainer-form-card .form-select {
    min-height: 48px;
    border-radius: 15px;
    border: 1px solid #CBD5E1;
    color: #0F172A;
    font-size: 14px;
    background-color: #fff;
}

    .trainer-form-card .form-control:focus, .trainer-form-card .form-select:focus {
        border-color: #2563EB;
        box-shadow: 0 0 0 .22rem rgba(37,99,235,.12);
    }

.field-error {
    display: block;
    margin-top: 7px;
    color: #DC2626;
    font-size: 12px;
    font-weight: 800;
}

.trainer-validation {
    margin-bottom: 22px;
    padding: 15px 18px;
    border-radius: 16px;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #B91C1C;
    font-weight: 800;
}

.trainer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #E5E7EB, transparent);
    margin: 34px 0;
}

.trainer-upload-box {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px;
    border-radius: 22px;
    background: #F8FAFC;
    border: 1px dashed #94A3B8;
}

.trainer-upload-icon {
    width: 74px;
    height: 74px;
    border-radius: 22px;
    background: linear-gradient(135deg, #16A34A, #22C55E);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    flex-shrink: 0;
}

.trainer-upload-content {
    flex: 1;
}

    .trainer-upload-content h5 {
        margin: 0 0 5px;
        color: #0F172A;
        font-weight: 900;
    }

    .trainer-upload-content p {
        margin: 0 0 12px;
        color: #64748B;
        font-size: 13px;
        font-weight: 700;
    }

.trainer-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid #E5E7EB;
}

.trainer-save-btn {
    min-width: 190px;
    height: 48px;
    border-radius: 15px;
    font-weight: 900;
    background: linear-gradient(135deg, #2563EB, #16A34A);
    border: 0;
    box-shadow: 0 12px 30px rgba(37,99,235,.20);
}

    .trainer-save-btn:hover {
        background: linear-gradient(135deg, #1D4ED8, #15803D);
    }

.trainer-clear-btn {
    min-width: 140px;
    height: 48px;
    border-radius: 15px;
    font-weight: 900;
    color: #334155;
    border: 1px solid #E5E7EB;
}

@media (max-width: 992px) {
    .trainer-hero {
        align-items: flex-start;
    }

    .trainer-hero-icon {
        width: 86px;
        height: 86px;
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .rawafed-trainer-page {
        padding: 18px;
    }

    .trainer-hero {
        flex-direction: column;
        padding: 24px;
    }

        .trainer-hero h1 {
            font-size: 26px;
        }

    .trainer-form-card {
        padding: 20px;
    }

    .trainer-section-title {
        align-items: flex-start;
    }

    .trainer-upload-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .trainer-actions {
        flex-direction: column;
    }

    .trainer-save-btn, .trainer-clear-btn {
        width: 100%;
    }
}


.trainer-message {
    display: block;
    margin-bottom: 20px;
    padding: 15px 18px;
    border-radius: 16px;
    font-weight: 900;
}

    .trainer-message.success {
        background: #ECFDF5;
        border: 1px solid #BBF7D0;
        color: #166534;
    }

    .trainer-message.error {
        background: #FEF2F2;
        border: 1px solid #FECACA;
        color: #B91C1C;
    }

.trainer-account-note {
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 18px;
    background: #F8FAFC;
    border: 1px solid #E5E7EB;
    color: #334155;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .trainer-account-note i {
        color: #2563EB;
        font-size: 20px;
    }