/* 전체 스타일 */
html, body {
    margin: 0;
    padding: 0;
}

/* 사이드바 */
.sidebar {
    width: 240px;
    height: 100vh;
    background-color: #2D3139;
    position: fixed;
    left: 0;
    top: 0;
    color: white;
}

.logo {
    padding: 20px;
    font-size: 20px;
    font-weight: bold;
}

.nav-item {
    padding: 12px 20px 12px 52px;
    cursor: pointer;
}

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

.nav-item.active {
    background-color: #4CAF50;
    border-radius: 0 30px 30px 0;
}

.main-content {
    margin-left: 240px;
    padding: 20px;
}


/* 전체 스타일 */
.content-wrapper {
    padding: 20px;
}

/* 헤더 스타일 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.add-new-btn {
    background-color: #2E7D32;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

/* 필터 섹션 */
.filter-section {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.filter-select {
    padding: 6px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 10px;
}

/* 테이블 스타일 */
.content-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.content-table th,
.content-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.content-table th {
    background-color: #f5f5f5;
}

.thumbnail-img {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}

.delete-btn {
    background-color: #DC3545;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
}

/* 페이지네이션 */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

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

.display-select {
    padding: 6px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(100vh - 40px);
    background-color: #f5f5f5;
}

.login-box {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.login-box h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

.login-form .form-group {
    margin-bottom: 1rem;
}

.login-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #666;
}

.login-form input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
}

.login-form input:focus {
    outline: none;
    border-color: #2E7D32;
}

.login-btn {
    width: 100%;
    padding: 0.75rem;
    background-color: #2E7D32;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 1rem;
}

.login-btn:hover {
    background-color: #1B5E20;
} 
.sidebar a{
    color: white;
    text-decoration: none;
}

.sidebar ul {
    padding: 0;
}
.sidebar ul li {
    list-style: none;
    padding-right: 18px;
}

.sidebar > p {
    margin-left: 20px;
}