/* ===================================
   Admin Page Styles
   GCJC Park Golf 동호회 관리자 페이지
   =================================== */

/* 로그인 화면 */
.login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 50%, #0288D1 100%);
    padding: 20px;
}

.login-container {
    background: white;
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.login-logo {
    margin-bottom: 30px;
}

.login-logo i {
    font-size: 60px;
    color: #2E7D32;
    margin-bottom: 15px;
}

.login-logo h1 {
    font-size: 24px;
    color: #1B5E20;
    margin-bottom: 5px;
}

.login-logo p {
    color: #666;
    font-size: 14px;
}

.login-form .form-group {
    margin-bottom: 20px;
    text-align: left;
}

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

.login-form input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.login-form input:focus {
    border-color: #2E7D32;
    outline: none;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #2E7D32, #4CAF50);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(46, 125, 50, 0.4);
}

.login-hint {
    margin-top: 20px;
    font-size: 12px;
    color: #999;
}

/* 관리자 대시보드 레이아웃 */
.admin-dashboard {
    display: flex;
    min-height: 100vh;
    background: #f5f7fa;
}

/* 사이드바 */
.admin-sidebar {
    width: 260px;
    background: linear-gradient(180deg, #1B5E20 0%, #2E7D32 100%);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.sidebar-header {
    padding: 25px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-header i {
    font-size: 28px;
}

.sidebar-header h2 {
    font-size: 18px;
    font-weight: 600;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
}

.sidebar-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 25px;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-nav .nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.sidebar-nav .nav-item.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-left-color: #FFC107;
}

.sidebar-nav .nav-item i {
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-back,
.btn-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.btn-back {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-logout {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* 메인 콘텐츠 영역 */
.admin-main {
    flex: 1;
    margin-left: 260px;
    padding: 30px;
}

/* 섹션 스타일 */
.admin-section {
    display: none;
}

.admin-section.active {
    display: block;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h1 {
    font-size: 28px;
    color: #1B5E20;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 통계 카드 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.stat-icon.members { background: linear-gradient(135deg, #2E7D32, #4CAF50); }
.stat-icon.gallery { background: linear-gradient(135deg, #0288D1, #03A9F4); }
.stat-icon.applications { background: linear-gradient(135deg, #FFC107, #FFD54F); color: #333; }
.stat-icon.birthday { background: linear-gradient(135deg, #E91E63, #F48FB1); }

.stat-info h3 {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

.stat-info p {
    color: #666;
    font-size: 14px;
}

/* 빠른 작업 */
.quick-actions {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.quick-actions h2 {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
}

.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.action-btn {
    padding: 14px 24px;
    background: linear-gradient(135deg, #2E7D32, #4CAF50);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 125, 50, 0.3);
}

/* 버튼 스타일 */
.btn-add {
    padding: 12px 20px;
    background: linear-gradient(135deg, #2E7D32, #4CAF50);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 125, 50, 0.3);
}

/* 검색바 */
.search-bar {
    position: relative;
    margin-bottom: 20px;
    max-width: 400px;
}

.search-bar input {
    width: 100%;
    padding: 14px 20px 14px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.search-bar input:focus {
    border-color: #2E7D32;
    outline: none;
}

.search-bar i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

/* 테이블 스타일 */
.table-container {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.admin-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.admin-table td {
    font-size: 14px;
    color: #555;
}

.admin-table tbody tr:hover {
    background: #f8fdf8;
}

.admin-table .member-photo {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    background: #e8f5e9;
}

.admin-table .no-photo {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #e8f5e9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2E7D32;
}

/* 테이블 액션 버튼 */
.table-actions {
    display: flex;
    gap: 8px;
}

.btn-edit,
.btn-delete-small {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-edit {
    background: #e3f2fd;
    color: #0288D1;
}

.btn-edit:hover {
    background: #0288D1;
    color: white;
}

.btn-delete-small {
    background: #ffebee;
    color: #e53935;
}

.btn-delete-small:hover {
    background: #e53935;
    color: white;
}

/* 갤러리 필터 */
.gallery-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-btn {
    padding: 10px 20px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #2E7D32;
    color: #2E7D32;
}

.filter-btn.active {
    background: #2E7D32;
    border-color: #2E7D32;
    color: white;
}

/* 관리자 갤러리 그리드 */
.admin-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.admin-gallery-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.admin-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.admin-gallery-item .media-preview {
    height: 180px;
    background: #f5f5f5;
    position: relative;
    overflow: hidden;
}

.admin-gallery-item .media-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-gallery-item .media-preview .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-gallery-item .media-preview .video-overlay i {
    font-size: 48px;
    color: white;
}

.admin-gallery-item .media-info {
    padding: 15px;
}

.admin-gallery-item .media-info h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.admin-gallery-item .media-info p {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.admin-gallery-item .media-info .media-type {
    display: inline-block;
    padding: 4px 10px;
    background: #e8f5e9;
    color: #2E7D32;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 10px;
}

.admin-gallery-item .media-info .media-type.video {
    background: #e3f2fd;
    color: #0288D1;
}

.admin-gallery-item .media-actions {
    display: flex;
    gap: 8px;
}

/* 모달 스타일 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content.modal-large {
    max-width: 700px;
}

.modal-content.modal-small {
    max-width: 400px;
}

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

.modal-header h2 {
    font-size: 20px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    width: 36px;
    height: 36px;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #e0e0e0;
}

.modal-body {
    padding: 25px;
}

/* 관리자 폼 */
.admin-form {
    padding: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.admin-form .form-group {
    margin-bottom: 20px;
}

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

.admin-form input,
.admin-form select,
.admin-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
    border-color: #2E7D32;
    outline: none;
}

.admin-form small {
    display: block;
    margin-top: 5px;
    color: #999;
    font-size: 12px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 25px;
    border-top: 1px solid #eee;
}

.btn-cancel {
    padding: 12px 24px;
    background: #f5f5f5;
    color: #666;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background: #e0e0e0;
}

.btn-submit {
    padding: 12px 24px;
    background: linear-gradient(135deg, #2E7D32, #4CAF50);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 125, 50, 0.3);
}

.btn-delete {
    padding: 12px 24px;
    background: #e53935;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-delete:hover {
    background: #c62828;
}

/* 빈 상태 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 16px;
}

.empty-state i {
    font-size: 64px;
    color: #e0e0e0;
    margin-bottom: 20px;
}

.empty-state p {
    color: #999;
    font-size: 16px;
    margin-bottom: 20px;
}

/* 페이지네이션 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.pagination button {
    width: 40px;
    height: 40px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination button:hover {
    border-color: #2E7D32;
    color: #2E7D32;
}

.pagination button.active {
    background: #2E7D32;
    border-color: #2E7D32;
    color: white;
}

/* 상태 배지 */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.pending {
    background: #fff3e0;
    color: #f57c00;
}

.status-badge.approved {
    background: #e8f5e9;
    color: #2E7D32;
}

.status-badge.rejected {
    background: #ffebee;
    color: #e53935;
}

/* 반응형 */
@media (max-width: 1024px) {
    .admin-sidebar {
        width: 70px;
    }
    
    .sidebar-header h2,
    .sidebar-nav .nav-item span,
    .sidebar-footer .btn-back span,
    .sidebar-footer .btn-logout span {
        display: none;
    }
    
    .admin-main {
        margin-left: 70px;
    }
}

@media (max-width: 768px) {
    .admin-sidebar {
        display: none;
    }
    
    .admin-main {
        margin-left: 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .admin-table {
        font-size: 12px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 12px 10px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .section-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}

/* 승인/거절 버튼 */
.btn-approve {
    padding: 6px 12px;
    background: #2E7D32;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-approve:hover {
    background: #1B5E20;
}

.btn-reject {
    padding: 6px 12px;
    background: #e53935;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-reject:hover {
    background: #c62828;
}

/* 토스트 알림 */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 16px 24px;
    background: #333;
    color: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2000;
    animation: slideInRight 0.3s ease;
}

.toast.success {
    background: #2E7D32;
}

.toast.error {
    background: #e53935;
}

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