/* 공통 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 바디 스타일 */
body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

/* 헤더 스타일 */
header {
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 24px;
    margin-right: auto;
}

.logout-container a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 10px;
    background-color: #ff4c4c;
    border-radius: 5px;
}

.logout-container a:hover {
    background-color: #e03e3e;
}

/* 네비게이션 메뉴 스타일 */
nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li {
    display: inline-block;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    background-color: #007bff;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

/* 활성화된 메뉴 항목 스타일 */
nav ul li a.active {
    background-color: #0056b3;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 메뉴 항목 hover 효과 */
nav ul li a:hover {
    background-color: #0056b3;
}

/* 콘텐츠 스타일 */
h2 {
    text-align: center;
    font-size: 28px;
    margin: 20px 0;
}

/* 버튼 스타일 */
button {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #218838;
}

button:focus {
    outline: none;
}

/* 모달창 스타일 */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    padding-top: 60px;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border-radius: 5px;
    width: 80%;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul li {
        margin-bottom: 10px;
    }

    .sales-list-table th, .sales-list-table td {
        padding: 8px;
    }
}

/* 제품 등록 폼 스타일 */
.product-form-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: flex-start;
}

.image-preview {
    width: 120px;
    height: 120px;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #555;
}

/* 입력 필드 스타일 */
.product-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
}

/* 각 필드 그룹 스타일 */
.product-form .form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 48%;
}

/* 레이블 스타일 */
.product-form label {
    margin-bottom: 5px;
}

.product-form input[type="text"],
.product-form select {
    padding: 10px;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 3px;
}

/* 제출 버튼 스타일 */
.product-form button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    width: 100%;
}

.product-form button:hover {
    background-color: #0056b3;
}

/* 사이즈 선택 모달 스타일 */
.size-option {
    cursor: pointer;
    padding: 5px;
    border: 1px solid transparent;
    display: inline-block;
    margin: 5px 0;
}

.size-option.selected {
    background-color: #007bff;
    color: white;
    border: 1px solid #007bff;
}

/* 최근 등록된 재고 테이블 스타일 */
.inventory-list {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.inventory-list th, .inventory-list td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: center;
}

.inventory-list th {
    background-color: #f4f4f4;
    font-weight: bold;
    text-transform: uppercase;
}

.inventory-list td {
    vertical-align: middle;
}

/* 재고 이미지 스타일 */
.inventory-list td img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
}

/* 버튼을 포함한 행의 스타일 */
.inventory-list td button {
    background-color: transparent;
    border: none; /* 테두리를 없앱니다. */
    cursor: pointer; /* 마우스 오버 시 커서를 손가락 모양으로 변경 */
    font-size: 16px; /* 이모지 크기 조절 (필요에 따라 변경) */
    padding: 0; /* 내부 여백을 없애 이모지만 남깁니다. */
}

/* 최근 등록된 재고 테이블 스타일 */
.product-list-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.product-list-table, .product-list-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: center;

}

.product-list-table th {
    background-color: #f4f4f4;
    font-weight: bold;
    text-transform: uppercase;
    padding: 12px;

}

.product-list-table td {
    vertical-align: middle;
}

/* 재고 이미지 스타일 */
.product-list-table td img {
    width: 50px; /* 예: 이미지 너비 */
    height: auto; /* 예: 이미지 높이를 자동으로 */
}

/* 버튼을 포함한 행의 스타일 */
.product-list-table td button {
    background-color: #dc3545;
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.product-list-table td button:hover {
    background-color: #c82333;
}


/* 판매 완료 테이블 스타일 */
.sales-list-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.sales-list-table, .sales-list-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: center;
}

.sales-list-table th {
    background-color: #f4f4f4;
    font-weight: bold;
    text-transform: uppercase;
    padding: 12px;

}

.sales-list-table td {
    vertical-align: middle;
}

/* 재고 이미지 스타일 */
.sales-list-table td img {
    width: 100px; /* 예: 이미지 너비 */
    height: auto; /* 예: 이미지 높이를 자동으로 */
}

/* 버튼을 포함한 행의 스타일 */
.sales-list-table td button {
    background-color: #dc3545;
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.sales-list-table td button:hover {
    background-color: #c82333;
}

.inventory-row input{
    padding: 8px;
    margin-bottom: 15px;
    width: 300px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.product-form input{
    padding: 8px;
    margin-bottom: 15px;
    /* width: 300px; */
    border: 1px solid #ddd;
    border-radius: 3px;
}

.product-form select{
    padding: 8px;
    margin-bottom: 15px;
    width: 300px;
    border: 1px solid #ddd;
    border-radius: 3px;
}


/* 판매 완료 테이블 스타일 */
.product-form-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.product-form-table, .product-form-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: center;
}

.product-form-table th {
    background-color: #f4f4f4;
    font-weight: bold;
    text-transform: uppercase;
    padding: 12px;

}

.product-form-table td {
    vertical-align: middle;
}

/* 재고 이미지 스타일 */
.product-form-table td img {
    width: 100px; /* 예: 이미지 너비 */
    height: auto; /* 예: 이미지 높이를 자동으로 */
}

/* 버튼을 포함한 행의 스타일 */
.product-form-table td button {
    background-color: #dc3545;
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    max-width: 100px;
}

.product-form-table td button:hover {
    background-color: #c82333;
}
