:root{
    --dark-grey: #3b3f42;
    --medium-grey: #bcbcbc;
    --medium-grey2: #cfcfcf;
    --light-grey: #D9D9D9;
    --red: #ef343d;
    --light-red: #e28d8d;
    --green: #36a279;
}

.selected{
    background-color: var(--red);
}

body{
    display: flex;
    overflow-x: hidden;
}

button{
    cursor: pointer;
}

aside{
    width: 220px;
    background-color: var(--dark-grey);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
aside a{
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    display: block;
    cursor: pointer;
    box-sizing: border-box;
}
aside a:hover{
    background-color: var(--light-grey);
    color: var(--dark-grey);
}

.aside-hr{
    border: 1px solid var(--light-red);
    margin: 0;
}


main{
    flex: 1;
    padding: 40px;
    background-color: var(--medium-grey);
    box-sizing: border-box;
}

section{
    width: 100%;
    min-height: 100%;
}

.section-header{
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    width: 100%;
    height: 70px;
    padding: 0 20px;
    box-sizing: border-box;
    background-color: var(--light-grey);
}

.section-header h2{
    margin: 0 20px 0 0;
    font-size: 24px;
}

.section-header button{
    border: 2px solid black;
    border-radius: 25px;
    padding: 2px 8px;
    box-sizing: border-box;
    background-color: transparent;
    cursor: pointer;
    font-size: 1.5rem;
}

.section-main{
    width: 100%;
    min-height: calc(100vh - 400px);
    border: 2px solid var(--light-grey);
    background-color: var(--medium-grey2);
    box-sizing: border-box;
}

.section-main table{
    width: 100%;
    min-height: 100%;
    border-collapse: collapse;
}

.section-table-header{
    background-color: var(--red);
    color: white;
}

.section-table-header th{
    padding: 10px 10px;
    box-sizing: border-box;
    text-align: center;
    width: 1%;
}

.section-table-filters{
    display:none;
    background-color: var(--light-red);
}

.section-table-filters th{
    padding: 10px 0;
    text-align: center;
    width: 1%;
}

.section-main input{
    width: 70%;
    padding: 10px 5px;
    height: 20px;
    box-sizing: border-box;
    border:none;
    border-radius: 5px;
    outline: none;
}

.add-container select{
    width: 70%;
    padding: 5px 5px;
    height: 30px;
    box-sizing: border-box;
    border:none;
    border-radius: 5px;
    outline: none;
    margin-bottom: 30px;
}
.section-main td{
    padding: 10px 10px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 1%;
}

.order-wrapper{
    display: flex;
    justify-content: center;
    align-items: center;
}

.order-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    margin-right: 10px;
}

.order-container button{
    border: none;
    box-sizing: border-box;
    background-color: transparent;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--red);
}

.section-main tbody tr:nth-child(odd){
    background-color: var(--light-grey);
}

.section-main tbody tr:nth-child(even){
    background-color: var(--medium-grey);
}

.section-footer{
    margin-top: 10px;
    padding: 6px 20px;
    background-color: var(--light-grey);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-footer button{
    border:none;
    border-radius: 25px;
    padding: 2px 15px;
    height: 40px;
    box-sizing: border-box;
    background-color: var(--red);
    color: white;
    cursor: pointer;
    font-size: 1.rem;
}

.add-container input{
    width: 70%;
    padding: 10px 5px;
    height: 20px;
    box-sizing: border-box;
    border:none;
    border-radius: 5px;
    padding: 13px;
    outline: none;
    margin-bottom: 20px;
}

.add-container textarea{
    width: 100%;
    padding: 10px 5px;
    height: 100px;
    box-sizing: border-box;
    border:none;
    border-radius: 5px;
    padding: 13px;
    outline: none;
    margin-bottom: 20px;
    resize: none;
}

.add-container .checkbox-container{
    display: flex;
    justify-content: space-between;
}

.add-container hr{
    border: 1px solid var(--dark-grey);
    margin: 20px 0;
}

.add-container .image-container{
    width: 100%;
    height: 150px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    
}

.add-container .image-container img{
    max-height:150px;
    object-fit: contain;
    border-radius: 5px;
}

.add-container .image-container-wrapper{
    display: flex;
    flex-direction: column;
    height: 100%;
    flex: 1;
}

.file-input-container {
    position: relative;
    display: flex;
    width: calc(100% - 20px);
    height: 100%;
    border: 2px solid black;
    background-color: white;
    border-radius: 5px;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.file-input-container:hover {
    border-color: #888;
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    opacity: 0;
    cursor: pointer;
    z-index: 10; 
}

.add-button{
    border:none;
    border-radius: 5px;
    padding: 2px 15px;
    height: 40px;
    box-sizing: border-box;
    background-color: var(--green);
    color: white;
    cursor: pointer;
    font-size: 1.rem;
}

.edit-button, .delete-button{
    background: none;
    border: none;
}

#tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 20px;
}

.tag-pill {
    display: flex;
    align-items: center;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 5px 10px;
    font-size: 14px;
}

.tag-pill .remove-tag {
    margin-left: 10px;
    background: none;
    border: none;
    color: red;
    cursor: pointer;
    font-size: 14px;
}

.tag-pill .remove-tag:hover {
    font-weight: bold;
}