:root {
    --primary: #8B4513;
    --secondary: #D2B48C;
    --accent: #A52A2A;
    --light: #FFF8DC;
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
}

body {
    font-family: 'Pacifico', cursive;
    background: var(--light);
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

h2{
    font-size: 35px;
    text-align: center;
    margin-bottom: 1rem;
}

header {
    background: linear-gradient(45deg, var(--primary), var(--accent));
    color: white;
    padding: 1rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(45deg, var(--secondary), var(--primary));
    color: white;
    box-shadow: var(--shadow);
}

.btn-danger {
    background: linear-gradient(45deg, #FF4B4B, #D33F3F);
    color: white;
}

.btn-generate {
    background: linear-gradient(45deg, var(--primary), var(--accent));
    color: white;
}

.notification {
    position: fixed;
    top: 20px;
    right: -300px;
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    z-index: 1000;
}

.notification.show {
    right: 20px;
}

.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    padding: 2rem;
    background: rgba(255,255,255,0.9);
    margin: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.product {
    background: linear-gradient(45deg, var(--secondary), var(--primary));
    color: white;
    padding: 1rem;
    border-radius: 15px;
    cursor: grab;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.product:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.btn-clear {
    background: linear-gradient(45deg, #FF6B6B, #FF3838);
    color: white;
    margin-left: 0.1rem;
    margin-top: 1rem;

}

.btn-clear:hover {
    background: linear-gradient(45deg, #FF3838, #FF6B6B);
}

.tables {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.table {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.drop-zone {
    min-height: 150px;
    border: 3px dashed var(--primary);
    border-radius: 15px;
    margin: 1rem 0;
    padding: 1rem;
    transition: all 0.3s ease;
}

.consumed-products {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 1rem 0;
}

.product-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    background: var(--light);
    border-radius: 8px;
}

.bill-total {
    font-size: 1.2rem;
    color: var(--accent);
    font-weight: bold;
    text-align: right;
}

/* Glassmorphism y Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    width: 80%;
    max-width: 1000px;
    margin: 2% auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-sidebar {
    background: rgba(255, 255, 255, 0.6);
    padding: 15px;
    border-radius: 15px;
}

.modal-main {
    position: relative;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: var(--primary);
}

.modal-product-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    margin: 5px 0;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-product-item:hover {
    transform: translateX(5px);
    background: rgba(210, 180, 140, 0.3);
}

.delete-product {
    color: #ff4444;
    margin-left: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.delete-product:hover {
    transform: scale(1.2);
}

.total-bar{
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 35px;
}

@media (max-width: 768px) {
    .products {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}
