/* Peer Test Page Styles */

.peer-test-page {
    min-height: calc(100vh - 70px);
    background-image: url('cpr.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding: 46px 63px 100px;
}

.peer-test-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(60, 90, 110, 0.5);
    z-index: 0;
}

.peer-test-page > * {
    position: relative;
    z-index: 1;
}

.page-title {
    font-family: 'Audiowide', sans-serif;
    font-size: 36px;
    color: #f7f7f7;
    margin-bottom: 10px;
}

.page-subtitle {
    font-family: 'Autour One', cursive;
    font-size: 13px;
    color: #e3e3e3;
    max-width: 500px;
    line-height: 1.5;
    margin-bottom: 46px;
}

.content-grid {
    display: grid;
    grid-template-columns: 870px 429px;
    gap: 38px;
    margin-bottom: 40px;
}

/* Observation Section */
.observation-section {
    background: rgba(153, 240, 199, 0.77);
    border-radius: 50px;
    padding: 27px 33px 35px;
}

.section-title {
    font-family: 'Audiowide', sans-serif;
    font-size: 24px;
    color: #494545;
    text-align: center;
    margin-bottom: 25px;
}

.observation-table {
    width: 100%;
    background: white;
    border-radius: 10px;
    margin-bottom: 25px;
    border-collapse: collapse;
    overflow: hidden;
}

.observation-table th,
.observation-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.observation-table th {
    font-family: 'Autour One', cursive;
    font-size: 12px;
    color: #494545;
    background: #f7f7f7;
    font-weight: normal;
}

.observation-table td {
    font-family: 'Autour One', cursive;
    font-size: 12px;
    color: #000;
}

.observation-table tbody tr:last-child td {
    border-bottom: none;
}

.observation-table th:nth-child(1),
.observation-table td:nth-child(1) {
    width: 40%;
}

.observation-table th:nth-child(2),
.observation-table th:nth-child(3),
.observation-table td:nth-child(2),
.observation-table td:nth-child(3) {
    width: 10%;
    text-align: center;
}

.observation-table th:nth-child(4),
.observation-table td:nth-child(4) {
    width: 40%;
}

.notes-input {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 4px 8px;
    font-family: 'Autour One', cursive;
    font-size: 11px;
}

.button-row {
    display: flex;
    gap: 17px;
    margin-bottom: 25px;
}

.generate-btn {
    background: #d9d9d9;
    border: none;
    border-radius: 10px;
    padding: 8px 20px;
    font-family: 'Autour One', cursive;
    font-size: 12px;
    color: #494545;
    cursor: pointer;
    height: 32px;
    flex: 1;
    max-width: 280px;
    width: fit-content
}

.generate-btn:hover {
    background: #c9c9c9;
}

.clear-btn {
    background: #d9d9d9;
    border: none;
    border-radius: 10px;
    padding: 8px 20px;
    font-family: 'Autour One', cursive;
    font-size: 12px;
    color: #494545;
    cursor: pointer;
    height: 32px;
    width: 80px;
}

.clear-btn:hover {
    background: #c9c9c9;
}

.recommendations-output {
    background: #f7f7f7;
    border-radius: 10px;
    padding: 10px 16px;
    margin-bottom: 25px;
    min-height: 32px;
}

.output-label {
    font-family: 'Autour One', cursive;
    font-size: 12px;
    color: #494545;
    text-align: center;
    font-weight: bold;
}

.recommendations-output > div:last-child {
    color: #000;
    text-align: left;
}

.description-text {
    font-family: 'Autour One', cursive;
    font-size: 12px;
    color: #000;
    line-height: 1.5;
    text-align: justify;
}

/* Copy Text Section */
.copy-text-section {
    background: rgba(153, 240, 199, 0.77);
    border-radius: 50px;
    padding: 27px 23px 35px;
}

.copy-box {
    background: rgba(240, 153, 240, 0.77);
    border-radius: 20px;
    padding: 25px 13px;
    min-height: 380px;
    margin-top: 25px;
}

.copy-box p {
    font-family: 'Autour One', cursive;
    font-size: 12px;
    color: #494545;
    line-height: 1.5;
    text-align: justify;
}

/* Back Button */
.back-button-container {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.back-btn {
    background: #81e5ff;
    border-radius: 10px;
    padding: 20px 60px;
    font-family: 'Autour One', cursive;
    font-size: 20px;
    color: #494545;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: background 0.3s ease;
}

.back-btn:hover {
    background: #6dd4ee;
}

/* Responsive Design */
@media (max-width: 1440px) {
    .content-grid {
        grid-template-columns: 60% 35%;
        gap: 30px;
    }
}

@media (max-width: 1024px) {
    .peer-test-page {
        padding: 30px 40px 80px;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .page-title {
        font-size: 28px;
    }

    .section-title {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .peer-test-page {
        padding: 20px 20px 60px;
    }

    .page-title {
        font-size: 24px;
    }

    .page-subtitle {
        font-size: 12px;
    }

    .section-title {
        font-size: 18px;
    }

    .observation-section,
    .copy-text-section {
        padding: 20px;
        border-radius: 30px;
    }

    .observation-table th,
    .observation-table td {
        padding: 8px;
        font-size: 11px;
    }

    .button-row {
        flex-direction: column;
    }

    .generate-btn {
        max-width: 100%;
    }
}
