/* 기본 설정 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* 테스트 컨테이너 */
.test-container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    max-width: 600px;
    width: 100%;
    text-align: center;
}

.test-container h1 {
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 32px;
}

.subtitle {
    color: #7f8c8d;
    margin-bottom: 30px;
    font-size: 16px;
}

/* 이벤트 미리보기 */
.event-preview {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: left;
}

.event-preview h3 {
    margin-bottom: 15px;
    color: #495057;
}

.event-details p {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* 이벤트 에디터 */
.event-editor {
    background: #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: left;
}

.event-editor h3 {
    margin-bottom: 15px;
    color: #495057;
}

.form-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.form-row label {
    min-width: 80px;
    font-weight: 500;
}

.form-row input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
}

.form-row input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.update-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.update-btn:hover {
    background: #218838;
    transform: translateY(-1px);
}

/* 테스트 버튼 */
.test-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 20px 40px;
    border-radius: 15px;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.test-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

/* 모달 스타일 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close:hover {
    color: #333;
    background-color: #f8f9fa;
}

.success-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.modal-content h2 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 24px;
}

.success-message {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 15px;
}

.profile-message {
    color: #28a745;
    font-weight: 500;
    margin-bottom: 30px;
}

/* 캘린더 섹션 */
.calendar-section {
    padding-top: 30px;
    border-top: 2px solid #f8f9fa;
    margin-top: 30px;
}

.calendar-section h3 {
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 20px;
}

.calendar-description {
    color: #6c757d;
    margin-bottom: 20px;
    font-size: 14px;
}

.calendar-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.calendar-btn {
    padding: 15px 20px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.google-btn {
    background-color: #4285f4;
    color: white;
}

.google-btn:hover {
    background-color: #3367d6;
    transform: translateY(-2px);
}

.outlook-btn {
    background-color: #0078d4;
    color: white;
}

.outlook-btn:hover {
    background-color: #106ebe;
    transform: translateY(-2px);
}

.yahoo-btn {
    background-color: #6001d2;
    color: white;
}

.yahoo-btn:hover {
    background-color: #4a0099;
    transform: translateY(-2px);
}

.ics-btn {
    background-color: #28a745;
    color: white;
}

.ics-btn:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

.close-btn {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 30px;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background-color: #5a6268;
}

/* 알림 스타일 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 3000;
    max-width: 400px;
    animation: slideInRight 0.3s ease-out;
}

.notification-success {
    background-color: #28a745;
}

.notification-info {
    background-color: #17a2b8;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 반응형 */
@media (max-width: 768px) {
    .test-container {
        padding: 30px 20px;
    }
    
    .calendar-buttons {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .form-row label {
        min-width: auto;
    }
    
    .form-row input {
        width: 100%;
    }
}