body, html {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background-color: #fafafa;
}

#app-container {
    display: flex;
    height: 100vh;
}

#sidebar {
    width: 20%;
    background-color: #ffffff;
    padding: 20px;
    box-shadow: 2px 0px 5px rgba(0,0,0,0.1), -2px 0px 5px rgba(0,0,0,0.1), 0px -2px 5px rgba(0,0,0,0.1); /* Adding borders top, left, bottom */
    position: relative; /* For the floating look */
}

#sidebar-top {
    position: sticky;
    top: 0;
    background-color: #fff;
    padding-bottom: 20px;
}

#image-previews-container {
    overflow-y: auto;
    max-height: calc(100vh - 160px); /* Adjust based on the height of your sidebar-top */
}

#image-previews img {
    width: 100%;
    margin-bottom: 10px;
    border-radius: 10px; /* Rounded corners for images */
    cursor: pointer;
}

.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
}

#image-display-area {
    width: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#current-image {
    max-width: 100%;
    max-height: 60vh;
    border-radius: 10px;
    object-fit: contain;
}

#prev-image, #next-image {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    background: #007aff;
    color: white;
    border: none;
    border-radius: 50%;
    padding: 10px;
    font-size: 24px;
}

#prev-image { left: -50px; }
#next-image { right: -50px; }

#image-caption {
    width: 60%;
    margin-top: 10px;
    border-radius: 10px;
    padding: 10px;
    resize: vertical;
}

#tag-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: 60%;
    margin-top: 10px;
}

#tag-buttons button {
    background-color: #cccccc; /* Gray color for tag buttons */
    color: black;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

button, #save-caption, #export-data, #clear-all {
    cursor: pointer;
    background-color: #007aff;
    color: white;
    border: none;
    padding: 10px 15px;
    margin: 5px;
    border-radius: 10px;
    text-transform: uppercase;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    width: 60%;
}
