body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.container {
    text-align: center;
    padding: 20px;
    max-width: 600px;
    width: 100%;
}

.message {
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.app-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px;
    margin-bottom: 20px;
}

.donation-messages {
    margin-top: 24px;
    margin-bottom: 24px;
}

.donation-widget {
    margin-top: 5px;
}

/* 언어 토글 버튼 */
.lang-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    padding: 10px 18px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    color: #667eea;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lang-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* 방명록 스타일 */
.guestbook-section {
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.guestbook-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.guestbook-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.form-row {
    display: flex;
    gap: 10px;
}

.form-row input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
}

.form-row input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-row input::placeholder {
    color: #aaa;
}

.guestbook-form textarea {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 14px;
    resize: none;
    font-family: inherit;
    transition: all 0.3s ease;
    outline: none;
}

.guestbook-form textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.guestbook-form textarea::placeholder {
    color: #aaa;
}

.char-counter {
    text-align: right;
    font-size: 12px;
    color: #888;
    margin-top: -8px;
}

.submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 방명록 리스트 */
.guestbook-list {
    margin-top: 20px;
}

.guestbook-item {
    background: linear-gradient(145deg, #f8f9fa, #ffffff);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 12px;
    text-align: left;
    border: 1px solid #eee;
    position: relative;
    transition: all 0.3s ease;
}

.guestbook-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.guestbook-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.guestbook-author {
    font-weight: bold;
    color: #667eea;
    font-size: 14px;
}

.guestbook-date {
    font-size: 11px;
    color: #999;
}

.guestbook-content {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

.delete-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
    line-height: 1;
}

.delete-btn:hover {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

/* 페이징 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}

.page-btn {
    background: white;
    border: 2px solid #e0e0e0;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
    color: #666;
}

.page-btn:hover:not(:disabled) {
    border-color: #667eea;
    color: #667eea;
}

.page-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.page-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

.page-info {
    font-size: 13px;
    color: #666;
    padding: 0 10px;
}

.empty-message {
    color: #999;
    font-size: 14px;
    padding: 30px;
    text-align: center;
}

.error-message {
    color: #e74c3c;
    font-size: 14px;
    padding: 30px;
    text-align: center;
}

/* 모달 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    background: white;
    padding: 25px;
    border-radius: 16px;
    max-width: 350px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.modal-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 15px;
    box-sizing: border-box;
    outline: none;
    transition: all 0.3s ease;
}

.modal-input:focus {
    border-color: #667eea;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.modal-btn {
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.modal-btn.cancel {
    background: #f0f0f0;
    color: #666;
}

.modal-btn.cancel:hover {
    background: #e0e0e0;
}

.modal-btn.confirm {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.modal-btn.confirm:hover {
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

/* 로딩 스피너 */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

.spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #e0e0e0;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 모바일 반응형 */
@media (max-width: 480px) {
    .container {
        padding: 15px;
    }

    .message {
        padding: 20px;
    }

    .lang-toggle {
        top: 15px;
        right: 15px;
    }

    .lang-btn {
        padding: 8px 14px;
        font-size: 13px;
    }

    .app-buttons {
        gap: 20px !important;
        /* 인라인 스타일 오버라이드 */
    }

    .app-buttons img {
        width: 80px !important;
        height: 80px !important;
    }

    .form-row {
        flex-direction: column;
    }

    .guestbook-section {
        padding: 20px;
    }

    .guestbook-item {
        padding: 12px;
    }

    .modal-content {
        width: 85%;
        padding: 20px;
    }
}