/* General styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #1d1f27;
    color: #e5e5e5;
}

h1, h2 {
    color: #ffffff;
    text-align: center;
    font-weight: 300;
    margin-bottom: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.main-content {
    display: flex;
    gap: 20px;
}

/* Style for the sidebar to make it scrollable */
.sidebar {
    width: 300px; /* Adjust width as needed */
    height: calc(100vh - 40px); /* Adjust height to fit the viewport minus any header/footer */
    overflow-y: auto; /* Enable vertical scrolling */
    padding-right: 10px; /* Add some padding to prevent content from sticking to the scrollbar */
    background-color: #2d2f3a;
    color: #e5e5e5;
}

.main-content {
    display: flex;
    margin-top: 20px; /* Add margin to separate from the header */
}


.design-area {
    flex: 2;
    min-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-left: 1px solid #3d3f4a;
    padding-left: 20px;
    background-color: #1d1f27;
}

.card {
    background-color: #2d2f3a;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    padding: 20px;
    margin-bottom: 20px;
}

#sticker {
    border: 2px solid #3d3f4a;
    width: 100%;
    height: 70%;
    background-color: #3a3b48;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

#sticker:hover {
    background-color: #4a4b58;
}

.field {
    cursor: move;
    padding: 5px;
    background-color: #2d2f3a;
    border: 1px solid #3d3f4a;
    border-radius: 4px;
    color: #e5e5e5;
}

.barcode {
    cursor: pointer;
    width: 180px;
    height: 40px;
    border: 1px solid #4a4b58;
    background-color: #2d2f3a;
    border-radius: 4px;
    position: absolute;
    color: #e5e5e5;
}

.qrcode {
    cursor: pointer;
    border: 1px solid #4a4b58;
    background-color: #2d2f3a;
    border-radius: 4px;
    position: absolute;
    color: #e5e5e5;
}

.dimension-inputs {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.btn {
    display: block;
    width: fit-content;
    margin: 10px auto;
    padding: 10px 20px;
    border-radius: 4px;
    border: none;
    background-color: #9b59b6;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #8e44ad;
}

.input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #3d3f4a;
    border-radius: 4px;
    font-size: 16px;
    background-color: #2d2f3a;
    color: #e5e5e5;
    transition: border-color 0.3s ease;
}

.input:focus {
    border-color: #9b59b6;
}

#output {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.output-sticker {
    border: 1px solid #3d3f4a;
    margin: 10px;
    padding: 10px;
    border-radius: 4px;
    background-color: #2d2f3a;
    width: 300px;
    height: 150px;
    color: #e5e5e5;
}

@media print {
    body * {
        visibility: hidden; /* Hide everything */
    }
    
    #output, #output * {
        visibility: visible; /* Show only #output section and its children */
    }

    #output {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
}

.delete-icon {
    position: absolute;
    top: 0;
    right: 0;
    background-color: white;
    color: black;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
    cursor: pointer;
}

.context-menu {
    position: absolute;
    background-color: #2d2f3a;
    border: 1px solid #4a4b58;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    display: none;
    z-index: 1000;
    color: #e5e5e5;
}

.context-menu-item {
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    color: #e5e5e5;
}

.context-menu-item:hover {
    background-color: #4a4b58;
}
