/**
 * Certificate Verify Styles
 * 증명서 검증 관련 모든 CSS 스타일
 */

html body div.kaice-auth-container div.kaice-auth-form, 
html body .kaice-certificate-verify-container .kaice-certificate-verify-form, 
html body .kaice-certificate-verify-form, 
div.kaice-certificate-verify-form {
    background: #ffffff;
    border: 1px solid #ccc;
    border-radius: 0;
    overflow: visible; /* 캘린더가 잘리지 않도록 변경 */
    box-shadow: none;
    display: block;
}

html body div.kaice-certificate-verify-container > div, 
html body .kaice-certificate-verify-container > div, 
div.kaice-certificate-verify-container > div {
    width: 100%;
    max-width: 448px;
}

.kaice-certificate-verify-container {
    max-width: 448px;
    margin: 0px auto;
    background: #ffffff;
    font-family: 'S-CoreDream-3', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    overflow: visible; /* 캘린더가 컨테이너 밖으로 나올 수 있도록 */
}

.kaice-certificate-verify-form {
    width: 100%;
    overflow: visible; /* 캘린더가 폼 밖으로 나올 수 있도록 */
}

/* 폼 스타일 */
.kaice-form-section {
    margin-bottom: 25px;
}

/* 자격증 목록 스타일 */
.kaice-certificate-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.kaice-certificate-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #fff;
    transition: all 0.2s ease;
}

.kaice-certificate-item:hover {
    border-color: #408090;
    box-shadow: 0 2px 4px rgba(64, 128, 144, 0.1);
    transform: translateY(-1px);
}

.kaice-certificate-info {
    flex: 1;
}

.kaice-certificate-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.kaice-certificate-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.kaice-certificate-date,
.kaice-certificate-score,
.kaice-certificate-number {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.kaice-certificate-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.kaice-btn-success {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.kaice-btn-success:hover {
    background: #218838;
    border-color: #218838;
}

/* 빈 상태 스타일 */
.kaice-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.kaice-empty-icon {
    margin: 0 auto 16px;
    opacity: 0.5;
    color: #6c757d;
}

.kaice-empty-state p {
    margin: 0 0 20px 0;
    font-size: 16px;
    line-height: 1.6;
}

/* 검증 모달 스타일 */
.verification-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: all 0.3s ease;
}

.verification-modal-overlay.show {
    opacity: 1;
}

.verification-modal {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.8) translateY(50px);
    transition: all 0.3s ease;
    margin: 20px;
}

.verification-modal.show {
    transform: scale(1) translateY(0);
}

.verification-modal-header {
    text-align: center;
    padding: 30px 20px 20px;
    border-bottom: 1px solid #e9ecef;
    position: relative;
}

.verification-modal-header.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

.verification-modal-header.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
}

.modal-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
    animation: modalIconBounce 0.6s ease-out 0.2s both;
}

@keyframes modalIconBounce {
    0% {
        transform: scale(0) rotate(180deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.verification-modal-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: inherit;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    border: none;
    background: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    line-height: 1;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
    transform: scale(1.1);
}

.verification-modal-body {
    padding: 25px;
}

.success-message,
.error-message {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.4;
}

.success-message {
    color: #155724;
}

.error-message {
    color: #721c24;
}

.help-text {
    color: #6c757d;
    font-size: 14px;
    text-align: center;
    margin: 10px 0 0 0;
    line-height: 1.5;
}

.certificate-info {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row .label {
    font-weight: 600;
    color: #495057;
    flex: 0 0 100px;
    font-size: 14px;
}

.info-row .value {
    color: #333;
    flex: 1;
    text-align: right;
    font-size: 14px;
    word-break: break-word;
}

.verification-modal-footer {
    padding: 20px 25px 25px;
    text-align: center;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
}