/* 
 * Admin Phase 3 Styles
 * 분리 날짜: 2025-07-09
 * 설명: admin.html에서 분리된 Phase 3 고급 UX 스타일
 */

/* 단순화된 관리자 페이지 스타일 */
        body {
            background: #f5f7fa;
            min-height: 100vh;
        }
        
        .container {
            position: relative;
            z-index: 1;
        }
        
        /* 관리자 섹션 */
        .admin-section {
            background: white;
            border-radius: 12px;
            margin-bottom: 20px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            overflow: hidden;
        }
        
        .section-header {
            padding: 20px 25px;
            background: #f8f9fa;
            border-bottom: 1px solid #eee;
        }
        
        .section-title {
            font-size: 20px;
            color: #2E86AB;
            margin: 0;
        }
        
        .section-content {
            padding: 25px;
        }
        
        .section-description {
            color: #666;
            font-size: 14px;
            margin-bottom: 25px;
            line-height: 1.6;
            padding: 15px;
            background: #f8f9fa;
            border-radius: 8px;
            border-left: 4px solid #e9ecef;
        }
        
        /* 라벨 관리 */
        .label-item {
            background: #f8f9fa;
            padding: 15px;
            margin-bottom: 10px;
            border-radius: 8px;
            border-left: 4px solid #28a745;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .label-code {
            font-size: 18px;
            font-weight: bold;
            color: #28a745;
            margin-right: 10px;
        }
        
        .label-nickname {
            color: #666;
            font-style: italic;
        }
        
        /* 음원 관리 */
        .upload-zone {
            border: 3px dashed #e67e22;
            border-radius: 12px;
            padding: 40px 20px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            background: #fff8f0;
            margin: 20px 0;
        }
        
        .upload-zone:hover {
            border-color: #d35400;
            background: #ffeaa7;
        }
        
        .upload-zone.dragover {
            border-color: #28a745;
            background: #d4edda;
        }
        
        .sound-item {
            background: #fff8f0;
            padding: 15px;
            margin-bottom: 10px;
            border-radius: 8px;
            border-left: 4px solid #e67e22;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .sound-item.default {
            border-left-color: #28a745;
            background: #d4edda;
        }
        
        /* 스케줄 관리 */
        .schedule-table-container {
            max-height: 400px;
            overflow-y: auto;
            border: 1px solid #dee2e6;
            border-radius: 8px;
        }
        
        /* 시스템 설정 */
        .default-sound-setting {
            background: #f3e5f5;
            padding: 20px;
            border-radius: 12px;
            margin-bottom: 20px;
            border: 1px solid #e1bee7;
        }
        
        /* 버튼 스타일 */
        .btn {
            padding: 10px 20px;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.3s ease;
        }
        
        .btn-primary {
            background: #2E86AB;
            color: white;
        }
        
        .btn-primary:hover {
            background: #1B5E7D;
        }
        
        .btn-success {
            background: #28a745;
            color: white;
        }
        
        .btn-success:hover {
            background: #218838;
        }
        
        .btn-danger {
            background: #dc3545;
            color: white;
        }
        
        .btn-danger:hover {
            background: #c82333;
        }
        
        .btn-secondary {
            background: #6c757d;
            color: white;
        }
        
        .btn-secondary:hover {
            background: #545b62;
        }
        
        /* 모달 */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.6);
        }
        
        .modal.active {
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .modal-content {
            background: white;
            padding: 30px;
            border-radius: 12px;
            width: 90%;
            max-width: 450px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
        }
        
        /* 알림 */
        #alert-container {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 1001;
        }
        
        .alert {
            padding: 15px 20px;
            margin-bottom: 10px;
            border-radius: 8px;
            color: white;
            font-weight: 600;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            animation: slideInRight 0.3s ease-out;
        }
        
        @keyframes slideInRight {
            from { transform: translateX(100px); opacity: 0; }
            to { transform: translateX(0); opacity: 1; }
        }
        
        .alert-success { background: #28a745; }
        .alert-danger { background: #dc3545; }
        .alert-warning { 
            background: #ffc107; 
            color: #333;
        }
        .alert-info { background: #17a2b8; }
        
        /* 관리자 헤더 */
        .admin-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
            padding: 20px;
            background: linear-gradient(135deg, #2E86AB, #A23B72);
            color: white;
            border-radius: 12px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        }
        
        .admin-nav {
            display: flex;
            gap: 10px;
            margin-top: 10px;
        }
        
        .nav-btn {
            padding: 8px 16px;
            background: rgba(255,255,255,0.2);
            color: white;
            text-decoration: none;
            border-radius: 6px;
            font-size: 14px;
            transition: all 0.2s;
        }
        
        .nav-btn:hover {
            background: rgba(255,255,255,0.3);
        }
        
        .logout-btn {
            background: rgba(255,255,255,0.2);
            color: white;
            border: 2px solid rgba(255,255,255,0.3);
            padding: 10px 20px;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .logout-btn:hover {
            background: rgba(255,255,255,0.3);
        }
        
        /* 폼 그룹 */
        .form-group {
            margin-bottom: 20px;
        }
        
        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: bold;
            color: #333;
        }
        
        .form-group input, .form-group select {
            width: 100%;
            padding: 10px;
            border: 2px solid #ddd;
            border-radius: 6px;
            font-size: 16px;
            box-sizing: border-box;
        }
        
        .form-group input:focus, .form-group select:focus {
            outline: none;
            border-color: #2E86AB;
        }
        
        /* 반응형 */
        @media (max-width: 768px) {
            .admin-header {
                flex-direction: column;
                text-align: center;
                gap: 15px;
            }
            
            .admin-nav {
                flex-wrap: wrap;
                justify-content: center;
            }
        }

/* 
 * Admin Glass Styles - Phase 4
 * Premium Glassmorphism for Admin Panel
 */

/* Admin Page Specific */
.admin-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 50%, #BAE6FD 100%);
    position: relative;
}

/* Admin Header Glass */
.admin-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 30px;
    margin-bottom: 40px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.admin-header h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #0EA5E9 0%, #1E40AF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.admin-nav {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.nav-btn {
    background: rgba(14, 165, 233, 0.1);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--ocean-700);
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.nav-btn:hover {
    background: rgba(14, 165, 233, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

/* Admin Sections Glass */
.admin-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    margin-bottom: 30px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.admin-section:hover {
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.section-header {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.05) 0%, rgba(37, 99, 235, 0.05) 100%);
    padding: 25px 30px;
    border-bottom: 1px solid rgba(14, 165, 233, 0.1);
}

.section-title {
    font-size: 1.5rem;
    color: var(--ocean-700);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-content {
    padding: 30px;
}

.section-description {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.05) 0%, rgba(125, 211, 252, 0.05) 100%);
    padding: 20px;
    border-radius: 16px;
    border-left: 4px solid var(--sky-500);
    margin-bottom: 30px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Label Management Glass */
.label-item {
    background: white;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.label-item:hover {
    border-color: var(--sky-300);
    transform: translateX(5px);
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.1);
}

.label-code {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ocean-600);
    margin-right: 15px;
}

.label-nickname {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Upload Zone Glass */
.upload-zone {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.05) 0%, rgba(125, 211, 252, 0.05) 100%);
    border: 3px dashed rgba(14, 165, 233, 0.3);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.upload-zone::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.upload-zone:hover::before {
    opacity: 1;
}

.upload-zone:hover {
    border-color: var(--sky-500);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(125, 211, 252, 0.1) 100%);
    transform: scale(1.02);
}

