/* DAPA List Skin - Extracted CSS */

/* Muted Gray 색상 변수 (performance_list.css와 동기화) */
:root {
    --dapa-primary: #6b7280;        /* 중간 회색 */
    --dapa-primary-light: #9ca3af;  /* 밝은 회색 */
    --dapa-primary-dark: #4b5563;   /* 진한 회색 */
    --dapa-secondary: #6b7280;      /* 보조 회색 */
    --dapa-success: #6b7280;        /* 성공 (회색) */
    --dapa-warning: #78716c;        /* 경고 (따뜻한 회색) */
    --dapa-danger: #6b7280;         /* 오류 (회색) */
    --dapa-background: #f9fafb;     /* 매우 연한 회색 배경 */
    --dapa-surface: #ffffff;        /* 순백색 */
    --dapa-text-primary: #374151;   /* 다크 그레이 텍스트 */
    --dapa-text-secondary: #6b7280; /* 중간 회색 텍스트 */
    --dapa-border: #e5e7eb;         /* 연한 회색 보더 */
    --dapa-accent: #9ca3af;         /* 액센트 회색 */
}

/* Pagination Styles */
.pagination-container {
    margin-top: 30px;
    padding: 20px 0;
}

.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pagination .page-item {
    margin: 0 2px;
}

.pagination .page-link {
    display: block;
    padding: 8px 12px;
    margin-left: -1px;
    line-height: 1.25;
    color: var(--dapa-primary);
    text-decoration: none;
    background-color: var(--dapa-surface);
    border: 1px solid var(--dapa-border);
    border-radius: 4px;
    transition: all 0.2s ease-in-out;
}

.pagination .page-link:hover {
    color: #0056b3;
    background-color: #e9ecef;
    border-color: #dee2e6;
    transform: translateY(-1px);
}

.pagination .page-item.active .page-link {
    background-color: var(--dapa-primary);
    border-color: #007bff;
    color: #fff;
    font-weight: bold;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    background-color: var(--dapa-surface);
    border-color: #dee2e6;
    cursor: not-allowed;
}

.pagination-info {
    margin-top: 10px;
    font-size: 0.875rem;
    color: #6c757d;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .pagination-container {
        margin-top: 15px;
        padding: 10px 0;
    }

    .pagination .page-link {
        padding: 6px 8px;
        font-size: 0.875rem;
    }

    .pagination .page-item {
        margin: 0 1px;
    }

    .pagination-info {
        font-size: 0.75rem;
    }

    .modal-content {
        margin: 20px auto;
        width: 95%;
    }

    .modal-header {
        padding: 10px 15px;
    }

    .modal-body {
        padding: 15px;
    }

    .admin-tabs-container {
        margin-bottom: 10px;
    }

    .admin-tab-content {
        padding: 8px;
        min-height: 200px;
    }

    .admin-tab-btn {
        padding: 6px 8px;
        font-size: 14px;
    }

    .admin-tab-btn i {
        font-size: 14px;
        margin-right: 3px;
    }
}

@media (max-width: 480px) {
    .pagination-container {
        margin-top: 10px;
        padding: 8px 0;
    }

    .pagination .page-link {
        padding: 4px 6px;
        font-size: 0.75rem;
    }

    .modal-content {
        margin: 10px auto;
        width: 98%;
    }

    .modal-header {
        padding: 8px 12px;
    }

    .modal-body {
        padding: 12px;
    }

    .admin-tab-content {
        padding: 6px;
        min-height: 150px;
    }

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

    .admin-loading {
        height: 80px;
        font-size: 12px;
    }
}

/* Modal Styles */
.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;
}

/* Admin Tabs Styles */
.admin-tabs-container {
    margin-bottom: 15px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.admin-tabs-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 0;
}

.admin-tabs-nav {
    display: flex;
    gap: 0;
}

.admin-tab-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
    font-weight: 500;
    position: relative;
    border-bottom: 1px solid transparent;
}

.admin-tab-btn:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.admin-tab-btn.active {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border-bottom-color: #ffd700;
    font-weight: 600;
}

.admin-tab-btn i {
    margin-right: 4px;
    font-size: 16px;
}

.admin-tab-content {
    min-height: 300px;
    padding: 12px;
    background: #f8f9fa;
}

.admin-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    color: #666;
    font-size: 14px;
    gap: 8px;
}

.admin-loading i {
    font-size: 16px;
    color: #667eea;
}

/* Dashboard Styles */
.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: var(--dapa-primary);
    border-color: var(--dapa-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--dapa-primary-dark);
    border-color: var(--dapa-primary-dark);
}
.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);
}

/* Motivation Card Styles */
.motivation-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    color: white;
    margin: 20px 0;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.motivation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.motivation-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.motivation-header i {
    font-size: 3em;
    margin-bottom: 10px;
    animation: bounce 2s infinite;
}

.motivation-header h3 {
    margin: 0;
    font-size: 1.5em;
    font-weight: bold;
}

.motivation-body {
    padding: 30px;
}

.motivation-message h4 {
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.3em;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.motivation-message p {
    text-align: center;
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 25px;
    opacity: 0.9;
}

.motivation-stats {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
    flex-wrap: wrap;
    gap: 15px;
}

.stat-box {
    text-align: center;
    flex: 1;
    min-width: 120px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-box i {
    font-size: 2em;
    margin-bottom: 10px;
    display: block;
    color: #ffd700;
}

.stat-box span {
    font-size: 0.9em;
    line-height: 1.4;
}

.motivation-action {
    text-align: center;
    margin-top: 25px;
}

.btn-fighting {
    display: inline-block;
    background: linear-gradient(45deg, var(--dapa-primary), var(--dapa-primary-light));
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(107, 114, 128, 0.4);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.btn-fighting:hover {
    background: linear-gradient(45deg, var(--dapa-primary-dark), var(--dapa-primary));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(107, 114, 128, 0.6);
    color: white;
    text-decoration: none;
}

.btn-fighting i {
    margin-right: 8px;
}

.action-subtitle {
    margin-top: 15px;
    font-size: 1em;
    opacity: 0.9;
    font-weight: 500;
}

/* Current Period Performance Styles */
.current-period-performance {
    margin: 15px 0;
    background: #fff;
    border-radius: 12px;
    box-shadow:
        0 8px 25px rgba(0,0,0,0.12),
        0 4px 10px rgba(0,0,0,0.08),
        inset 0 1px 0 rgba(255,255,255,0.1);
    transform: translateZ(0);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255,255,255,0.2);
}

.current-period-performance::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Animations */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .admin-tabs-nav {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 0;
    }

    .admin-tab-btn {
        border-bottom: 1px solid rgba(255,255,255,0.1);
        border-right: 1px solid rgba(255,255,255,0.1);
        padding: 6px 8px;
        font-size: 16px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .motivation-stats {
        flex-direction: column;
    }

    .stat-box {
        min-width: auto;
    }
}