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

body {
    font-family: 'Noto Sans KR', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.logo-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.main {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.board-container {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.board-header {
    text-align: center;
    margin-bottom: 30px;
}

.board-header h1 {
    color: #333;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.support-board {
    position: relative;
    width: 100%;
    height: 600px;
    background: #f8f9ff;
    border: 3px dashed #ddd;
    border-radius: 15px;
    overflow: hidden;
}

/* 포스트잇 스타일 */
.post-it {
    position: absolute;
    width: 200px;
    min-height: 120px;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    cursor: grab;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
    transition: transform 0.2s ease;
    z-index: 10;
}

.post-it:hover {
    transform: scale(1.05) rotate(0deg) !important;
    z-index: 100;
}

.post-it:active {
    cursor: grabbing;
    z-index: 1000;
}

.post-it.admin-mode {
    border: 2px solid #ff4757;
    cursor: pointer;
}

.post-it.admin-mode::after {
    content: "🗑️";
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.post-it .nickname {
    font-weight: 700;
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 13px;
}

.post-it .message {
    color: #34495e;
    font-size: 12px;
}

/* 포스트잇 색상 */
.post-it.yellow {
    background: linear-gradient(135deg, #fff9c4, #f7dc6f);
}

.post-it.pink {
    background: linear-gradient(135deg, #fce4ec, #f8bbd9);
}

.post-it.blue {
    background: linear-gradient(135deg, #e3f2fd, #90caf9);
}

.post-it.green {
    background: linear-gradient(135deg, #e8f5e8, #a5d6a7);
}

.post-it.orange {
    background: linear-gradient(135deg, #fff3e0, #ffb74d);
}

.post-it.purple {
    background: linear-gradient(135deg, #f3e5f5, #ce93d8);
}

/* 입력 섹션 */
.input-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.message-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.help-text {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

.warning-text {
    display: block;
    margin-top: 5px;
    color: #e74c3c;
    font-size: 13px;
    font-weight: 500;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
}

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

/* 관리자 버튼 */
.admin-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #2c3e50;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 12px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
}

.admin-btn:hover {
    background: #34495e;
    transform: scale(1.1);
}

/* 모달 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    position: relative;
}

.close {
    position: absolute;
    right: 15px;
    top: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

/* 관리자 패널 */
.admin-panel {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #2c3e50;
    color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1500;
}

.admin-logout-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

/* 로딩 스피너 */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 3000;
}

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

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

/* 알림 */
.notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 25px;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    z-index: 2500;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.notification.show {
    opacity: 1;
}

.notification.success {
    background: #27ae60;
}

.notification.error {
    background: #e74c3c;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .main {
        gap: 20px;
    }
    
    .board-container,
    .input-section {
        padding: 20px;
    }
    
    .board-header h1 {
        font-size: 1.5rem;
    }
    
    .support-board {
        height: 400px;
    }
    
    .post-it {
        width: 160px;
        min-height: 100px;
        padding: 12px;
        font-size: 12px;
    }
    
    .post-it .nickname {
        font-size: 11px;
    }
    
    .post-it .message {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .logo-image {
        max-height: 300px;
    }
    
    .board-container,
    .input-section {
        padding: 15px;
    }
    
    .support-board {
        height: 300px;
    }
    
    .post-it {
        width: 140px;
        min-height: 90px;
        padding: 10px;
    }
}