/* theme/basic/css/custom.css */

:root {
    --main-color: #2D5016;
    --main-dark: #1a3010;
    --main-light: #4a7c28;
    --sub-color: #f8f9fa;
    --border-color: #dee2e6;
    --text-color: #222;
    --text-muted: #6c757d;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-size: 12px;
    color: var(--text-color);
    line-height: 1.6;
}

/* 공통 레이아웃 */
.container {
	width:100%;
    max-width: 1400px;
    margin: 0 auto;
}

/* 버튼 스타일 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background: var(--main-color);
    color: #fff;
}

.btn-primary:hover {
    background: var(--main-dark);
}

.btn-secondary {
    background: #6c757d;
    color: #fff;
}

.btn-success {
    background: var(--success);
    color: #fff;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

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

/* 테이블 스타일 */
.table-wrap {
    overflow-x: auto;
    margin: 20px 0;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.custom-table thead {
    background: var(--main-color);
    color: #fff;
}

.custom-table th a {color:#fff}

.custom-table th,
.custom-table td {
    padding: 12px 15px;
    text-align: center;
    border: 1px solid var(--border-color);
}

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

/* 폼 스타일 */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-label.required::after {
    content: '*';
    color: var(--danger);
    margin-left: 4px;
}

#ml_color.form-control {height:30px; padding:0px; border:0px;}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
}

.form-control:focus {
    outline: none;
    border-color: var(--main-color);
    box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.1);
}

select.form-control {
    cursor: pointer;
}

/* 체크박스 그룹 */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.checkbox-item {
    display: flex;
    align-items: center;
}

.checkbox-item input[type="checkbox"] {
    margin-right: 5px;
}

/* 모달 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

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

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.badge-danger {
    background: #f8d7da;
    color: #721c24;
}

.badge-info {
    background: #d1ecf1;
    color: #0c5460;
}

.badge-secondary {
    background: #e2e3e5;
    color: #383d41;
}

/* 검색 필터 */
.search-box {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.search-row {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.search-item {
    flex: 1;
    min-width: 200px;
}

/* 관리자 사이드바 */
.admin-wrap {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 250px;
    background: var(--main-color);
    color: #fff;
    padding: 20px 0;
}

.admin-sidebar-menu {
    list-style: none;
}

.admin-sidebar-menu li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.admin-sidebar-menu a {
    display: block;
    padding: 15px 20px;
    color: #fff;
    text-decoration: none;
    transition: background 0.3s;
}

.admin-sidebar-menu a:hover,
.admin-sidebar-menu a.active {
    background: var(--main-dark);
}

.admin-content {
    flex: 1;
    padding: 30px;
    background: #f5f5f5;
}

.admin-header {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.admin-header h2 {
    margin: 0;
    font-size: 24px;
}

/* 반응형 */
@media (max-width: 768px) {
    .admin-wrap {
        flex-direction: column;
    }
    
    .admin-sidebar {
        width: 100%;
    }
    
    .search-row {
        flex-direction: column;
    }
    
    .search-item {
        width: 100%;
    }
    
    .custom-table {
        font-size: 12px;
    }
    
    .custom-table th,
    .custom-table td {
        padding: 8px 10px;
    }
}

/* 파일 업로드 */
.file-upload-box {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.file-upload-box:hover {
    border-color: var(--main-color);
    background: #f8f9fa;
}

.file-upload-box.dragging {
    border-color: var(--main-color);
    background: rgba(45, 80, 22, 0.05);
}

.file-list {
    margin-top: 15px;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 8px;
}

.file-item .remove-file {
    color: var(--danger);
    cursor: pointer;
    font-size: 18px;
}

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

.stat-card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-card-title {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.stat-card-value {
    font-size: 32px;
    font-weight: bold;
    color: var(--main-color);
}

/* 탭 메뉴 */
.tab-menu {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 20px;
    background: #fff;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.tab-item {
    padding: 15px 25px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.tab-item:hover {
    background: #f8f9fa;
}

.tab-item.active {
    border-bottom-color: var(--main-color);
    color: var(--main-color);
    font-weight: 500;
}

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

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    text-decoration: none;
    color: var(--text-color);
}

.pagination a:hover {
    background: var(--main-color);
    color: #fff;
    border-color: var(--main-color);
}

.pagination .active {
    background: var(--main-color);
    color: #fff;
    border-color: var(--main-color);
}



/* 회원가입 */
.register-wrap {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
}

.register-card {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.register-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.register-header h2 {
    font-size: 28px;
    color: var(--main-color);
    margin-bottom: 10px;
}

.register-header .badge {
    font-size: 14px;
    padding: 6px 15px;
}

.form-section {
    margin-bottom: 40px;
}

.form-section-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--main-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--main-color);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/*.form-row .form-group {
    margin-bottom: 0;
}*/

.certificate-upload {
    margin-top: 15px;
}

.certificate-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.certificate-item h4 {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.certificate-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 40px;
}



@media (max-width: 1440px) {
.container {
    padding:0px 20px
}
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .register-card {
        padding: 20px;
    }
}