/* Custom CSS for calc_auth.jsp */

/* Title Styles */
.calc-auth-title-section {
    width: 100%;
}

.calc-auth-main-title {
    font-family: 'Pretendard', -apple-system, sans-serif;
    font-weight: 700;
    font-size: 28px;
    line-height: 1.193359375em;
    color: #2B2B2B;
    margin-bottom: 8px;
}

.calc-auth-sub-title {
    font-family: 'Pretendard', -apple-system, sans-serif;
    font-weight: 300;
    font-size: 22px;
    line-height: 1.4515443281693892em;
    color: #141414;
}

/* Container for centering content */
.calc-auth-container {
    max-width: 888px;
    margin: auto;
}

.calc-auth-content {
    width: 100%;
}

/* Action Cards */
.action-card {
    position: relative;
    background-color: #ffffff;
    border: 1px solid #4da1e7;
    border-radius: 20px;
    width: 429px;
    height: 342px;
    padding: 36px 40px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;
    overflow: hidden;
    box-sizing: border-box;
}

.card-icon-wrapper {
    position: absolute;
    top: 38px;
    left: 50%;
    transform: translateX(-50%);
    width: 190px;
    height: 190px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card-content {
    background-color: #29588d;
    border-radius: 14px;
    padding: 16px 0;
    text-align: center;
    z-index: 2;
    position: relative;
    border: none;
    width: 100%;
    height: 57px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* 버튼 비활성화 스타일 */
.card-content.disabled {
    background-color: #F6F6F6 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

.card-content.disabled .card-text {
    color: #7D7D7D !important;
}

/* 승인대기중 스타일 */
.card-content.pending {
    background-color: #FF9800 !important;
    cursor: default !important;
}

.card-content.pending .card-text {
    color: #ffffff !important;
}

.card-text {
    color: #ffffff;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.193359375em;
    letter-spacing: -0.02em;
}

/* Evaluation Section Wrapper - for centering */
.evaluation-section-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    flex-direction: column;
}

/* Evaluation Section */
.evaluation-section {
    background-color: #fafdff;
    border: 6px solid #eef7ff;
    border-radius: 30px;
    width: 1086px;
    padding: 32px 34px;
    box-sizing: border-box;
    position: relative;
}

.section-header {
    position: relative;
    top: 0;
    right: 400px;
    margin: 0;
    z-index: 1;
}

.section-header-label {
    display: inline-block;
    background-color: #eef7ff;
    color: #4da1e7;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.193359375em;
    padding: 10px 24px;
    border-radius: 16px 16px 0 0;
}

.evaluation-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 18px;
    flex-wrap: nowrap;
    height: auto;
    margin-top: 0;
    padding-top: 0;
}

.eval-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 130px;
    /* 클릭 이벤트 비활성화 */
    /* cursor: pointer; */
    transition: all 0.3s ease;
    padding: 0;
}

/* 클릭 이벤트 비활성화로 hover 효과 제거 */
/*
.eval-item:hover {
    opacity: 0.7;
}
*/

.eval-icon {
    width: 70px;
    height: 70px;
    background-color: #FFFFFF;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.eval-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.eval-text {
    color: #535353;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3333333333333333em;
    text-align: center;
    white-space: normal;
    word-break: keep-all;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .evaluation-section {
        width: 100%;
        max-width: 1086px;
        height: auto;
        min-height: 172px;
    }
    
    .evaluation-section-wrapper {
        padding: 0 20px;
    }
}

@media (max-width: 992px) {
    .calc-auth-container {
        max-width: 100%;
        padding: 0 20px;
    }
    
    .action-card {
        width: 100%;
        max-width: 429px;
        height: auto;
        min-height: 342px;
    }
    
    .card-text {
        font-size: 20px;
    }
    
    .evaluation-section {
        width: 100%;
        height: auto;
    }
    
    .evaluation-grid {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .eval-item {
        min-width: calc(33.333% - 8px);
    }
}

@media (max-width: 768px) {
    .calc-auth-container {
        padding: 0 15px;
    }
    
    .action-card {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 280px;
        padding-top: 30px;
        padding-right: 30px;
        padding-bottom: 20px;
        padding-left: 30px;
    }
    
    .card-text {
        font-size: 18px;
    }
    
    .evaluation-section {
        width: 100%;
        height: auto;
        padding-top: 24px;
        padding-right: 20px;
        padding-bottom: 24px;
        padding-left: 20px;
    }
    
    .evaluation-grid {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .eval-item {
        min-width: calc(50% - 5px);
    }
    
    .eval-icon {
        width: 45px;
        height: 45px;
    }
    
    .eval-icon i {
        font-size: 24px;
    }
    
    .eval-text {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .evaluation-section {
        width: 100%;
        height: auto;
        padding-top: 20px;
        padding-right: 15px;
        padding-bottom: 20px;
        padding-left: 15px;
    }
    
    .evaluation-grid {
        gap: 8px;
    }
    
    .eval-item {
        min-width: calc(50% - 4px);
    }
    
    .action-card {
        min-height: 250px;
        padding-top: 24px;
        padding-right: 20px;
        padding-bottom: 16px;
        padding-left: 20px;
    }
    
    .card-text {
        font-size: 16px;
    }
    
    .eval-icon {
        width: 40px;
        height: 40px;
    }
    
    .eval-icon i {
        font-size: 20px;
    }
    
    .eval-text {
        font-size: 12px;
    }
}

/* Modal Styles */
.modal-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1050;
    display: flex;
}

.no-display {
    display: none !important;
}

.modal-inner {
    background-color: #fff;
    border-radius: 16px;
    max-width: 90%;
    max-height: 90%;
    overflow-y: auto;
    box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.15);
}

.modal-eval-list {
    width: auto;
    min-width: 600px;
    max-height: 85%;
    overflow-y: auto;
}

.eval-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 30px 20px;
    border-bottom: 1px solid #eaeaea;
}

