/* admin_common.css */

/* 1. 기본 레이아웃 및 폰트 */
body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    margin: 20px;
}

h1, h2, h3, p {
    color: #333;
}

.container {
    width: 80%;
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.divider {
    width: 100%;
    height: 10px;
    background-color: #eee;
    margin: 50px 0;
}

/* 2. 테이블 스타일 */
.styled-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 0.9em;
    background-color: #ffffff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

.styled-table th, .styled-table td {
    padding: 10px 15px;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
}

.styled-table th {
    background-color: #009879;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.styled-table tr {
    border-bottom: 1px solid #dddddd;
}

.styled-table tr:nth-of-type(even) {
    background-color: #f3f3f3;
}

.styled-table tr:hover {
    background-color: #f1f1f1;
}

.styled-table tr:last-of-type {
    border-bottom: 2px solid #009879;
}

/* 3. 폼 및 입력 요소 */
.filter-form {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

.form-label {
    font-weight: bold;
    color: #009879;
}

.form-select, .form-input {
    padding: 8px 12px;
    font-size: 0.9em;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
}

/* 4. 버튼 스타일 */
.btn-submit, .btn-print, .btn-filter, .btn-modify {
    padding: 8px 12px;
    font-size: 0.9em;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    background-color: #009879;
    color: #ffffff;
    text-decoration: none;
    display: inline-block;
}

.btn-submit:hover, .btn-print:hover, .btn-filter:hover {
    background-color: #007f63;
}

.logout {
    padding: 8px 12px;
    font-size: 0.9em;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #ff9900;
    color: #ffffff;
    cursor: pointer;
}

.logout:hover {
    background-color: #ee9900;
}

.danger {
    background-color: #d9534f;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 14px;
    cursor: pointer;
}

/* 5. 이미지 미리보기 및 기타 UI */
.preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.img-wrap {
    position: relative;
    width: 100px;
    height: 100px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove {
    position: absolute;
    top: -4px;
    right: 4px;
    width: 24px;
    height: 24px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.image-info {
    font-size: 12px;
    color: #999;
    line-height: 1.5;
    margin-top: 8px;
}

.column-toggle {
    margin-bottom: 20px;
}