/* AI Diet Planner PDF safe styles */

.ai-result-wrapper {
    width: 100%;
    max-width: 794px;
    margin: 20px auto;
    background: #ffffff;
    color: #111111;
    box-sizing: border-box;
}

.ai-result-wrapper * {
    box-sizing: border-box;
}

.diet-content {
    width: 100%;
    background: #ffffff;
    color: #111111;
}

.diet-plan {
    width: 100%;
    background: #ffffff;
    color: #111111;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

.diet-header {
    margin-bottom: 20px;
}

.diet-header h1 {
    margin: 0 0 8px;
}

.diet-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.macro-card {
    border: 1px solid #dddddd;
    padding: 12px;
    background: #ffffff;
    border-radius: 6px;
    min-width: 120px;
}

.diet-day {
    margin-bottom: 25px;
    page-break-inside: avoid;
    break-inside: avoid;
}

.diet-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0 20px;
    background: #ffffff;
}

.diet-table th,
.diet-table td {
    border: 1px solid #cccccc;
    padding: 7px;
    text-align: left;
    vertical-align: top;
    color: #111111;
}

.diet-table th {
    font-weight: 700;
}

.diet-section {
    margin: 20px 0;
    page-break-inside: avoid;
    break-inside: avoid;
}

.diet-disclaimer {
    margin-top: 25px;
    padding: 12px;
    border: 1px solid #dddddd;
    background: #ffffff;
}

.pdf-download-area {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #eeeeee;
    text-align: right;
}

.ai-loading {
    padding: 30px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #eeeeee;
}

.ai-loading-spinner {
    width: 30px;
    height: 30px;
    margin: 0 auto 12px;
    border: 3px solid #dddddd;
    border-top-color: #333333;
    border-radius: 50%;
    animation: aiDietSpin 0.8s linear infinite;
}

@keyframes aiDietSpin {
    to {
        transform: rotate(360deg);
    }
}

.error-message {
    padding: 20px;
    border: 1px solid #dddddd;
    background: #ffffff;
}