.ffmp-container {
    max-width: 900px;
    margin: 25px auto;
    font-family: inherit;
    direction: rtl;
    text-align: right;
    box-sizing: border-box;
}

.ffmp-container * {
    box-sizing: border-box;
}

.ffmp-card {
    background: #0d0d0d;
    border: 1px solid #222222;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    color: #ffffff;
}

.ffmp-header {
    text-align: center;
    margin-bottom: 25px;
    border-bottom: 1px solid #1f1f1f;
    padding-bottom: 20px;
}

.ffmp-badge {
    display: inline-block;
    background: rgba(181, 232, 47, 0.12);
    color: #b5e82f;
    border: 1px solid #b5e82f;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
}

.ffmp-header h2 {
    color: #ffffff;
    font-size: 26px;
    margin: 8px 0;
}

.ffmp-header p {
    color: #8c8c8c;
    font-size: 14px;
    margin: 0;
}

.ffmp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

@media (max-width: 650px) {
    .ffmp-grid {
        grid-template-columns: 1fr;
    }

    .ffmp-card {
        padding: 20px;
    }
}

.ffmp-field {
    display: flex;
    flex-direction: column;
}

.ffmp-field label {
    font-size: 13px;
    font-weight: 600;
    color: #cccccc;
    margin-bottom: 6px;
}

.ffmp-field input,
.ffmp-field select {
    background: #171717;
    border: 1px solid #2b2b2b;
    border-radius: 10px;
    padding: 12px 14px;
    color: #ffffff;
    font-size: 14px;
    transition: all 0.2s ease;
    outline: none;
}

.ffmp-field input:focus,
.ffmp-field select:focus {
    border-color: #b5e82f;
    box-shadow: 0 0 8px rgba(181, 232, 47, 0.25);
}

.ffmp-btn-submit {
    width: 100%;
    background: #b5e82f;
    color: #000000;
    font-weight: 800;
    font-size: 16px;
    border: none;
    border-radius: 10px;
    padding: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-top: 22px;
}

.ffmp-btn-submit:hover {
    background: #cbf542;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(181, 232, 47, 0.4);
}

.ffmp-bmi-indicator {
    font-size: 13px;
    color: #b5e82f;
    margin-top: 6px;
    font-weight: 600;
}

.ffmp-loader {
    text-align: center;
    padding: 30px;
}

.ffmp-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid #222;
    border-top: 4px solid #b5e82f;
    border-radius: 50%;
    animation: ffmpSpin 0.8s linear infinite;
    margin: 0 auto 12px;
}

@keyframes ffmpSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.ffmp-result-container {
    margin-top: 30px;
    border-top: 2px dashed #242424;
    padding-top: 25px;
}

.ffmp-summary-box {
    background: #141414;
    border-radius: 12px;
    border: 1px solid #262626;
    padding: 18px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 22px;
}

.ffmp-summary-item {
    font-size: 14px;
}

.ffmp-summary-item span {
    color: #b5e82f;
    font-weight: 800;
}

.ffmp-btn-pdf {
    background: #ffffff;
    color: #000000;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ffmp-btn-pdf:hover {
    background: #b5e82f;
}

.ffmp-day-section {
    background: #141414;
    border-radius: 12px;
    border: 1px solid #222222;
    margin-bottom: 18px;
    overflow: hidden;
}

.ffmp-day-header {
    background: #1a1a1a;
    padding: 12px 18px;
    border-bottom: 1px solid #262626;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ffmp-day-header h4 {
    margin: 0;
    color: #b5e82f;
    font-size: 16px;
}

.ffmp-table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
    font-size: 13px;
}

.ffmp-table th {
    background: #111111;
    color: #999999;
    padding: 10px 14px;
    font-weight: 600;
    border-bottom: 1px solid #222;
}

.ffmp-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #1c1c1c;
    color: #eaeaea;
}

.ffmp-table tr:last-child td {
    border-bottom: none;
}

.ffmp-badge-rest {
    background: #202020;
    color: #b5e82f;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
}

@media print {
    body * {
        visibility: hidden;
    }

    #ffmp-print-area,
    #ffmp-print-area * {
        visibility: visible;
    }

    #ffmp-print-area {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        background: #ffffff !important;
        color: #000000 !important;
        padding: 15px;
    }

    .ffmp-print-header {
        border-bottom: 2px solid #000000;
        padding-bottom: 8px;
        margin-bottom: 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .ffmp-day-section {
        background: #ffffff !important;
        border: 1px solid #cccccc !important;
        color: #000000 !important;
        margin-bottom: 12px;
        page-break-inside: avoid;
    }

    .ffmp-day-header {
        background: #f0f0f0 !important;
        color: #000000 !important;
    }

    .ffmp-day-header h4 {
        color: #000000 !important;
        font-weight: bold;
    }

    .ffmp-table th {
        background: #e6e6e6 !important;
        color: #000000 !important;
    }

    .ffmp-table td {
        color: #000000 !important;
        border-bottom: 1px solid #ddd !important;
    }

    .ffmp-badge-rest {
        background: #eee !important;
        color: #000 !important;
        border: 1px solid #bbb;
    }

    .ffmp-btn-pdf,
    .ffmp-btn-submit,
    #ffmp-workout-form {
        display: none !important;
    }
}