.welcome-message {
    align-items: center;
}
  body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
#app {
    flex: 1;
    display: flex;
    flex-direction: column;
}
header {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 20px;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}
h1 {
    margin: 0;
    margin-bottom: 20px;
}
.search-bar {
    max-width: 600px;
    margin: 0 auto 20px;
}
.search-bar input {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    transition: all 0.3s ease;
}

.search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-bar input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}
.controls-wrapper {
    display: flex;
    justify-content: center;
}
.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
}
.left-controls {
    display: flex;
    gap: 10px;
}
main {
    flex: 1;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}
.product-container {
    display: grid;
    gap: 20px;
}
.product-container.grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.product-container.list {
    grid-template-columns: 1fr;
}
.product-container.compact {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.product-box {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    cursor: move;
}
.product-box:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
    background-color: rgba(255, 255, 255, 0.25);
}
.product-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 10px;
}
.product-name {
    font-weight: bold;
    margin-bottom: 5px;
    text-align: center;
}
.product-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s;
}
.product-box:hover .product-actions {
    opacity: 1;
}
.action-icon {
    cursor: pointer;
    color: #666;
}
.action-icon:hover {
    color: #333;
}
.add-product, .controls button {
    background-color: #45a049;
    color: white;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
}
.add-product:hover, .controls button:hover {
    background-color: #357a38;
}
.layout-buttons button {
    padding: 10px;
}
.layout-buttons button.active {
    background-color: #357a38;
}
.modal {
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    display: flex;
    justify-content: center;
    align-items: center;
}
.modal-content {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 30px;
    width: 80%;
    max-width: 500px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
input, textarea {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    box-sizing: border-box;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #333;
    transition: all 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: rgba(76, 175, 80, 0.6);
    background-color: rgba(255, 255, 255, 0.2);
}
.notes-tooltip {
    position: absolute;
    background-color: #f9f9f9;
    color: #333;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 1;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.product-box:hover .notes-tooltip {
    opacity: 1;
}
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px;
    position: sticky;
    bottom: 0;
}
footer a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
}
footer a:hover {
    text-decoration: underline;
}

/* Background Settings Modal Styles */
.background-settings {
    padding: 10px 0;
}

.setting-group {
    margin-bottom: 20px;
}

.setting-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.radio-group {
    display: flex;
    gap: 15px;
    margin-top: 8px;
}

.radio-group input[type="radio"] {
    width: auto;
    margin: 0 5px 0 0;
}

.radio-group label {
    font-weight: normal;
    margin: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
}

input[type="color"] {
    width: 60px;
    height: 40px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

input[type="url"] {
    width: 100%;
}

.opacity-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right, rgba(255,255,255,0.1), rgba(255,255,255,0.9));
    outline: none;
    margin: 10px 0;
}

.opacity-slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #4CAF50;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.opacity-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #4CAF50;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
@media (max-width: 768px) {
    .controls {
        flex-direction: column;
        align-items: stretch;
    }
    .left-controls {
        flex-direction: column;
        margin-bottom: 10px;
    }
    .layout-buttons {
        display: flex;
        justify-content: center;
    }
    .product-container.grid, .product-container.compact {
        grid-template-columns: 1fr;
    }
}