.upload-zone.dragover {
    border-color: var(--ocean-500);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.2) 0%, rgba(37, 99, 235, 0.2) 100%);
}

/* Sound Item Glass */
.sound-item {
    background: white;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.sound-item.default {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(5, 150, 105, 0.05) 100%);
    border-color: rgba(16, 185, 129, 0.2);
}

.sound-item:hover {
    border-color: var(--sky-300);
    transform: translateX(5px);
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.1);
}

/* Default Sound Setting */
.default-sound-setting {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(99, 102, 241, 0.05) 100%);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    margin-bottom: 30px;
}

.default-sound-setting h4 {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Schedule Table Glass */
.schedule-table-container {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Enhanced Form Controls */
.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid transparent;
    border-radius: 12px;
    background: rgba(241, 245, 249, 0.8);
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--sky-500);
    background: white;
    box-shadow: 
        0 0 0 4px rgba(14, 165, 233, 0.1),
        0 4px 20px rgba(14, 165, 233, 0.2);
}

/* Alert Enhancement */
#alert-container {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 9999;
    max-width: 400px;
}

.alert {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 20px 24px;
    border-radius: 16px;
    margin-bottom: 15px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    font-weight: 500;
    animation: slideInRight 0.4s ease-out;
    border: 1px solid transparent;
}

.alert-success {
    border-color: rgba(34, 197, 94, 0.2);
    color: #059669;
}

.alert-danger {
    border-color: rgba(239, 68, 68, 0.2);
    color: #DC2626;
}

.alert-warning {
    border-color: rgba(251, 191, 36, 0.2);
    color: #D97706;
}

.alert-info {
    border-color: rgba(14, 165, 233, 0.2);
    color: #0284C7;
}

@keyframes slideInRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Nickname Modal Glass */
#nicknameModal .modal-content {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

#nicknameModal h2 {
    font-size: 1.75rem;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 30px;
}
