/* Employee POS System Styles */
.emp-pos-container {
    height: 100vh;
    background: #FDF8EE;
    font-family: 'Poppins', sans-serif;
    padding: 15px;
    box-sizing: border-box;
}

.emp-pos-container .EMPleftmenubar {
    height: calc(100vh - 30px);
    margin: 0;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1000;
}

.emp-pos-main {
    padding: 20px;
    margin: 15px;
    margin-left: calc(15% + 30px);
    overflow-y: auto;
    height: calc(100vh - 30px);
    box-sizing: border-box;
}

.emp-pos-header {
    background: transparent;
    padding: 0;
    margin-bottom: 30px;
}

.emp-pos-header h1 {
    font-size: 3rem;
    font-weight: 900;
    color: #6F4F37;
    margin: 0 0 20px 0;
    text-align: left;
}

/* POS Layout */
.pos-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    height: calc(100vh - 200px);
}

/* Products Section */
.products-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.products-section h2 {
    color: #6F4F37;
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.product-card {
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-color: #6F4F37;
}

.product-card.selected {
    border-color: #6F4F37;
    background: #e8d5c4;
    box-shadow: 0 4px 15px rgba(111, 79, 55, 0.3);
}

.product-image {
    width: 100%;
    height: 100px;
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.product-price {
    font-weight: 700;
    color: #6F4F37;
    font-size: 1rem;
}

/* Right Section */
.right-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Customize Section */
.customize-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.customize-section h3 {
    color: #6F4F37;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.size-selection,
.quantity-selection {
    margin-bottom: 20px;
}

.size-selection label,
.quantity-selection label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.size-options {
    display: flex;
    gap: 10px;
}

.size-btn {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    color: #666;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.size-btn:hover {
    border-color: #6F4F37;
    color: #6F4F37;
}

.size-btn.active {
    background: #6F4F37;
    color: white;
    border-color: #6F4F37;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #6F4F37;
    background: white;
    color: #6F4F37;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: #6F4F37;
    color: white;
}

.quantity-input {
    width: 60px;
    height: 40px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
}

.quantity-input:focus {
    outline: none;
    border-color: #6F4F37;
}

.add-to-cart-btn {
    width: 100%;
    padding: 12px;
    background: #6F4F37;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-to-cart-btn:hover {
    background: #5a3f2f;
    transform: translateY(-1px);
}

/* Cart Section */
.cart-section {
    background: white;
    border-radius: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cart-section h3 {
    color: #6F4F37;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
}

.empty-cart {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.cart-item-price {
    color: #6F4F37;
    font-weight: 600;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-quantity-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #6F4F37;
    background: white;
    color: #6F4F37;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-quantity-btn:hover {
    background: #6F4F37;
    color: white;
}

.cart-quantity {
    min-width: 20px;
    text-align: center;
    font-weight: 600;
}

.cart-remove-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #dc3545;
    background: white;
    color: #dc3545;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-remove-btn:hover {
    background: #dc3545;
    color: white;
}

.cart-total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #6F4F37;
    text-align: center;
    font-size: 1.1rem;
    color: #6F4F37;
}

/* Payment Section */
.payment-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.payment-section h3 {
    color: #6F4F37;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.qr-section {
    margin-bottom: 20px;
}

.qr-section label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.scan-qr-btn {
    width: 100%;
    padding: 12px;
    background: #6F4F37;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scan-qr-btn:hover {
    background: #5a3f2f;
    transform: translateY(-1px);
}

.payment-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.add-points-btn {
    flex: 1;
    padding: 12px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.add-points-btn:hover {
    background: #218838;
    transform: translateY(-1px);
}

.subtract-points-btn {
    flex: 1;
    padding: 12px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.subtract-points-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.confirm-payment-btn {
    flex: 1;
    padding: 12px;
    background: #6F4F37;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
}

.confirm-payment-btn:hover {
    background: #5a3f2f;
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .pos-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .payment-actions {
        flex-direction: column;
    }
    
    .add-points-btn,
    .subtract-points-btn,
    .confirm-payment-btn {
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .emp-pos-main {
        margin: 0;
        padding: 15px;
    }
    
    .emp-pos-header h1 {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 10px;
    }
    
    .product-card {
        padding: 10px;
    }
    
    .product-image {
        height: 80px;
    }
    
    .size-options {
        flex-direction: column;
    }
    
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .cart-item-controls {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .emp-pos-container {
        padding: 10px;
    }
    
    .emp-pos-main {
        padding: 10px;
    }
    
    .products-section,
    .customize-section,
    .cart-section,
    .payment-section {
        padding: 15px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .payment-actions {
        gap: 5px;
    }
}
