/* styles.css - 스타일시트 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #003366 0%, #002244 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    max-width: 700px;
    width: 100%;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    color: #333;
    margin-bottom: 10px;
    text-align: center;
    font-size: 2.5em;
    background: linear-gradient(135deg, #003366 0%, #002244 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
}

/* 테이블 스타일 */
.form-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.form-table tr {
    border-bottom: 1px solid #e0e0e0;
}

.form-table tr:last-child {
    border-bottom: none;
}

.form-table th {
    background: #003366;
    color: white;
    padding: 15px;
    text-align: center;
    width: 25%;
    font-weight: 600;
    font-size: 14px;
}

.form-table td {
    padding: 10px 15px;
    background: white;
}

/* 입력 필드 스타일 */
input[type="text"],
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: 'Noto Sans KR', sans-serif;
}

input[type="text"]:focus,
textarea:focus {
    outline: none;
    border-color: #003366;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

/* 파일 입력 스타일 */
.file-input-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

.file-input-wrapper input[type=file] {
    position: absolute;
    left: -9999px;
}

.file-input-label {
    display: block;
    padding: 10px;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
    font-size: 14px;
}

.file-input-label:hover {
    background: #e9ecef;
    border-color: #003366;
}

.file-selected {
    background: #e7f1ff;
    border-color: #003366;
    color: #003366;
}

/* 버튼 스타일 */
button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #003366 0%, #002244 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

button:active {
    transform: translateY(0);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 로딩 애니메이션 */
.loading {
    display: none;
    text-align: center;
    margin-top: 20px;
    color: #003366;
}

.loading.active {
    display: block;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #003366;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 헬퍼 텍스트 */
.helper-text {
    font-size: 11px;
    color: #888;
    margin-top: 5px;
}

/* 메시지 스타일 */
.success-message {
    display: none;
    padding: 15px;
    background: #d4edda;
    color: #155724;
    border-radius: 10px;
    margin-top: 20px;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.error-message {
    display: none;
    padding: 15px;
    background: #f8d7da;
    color: #721c24;
    border-radius: 10px;
    margin-top: 20px;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .form-table th {
        font-size: 12px;
        padding: 10px;
    }
    
    .form-table td {
        padding: 8px 10px;
    }
    
    input[type="text"],
    textarea {
        font-size: 13px;
        padding: 8px;
    }
    
    button {
        font-size: 14px;
        padding: 12px;
    }
}