
@font-face {
    font-family: 'YekanBakhFaNum-SemiBold';
    src: url('static/css/YekanBakhFaNum-Regular.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
}

body {
    font-family: 'YekanBakhFaNum-SemiBold', sans-serif;
    background-color: #f3f4f6;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: transparent;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    z-index: 1000;
    height: 90px;
}

.header-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.page {
    width: 100%;
    max-width: 1200px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
    box-sizing: border-box;
    margin: 0 auto;
}

.page-first {
    padding-top: 0;
    padding-bottom: 0;
}

.page:not(.page-first) {
    padding-top: 100px;
}

.content-box {
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    padding: 1.5rem;
    background-color: #ffffff;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.first-page-content-box {
    padding: 0;
    border: none;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.cover-image {
    width: 100%;
    height: calc(100vh - 80px);
    object-fit: contain;
    background-color: #e0e0e0;
    border-radius: 0;
    image-rendering: auto;
}

.cover-text {
    text-align: center;
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 1rem;
    width: 100%;
    box-sizing: border-box;
    height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cover-text p {
    margin: 0.25rem 0;
    font-size: 1rem;
}

.cover-text a {
    color: #ffffff;
    text-decoration: none;
}

.cover-text a:hover {
    text-decoration: underline;
}

.half-image {
    width: 100%;
    max-height: 40vh;
    object-fit: contain;
    background-color: #f0f0f0;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.welcome-text {
    padding: 1rem 0;
    text-align: justify;
    width: 100%;
}

.welcome-text h2 {
    text-align: center;
}

.report-content {
    padding: 1.5rem;
    width: 100%;
}

.report-content h1, .report-content h2, .report-content h3 {
    color: #1f2937;
    font-weight: bold;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.report-content h1 { font-size: 1.875rem; }
.report-content h2 { font-size: 1.5rem; }
.report-content h3 { font-size: 1.25rem; }

.styled-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.9em;
    font-family: 'YekanBakhFaNum-SemiBold', Tahoma, sans-serif;
    min-width: 320px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    direction: rtl;
    border-radius: 8px;
    overflow: hidden;
}

.styled-table thead tr {
    background-color: #6C757D;
    color: #ffffff;
    text-align: center;
    font-weight: bold;
}

.styled-table th,
.styled-table td {
    padding: 10px 12px;
    text-align: right;
    border-bottom: 1px solid #e0e0e0;
    border-left: 1px solid #e0e0e0;
}

.styled-table th:last-child,
.styled-table td:last-child {
    border-left: none;
}

.styled-table tbody tr {
    background-color: #f8f9fa;
}

.styled-table tbody tr:nth-of-type(even) {
    background-color: #f1f3f5;
}

.styled-table tbody tr:last-of-type td {
    border-bottom: none;
}

.styled-table td.evaluation-too-high {
    color: #dc3545;
    font-weight: bold;
    text-align: center;
}

.styled-table td.evaluation-normal {
    color: #28a745;
    text-align: center;
}

.styled-table td.evaluation-too-low {
    color: #ffc107;
    font-weight: bold;
    text-align: center;
}

.styled-table td small {
    font-size: 0.8em;
    color: #555;
    display: block;
    margin-top: 2px;
}

.styled-table.cols-4 th:nth-child(1) { width: 25%; }
.styled-table.cols-4 th:nth-child(2) { width: 15%; text-align: center; }
.styled-table.cols-4 td:nth-child(2) { text-align: center; }
.styled-table.cols-4 th:nth-child(3) { width: 15%; text-align: center; }
.styled-table.cols-4 td:nth-child(3) { text-align: center; }
.styled-table.cols-4 th:nth-child(4) { width: 45%; }

.styled-table.cols-5 th:nth-child(1) { width: 20%; }
.styled-table.cols-5 th:nth-child(2) { width: 10%; text-align: center; }
.styled-table.cols-5 td:nth-child(2) { text-align: center; }
.styled-table.cols-5 th:nth-child(3) { width: 15%; text-align: center; }
.styled-table.cols-5 td:nth-child(3) { text-align: center; }
.styled-table.cols-5 th:nth-child(4) { width: 10%; text-align: center; }
.styled-table.cols-5 td:nth-child(4) { text-align: center; }
.styled-table.cols-5 th:nth-child(5) { width: 45%; }

.original-image {
    width: 100%;
    max-width: 700px;
    height: auto;
    object-fit: contain;
    border-radius: 0.5rem;
    margin: 1.5rem auto;
    display: block;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #f0f0f0;
}

.bold-header {
    font-weight: bold;
}

.report-text {
    margin-bottom: 1rem;
    line-height: 1.7;
    text-align: justify;
}

ul {
    list-style-type: disc;
    margin-right: 2rem;
    margin-bottom: 1rem;
    padding-right: 0;
}

ul ul {
    list-style-type: circle;
    margin-right: 2rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

li {
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .page {
        padding: 1rem 0.5rem;
    }
    .page:not(.page-first) {
        padding-top: 80px;
    }
    .header-icon {
        width: 60px;
        height: 60px;
    }
    .report-content h1 { font-size: 1.5rem; }
    .report-content h2 { font-size: 1.25rem; }
    .report-content h3 { font-size: 1.125rem; }
    .styled-table th, .styled-table td {
        padding: 8px 10px;
        font-size: 0.85em;
        width: auto !important;
    }
    .styled-table.cols-4 th:nth-child(4), .styled-table.cols-4 td:nth-child(4),
    .styled-table.cols-5 th:nth-child(5), .styled-table.cols-5 td:nth-child(5) {
        min-width: 120px;
    }
    .cover-image {
        height: calc(100vh - 70px);
    }
    .cover-text {
        height: 70px;
        padding: 0.5rem;
    }
    .cover-text p {
        font-size: 0.9rem;
    }
}
