/* ====================================
   Admin Data Error Handling CSS
   ==================================== */

/* 에러 메시지 컨테이너 */
.error-container {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    display: none;
}

.error-container.active {
    display: block;
}

.error-container.error {
    background: #f8d7da;
    border-color: #f44336;
}

.error-container.success {
    background: #d4edda;
    border-color: #4CAF50;
}

.error-container.info {
    background: #d1ecf1;
    border-color: #2196F3;
}

/* 에러 헤더 */
.error-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.error-icon {
    font-size: 24px;
}

.error-container.error .error-icon {
    color: #f44336;
}

.error-container.success .error-icon {
    color: #4CAF50;
}

.error-container.info .error-icon {
    color: #2196F3;
}

.error-title {
    font-size: 16px;
    font-weight: 600;
    color: #212121;
}

/* 에러 메시지 */
.error-message {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 12px;
}

.error-details {
    font-size: 12px;
    color: #757575;
    background: rgba(0, 0, 0, 0.05);
    padding: 10px;
    border-radius: 4px;
    font-family: monospace;
    margin-bottom: 12px;
    overflow-x: auto;
}

/* 에러 액션 버튼 */
.error-actions {
    display: flex;
    gap: 8px;
}

.error-actions button {
    padding: 8px 16px;
    font-size: 13px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.retry-btn {
    background: #667eea;
    color: white;
}

.retry-btn:hover {
    background: #5568d3;
}

.dismiss-btn {
    background: #e0e0e0;
    color: #555;
}

.dismiss-btn:hover {
    background: #d0d0d0;
}

/* 토스트 알림 */
.toast-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    z-index: 9999;
    animation: slideInUp 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.toast-notification.show {
    opacity: 1;
    transform: translateY(0);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.toast-notification.error {
    border-left: 4px solid #f44336;
}

.toast-notification.success {
    border-left: 4px solid #4CAF50;
}

.toast-notification.info {
    border-left: 4px solid #2196F3;
}

.toast-notification.warning {
    border-left: 4px solid #ff9800;
}

.toast-icon {
    font-size: 20px;
}

.toast-notification.error .toast-icon {
    color: #f44336;
}

.toast-notification.success .toast-icon {
    color: #4CAF50;
}

.toast-notification.info .toast-icon {
    color: #2196F3;
}

.toast-notification.warning .toast-icon {
    color: #ff9800;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.toast-message {
    font-size: 13px;
    color: #757575;
}

.toast-close {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    width: 24px;
    height: 24px;
}

.toast-close:hover {
    color: #666;
}

/* 빈 상태 메시지 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #666;
}

.empty-state-message {
    font-size: 14px;
    margin-bottom: 20px;
}

.empty-state-action button {
    padding: 12px 24px;
    font-size: 14px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.empty-state-action button:hover {
    background: #5568d3;
}
