/**
 * DAPA 관리자 CSS 스타일
 *
 * 목적: list.skin.html.php에서 CSS 스타일 분리
 * 기능: 관리자 UI, 대시보드, 모달, 탭 등의 스타일
 * 작성일: 2025-01-13
 */

/* ============================================================================
   토글 스위치 스타일 (반기 마감/취소용)
   ============================================================================ */
.toggle-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #28a745;
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

input:disabled + .toggle-slider {
    background-color: #6c757d;
    cursor: not-allowed;
}

.status-text {
    font-size: 12px;
    font-weight: 500;
    color: #495057;
    min-width: 40px;
}

/* ============================================================================
   Bootstrap 오버라이드 - DAPA 관리자 영역에서만 70% 폭 적용
   ============================================================================ */
/* DAPA 전용 컨테이너만 스타일 적용 - 100% 폭 */
.board-container {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto !important;
}

/* ============================================================================
   모달 스타일
   ============================================================================ */
.modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 50px auto;
    padding: 0;
    border: 1px solid #888;
    width: 90%;
    max-width: none;
    border-radius: 5px;
}

.modal-header {
    padding: 15px 20px;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
}

.modal-body {
    padding: 20px;
}

/* ============================================================================
   대시보드 스타일
   ============================================================================ */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.dashboard-card {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.1s ease;
}

.dashboard-card:hover {
    transform: translateY(-1px);
}

.dashboard-card .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.dashboard-card .card-body {
    padding: 10px;
    text-align: center;
}

.dashboard-card .card-value {
    font-size: 1.4em;
    font-weight: bold;
    color: #333;
    line-height: 1.2;
}

.dashboard-card .card-subtitle {
    font-size: 0.8em;
    color: #666;
    margin-top: 2px;
}

.quick-actions {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    border-left: 3px solid #667eea;
    margin-top: 10px;
}

.quick-actions h4 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 14px;
}

.quick-actions .action-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.quick-actions .btn {
    padding: 6px 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.1s ease;
    font-size: 11px;
}

/* ============================================================================
   버튼 스타일
   ============================================================================ */