.eval-modal-title {
    font-family: 'Pretendard', -apple-system, sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 1.193359375em;
    color: #2B2B2B;
}

.eval-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.eval-modal-close:hover {
    opacity: 0.7;
}

/* Evaluation List Modal Content */
.eval-list-modal {
    padding: 20px 30px;
}

/* Evaluation Table Styles */
.eval-table-wrapper {
    width: 100%;
}

.eval-table {
    width: 100%;
    border-collapse: collapse;
}

.eval-table thead tr {
    background-color: #e4f3ff;
}

.eval-table thead th {
    font-family: 'Pretendard', -apple-system, sans-serif;
    font-weight: 700;
    font-size: 12px;
    line-height: 1.193359375em;
    color: #2B2B2B;
    padding: 0 20px;
    height: 34px;
    text-align: center;
    border-top: 1px solid #95c9f5;
    border-bottom: 1px solid #95c9f5;
}

.eval-table tbody tr {
    border-bottom: 1px solid #eaeaea;
    transition: background-color 0.2s ease;
}

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

.eval-table tbody td {
    font-family: 'Pretendard', -apple-system, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.193359375em;
    color: #494949;
    padding: 16px 20px;
    text-align: left;
    vertical-align: middle;
}

.eval-table tbody td:first-child {
    width: 200px;
}

.eval-table tbody td:nth-child(2) {
    width: 180px;
}

.eval-table tbody td:nth-child(3) {
    width: 100px;
    text-align: center;
}

.eval-table tbody td:nth-child(4) {
    width: 70px;
    text-align: center;
}

.eval-table tbody td:nth-child(5) {
    width: 50px;
    text-align: center;
}

/* Status Badge */
.status-badge {
    display: inline-block;
    font-family: 'Pretendard', -apple-system, sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.193359375em;
    text-align: center;
}

.status-badge.status-progress {
    color: #383838;
}

.status-badge.status-completed {
    color: #4da1e7;
    font-weight: 700;
}

/* Delete Button */
.delete-eval-btn {
    font-family: 'Pretendard', -apple-system, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.193359375em;
    color: #969696;
    background-color: transparent;
    border: none;
    border-bottom: 0.7px solid #969696;
    padding: 0 0 0.7px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.delete-eval-btn:hover {
    color: #ff5b5b;
    border-bottom-color: #ff5b5b;
}

/* Checkbox Styles (deprecated - replaced with result button) */
.eval-checkbox {
    width: 20px;
    height: 20px;
    border: 0.67px solid #dddddd;
    border-radius: 3px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
    transition: all 0.2s ease;
}

.eval-checkbox:checked {
    background-color: #ffffff;
    border-color: #4da1e7;
}

.eval-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 30%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 3.58px;
    height: 7.89px;
    border: solid #4da1e7;
    border-width: 0 1.5px 1.5px 0;
}

/* 진행완료 행 스타일 */
.eval-table tbody tr.eval-row-completed {
    border-bottom: 1px solid #95c9f5;
}

.eval-table tbody tr.eval-row-completed td {
    border-bottom: none;
}

/* 결과보기 버튼 스타일 */
.eval-result-btn {
    background-color: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.eval-result-btn:hover {
    opacity: 0.7;
}

.eval-result-btn svg {
    width: 20px;
    height: 20px;
}

/* Action Buttons for Auth Intro */
.auth-request-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 64px;
}

.btn-back,
.btn-submit {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 700;
    font-size: 20px;
    padding: 16px 40px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 187px;
}

.btn-back {
    background-color: #E4F3FF;
    color: #29588D;
}

.btn-back:hover {
    background-color: #D0EBFF;
}

.btn-submit {
    background-color: #29588D;
    color: #FCFCFC;
    font-weight: 800;
}

.btn-submit:hover {
    background-color: #1E4570;
}

.btn-submit:disabled {
    background-color: #D8D8D8;
    color: #999999;
    cursor: not-allowed;
}