.btn-primary { background: #007bff; }
.btn-success { background: #28a745; }
.btn-info { background: #17a2b8; }
.btn-warning { background: #ffc107; color: #333; }
.btn-secondary { background: #6c757d; }

.btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-sm {
    padding: 2px 4px;
    font-size: 9px;
}

/* ============================================================================
   회원 관리 스타일
   ============================================================================ */
.members-controls {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.search-controls {
    display: flex;
    gap: 6px;
    align-items: center;
}

.form-control, .form-select {
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 12px;
}

.form-control {
    min-width: 150px;
}

.members-table-container {
    background: #fff;
    border-radius: 4px;
    padding: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.members-stats {
    display: flex;
    gap: 15px;
    margin: 8px 0;
    padding: 6px;
    background: #f8f9fa;
    border-radius: 3px;
    font-size: 12px;
}

.stats-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.stats-label {
    color: #666;
    font-size: 11px;
}

.stats-value {
    font-weight: 600;
    color: #333;
}

.members-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    font-size: 11px;
}

.members-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 4px;
    font-weight: 600;
    text-align: center;
    font-size: 10px;
}

.members-table td {
    padding: 6px 4px;
    border-bottom: 1px solid #eee;
    text-align: center;
    font-size: 10px;
}

.member-id {
    text-align: left !important;
    font-weight: 600;
    font-size: 11px;
}

.member-actions {
    display: flex;
    gap: 2px;
    justify-content: center;
}

/* ============================================================================
   시스템 설정 스타일
   ============================================================================ */
.system-sections {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.system-section {
    background: #fff;
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.system-section h4 {
    margin: 0 0 10px 0;
    color: #333;
    border-bottom: 1px solid #667eea;
    padding-bottom: 4px;
    font-size: 16px;
}

.setting-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 3px;
}

.setting-item label {
    min-width: 140px;
    font-weight: 600;
    color: #333;
    margin-bottom: 0;
    font-size: 16px;
}

.setting-control {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.setting-control input[type="text"],
.setting-control input[type="number"] {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 16px;
}

.setting-control input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.setting-description {
    font-size: 16px;
    color: #666;
    line-height: 1.4;
    opacity: 0.8;
}

.system-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 3px;
    margin-top: 15px;
}

.system-actions .btn {
    font-size: 16px;
    padding: 12px 20px;
}

.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    color: #666;
    font-size: 16px;
}

/* ============================================================================
   실적 관리 스타일
   ============================================================================ */
.performance-stats {
    margin: 10px 0;
}

.stats-card {
    background: #fff;
    border-radius: 4px;
    padding: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 3px;
    border-left: 2px solid #667eea;
}

.stat-label {
    font-size: 10px;
    color: #666;
}

.stat-value {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.performance-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 10px 0;
}

.performance-section {
    background: #fff;
    border-radius: 4px;
    padding: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.performance-section h4 {
    margin: 0 0 8px 0;
    color: #333;
    border-bottom: 1px solid #667eea;
    padding-bottom: 4px;
    font-size: 13px;
}

.performer-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    background: #f8f9fa;
    border-radius: 3px;
    margin-bottom: 4px;
    font-size: 11px;
}

.performer-name {
    font-weight: 600;
    color: #333;
}

.pv-value {
    font-weight: 600;
    color: #28a745;
}

.performance-controls {
    margin-bottom: 10px;
}

.period-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.performance-actions {
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

/* ============================================================================
   반응형 디자인 - 모바일
   ============================================================================ */
@media (max-width: 768px) {
    
    .dashboard-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    
    .dashboard-card .card-header {
        padding: 6px 8px;
        font-size: 10px;
    }
    
    .dashboard-card .card-body {
        padding: 6px;
    }
    
    .dashboard-card .card-value {
        font-size: 1.2em;
    }
    
    .members-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }
    
    .search-controls {
        width: 100%;
    }
    
    .form-control {
        min-width: auto;
        flex: 1;
    }
    
    .members-table {
        font-size: 9px;
    }
    
    .members-table th,
    .members-table td {
        padding: 3px 2px;
    }
    
    .setting-item {
        flex-direction: column;
        gap: 8px;
        padding: 10px;
    }
    
    .setting-item label {
        min-width: auto;
        font-size: 16px;
    }
    
    .setting-control input[type="text"],
    .setting-control input[type="number"] {
        font-size: 16px;
        padding: 8px 12px;
    }
    
    .setting-description {
        font-size: 16px;
    }
    
    .system-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .system-actions .btn {
        font-size: 16px;
        padding: 12px 20px;
    }
    
    .performance-sections {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .quick-actions {
        padding: 8px;
    }
    
    .quick-actions .action-buttons {
        gap: 4px;
    }
    
    .quick-actions .btn {
        padding: 4px 6px;
        font-size: 10px;
    }
}

/* ============================================================================
   에러 표시 스타일
   ============================================================================ */
.admin-error {
    background: #fff;
    border: 1px solid #dc3545;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    margin: 20px;
}

.admin-error h4 {
    color: #dc3545;
    margin-bottom: 15px;
}

.admin-error p {
    color: #666;
    margin: 10px 0;
    word-break: break-all;
}

.admin-error .btn {
    margin-top: 15px;
}

/* ============================================================================
   회원 관리 스타일
   ============================================================================ */

/* 모던한 컨트롤 바 */
.control-bar {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.control-group {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
}

.control-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 180px;
}

.control-label {
    font-size: 16px;
    font-weight: 600;
    color: #495057;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control.modern-select,
.form-control.modern-input {
    height: 44px;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    background: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.form-control.modern-select:focus,
.form-control.modern-input:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.form-control.modern-select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667eea' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    appearance: none;
    cursor: pointer;
}

.control-actions {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    margin-left: auto;
}

.btn.modern-btn {
    height: 44px;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn.modern-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

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

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

.btn-secondary.modern-btn {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
}

.btn-success.modern-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.btn.modern-btn i {
    font-size: 16px;
}

/* 회원 테이블 컨테이너 */
.members-table-container {
    background: #fff;
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    overflow-x: auto;
}

/* 순위 스타일 */
.member-rank {
    text-align: center !important;
    font-weight: 700;
    font-size: 16px;
    color: #333;
    width: 60px;
}

/* PV와 금액 표시 스타일 */
.pv-period {
    text-align: right;
}

.pv-period .pv-value {
    color: #28a745;
    font-weight: 600;
    font-size: 16px;
}

.amount-period {
    text-align: right;
}

.amount-period .amount-value {
    color: #17a2b8;
    font-weight: 600;
    font-size: 16px;
}

.posts-period {
    text-align: center;
    font-size: 16px;
    font-weight: 500;
}

/* 실적 비율 스타일 */
.performance-ratio {
    text-align: center;
}

.ratio-percent {
    font-size: 16px;
    font-weight: 600;
    color: #6366f1;
    padding: 4px 8px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    display: inline-block;
    min-width: 50px;
}

.members-table {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
    background: #fff;
    font-size: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    table-layout: fixed;
}

/* 컬럼 너비 설정 */
.members-table th:nth-child(1) { width: 50px; } /* 체크박스 */
.members-table th:nth-child(2) { width: 60px; } /* 순위 */
.members-table th:nth-child(3) { width: 120px; } /* 회원 ID */
.members-table th:nth-child(4) { width: 120px; } /* PV */
.members-table th:nth-child(5) { width: 120px; } /* 금액 */
.members-table th:nth-child(6) { width: 100px; } /* 등록건수 */
.members-table th:nth-child(7) { width: 100px; } /* 실적비율 */

.members-table th {
    background: #f8f9fa;
    color: #495057;
    padding: 12px 8px;
    font-weight: 600;
    text-align: center;
    font-size: 14px;
    border-bottom: 2px solid #dee2e6;
    border-right: 1px solid #dee2e6;
}

.members-table th:last-child {
    border-right: none;
}

.members-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #eee;
    border-right: 1px solid #f0f0f0;
    text-align: center;
    font-size: 14px;
}

.members-table td:last-child {
    border-right: none;
}

.members-table tr:hover {
    background: #f8f9fa;
}

.member-id {
    text-align: left !important;
    font-weight: 600;
    font-size: 16px;
    width: 120px;
}

.pv-current .pv-value {
    color: #28a745;
    font-weight: 600;
}

.pv-total .pv-value {
    color: #17a2b8;
    font-weight: 600;
}

.member-actions {
    display: flex;
    gap: 5px;
    justify-content: center;
}

.btn-sm {
    padding: 4px 8px;
    font-size: 0.75em;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 20px;
}

.btn-page {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
}

.btn-page.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.no-data {
    text-align: center;
    color: #666;
    padding: 40px;
    font-style: italic;
}

/* 회원 통계 모달 스타일 */
.member-stats-content {
    padding: 20px 0;
}

.stats-summary {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.summary-item {
    text-align: center;
}

.summary-label {
    display: block;
    color: #666;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.summary-value {
    display: block;
    font-size: 1.4em;
    font-weight: bold;
    color: #333;
}

.period-performance h4 {
    color: #333;
    margin-bottom: 20px;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.performance-chart {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chart-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.chart-label {
    min-width: 50px;
    font-weight: 600;
    color: #333;
}

.chart-bar {
    flex: 1;
    position: relative;
    height: 30px;
    background: #f0f0f0;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.bar-fill {
    height: 100%;
    border-radius: 15px;
    transition: width 1s ease;
    position: absolute;
    left: 0;
    top: 0;
}

.pv-bar {
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
}

.amount-bar {
    background: linear-gradient(90deg, #17a2b8 0%, #138496 100%);
}

.bar-value {
    position: relative;
    z-index: 1;
    margin-left: 15px;
    font-weight: bold;
    color: #333;
    text-shadow: 0 0 2px rgba(255,255,255,0.8);
}

.member-stats-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* 선택 체크박스 스타일 */
.select-checkbox,
.member-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #667eea;
}

/* 일괄처리 버튼 상태 */
.btn.has-selection {
    background: linear-gradient(135deg, #ffc107 0%, #ff8c00 100%) !important;
    color: #333 !important;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(255, 193, 7, 0.3);
}

/* 드롭다운 스타일 */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    min-width: 180px;
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.dropdown-menu.show {
    display: block;
    animation: dropdownFadeIn 0.2s ease;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    font-size: 0.85em;
    transition: background 0.2s ease;
    border: none;
    background: transparent;
    width: 100%;
    cursor: pointer;
}

.dropdown-menu a:hover {
    background: #f8f9fa;
}

.dropdown-menu a.text-warning {
    color: #ffc107 !important;
}

.dropdown-menu a.text-danger {
    color: #dc3545 !important;
}

.dropdown-menu a.text-warning:hover {
    background: #fff3cd;
}

.dropdown-menu a.text-danger:hover {
    background: #f8d7da;
}

.dropdown-divider {
    margin: 5px 0;
    border: none;
    border-top: 1px solid #eee;
}

/* 일괄처리 모달 스타일 */
.bulk-actions-content {
    padding: 20px 0;
}

.selected-members-info h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 16px;
}

.selected-members-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
    max-height: 120px;
    overflow-y: auto;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.member-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: 500;
    white-space: nowrap;
}

.bulk-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bulk-btn {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
}

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

.bulk-btn i {
    font-size: 16px;
}

/* 액션 그룹 스타일 */
.action-group {
    display: flex;
    gap: 4px;
    align-items: center;
    justify-content: center;
}

/* 드롭다운 애니메이션 */
@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 알림 애니메이션 */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* 경고색 추가 알림 스타일 */
.notification-warning {
    background: #ffc107 !important;
    color: #333 !important;
}

.notification-error {
    background: #dc3545 !important;
    color: white !important;
}

/* ============================================================================
   회원 관리 반응형 스타일
   ============================================================================ */
@media (max-width: 768px) {
    .control-bar {
        padding: 15px;
    }
    
    .control-group {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .control-item {
        min-width: auto;
    }
    
    .control-actions {
        margin-left: 0;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .btn.modern-btn {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }
    
    .members-table {
        font-size: 14px;
    }
    
    .members-table th,
    .members-table td {
        padding: 6px 3px;
    }
    
    .member-actions {
        flex-direction: column;
        gap: 3px;
    }
    
    .action-group {
        flex-direction: column;
        gap: 2px;
    }
    
    .members-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .member-rank {
        font-size: 14px;
        width: 40px;
    }
    
    .performance-ratio {
        padding: 2px;
    }
    
    .ratio-percent {
        font-size: 14px;
        padding: 2px 6px;
        min-width: 40px;
    }
    
    .stats-summary {
        flex-direction: column;
        gap: 15px;
        text-align: left;
    }
    
    .chart-item {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .dropdown-menu {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        min-width: 250px;
    }
    
    .selected-members-list {
        max-height: 80px;
        padding: 10px;
    }
    
    .member-id {
        width: 100px;
        font-size: 14px;
    }
    
    .bulk-action-buttons {
        gap: 8px;
    }
    
    .bulk-btn {
        padding: 12px 16px;
        font-size: 13px;
    }
}

/* 480px 이하 초소형 모바일 최적화 */
@media (max-width: 480px) {
    .control-bar {
        padding: 12px;
        margin-bottom: 15px;
        border-radius: 8px;
    }

    .control-group {
        gap: 6px;
        flex-direction: column;
        align-items: stretch;
    }

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

    .form-group label {
        font-size: 12px;
        margin-bottom: 4px;
    }

    .form-control,
    .form-select {
        padding: 6px 8px;
        font-size: 14px;
    }

    .btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .search-results-container {
        padding: 8px;
    }

    .admin-error {
        margin: 10px;
        padding: 15px;
    }

    .bulk-action-buttons {
        flex-direction: column;
        gap: 6px;
    }

    .bulk-btn {
        padding: 8px 12px;
        font-size: 12px;
        width: 100%;
    }

    .dropdown-menu {
        min-width: 200px;
        font-size: 12px;
    }

    .selected-members-list {
        max-height: 60px;
        padding: 6px;
    }

    .member-id {
        width: 80px;
        font-size: 12px;
    }
}