/* Beautiful POS CSS for your existing code */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    padding: 20px 0;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Header */
h2 {
    text-align: center;
    color: #2c3e50;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

/* Form Groups */
.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    font-weight: 600;
    color: #34495e;
    margin-bottom: 8px;
    display: block;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Form Controls */
.form-control {
    border: 2px solid #e8ecf0;
    border-radius: 12px;
    padding: 15px 18px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fff;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
    outline: none;
    background: #f8f9ff;
    transform: translateY(-2px);
}

.form-control:hover {
    border-color: #bdc3c7;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.form-control[readonly] {
    background: #f8f9fa;
    border-color: #dee2e6;
    color: #495057;
    font-weight: 600;
}

/* Input Groups */
.input-group {
    position: relative;
    display: flex;
    align-items: stretch;
}

.input-group .form-control {
    border-radius: 12px 0 0 12px;
    border-right: none;
}

.input-group-append .btn {
    border-radius: 0 12px 12px 0;
    border-left: none;
    padding: 15px 20px;
}

/* Buttons */
.btn {
    padding: 12px 25px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(86, 171, 47, 0.4);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(86, 171, 47, 0.6);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 65, 108, 0.4);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 65, 108, 0.6);
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, #95a5a6 0%, #34495e 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(52, 73, 94, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 73, 94, 0.6);
    color: white;
}

.btn.mt-2 {
    margin-top: 15px;
}

/* Table Styling */
.table {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    border-collapse: separate;
    border-spacing: 0;
}

.table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.table thead th {
    padding: 18px 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    font-size: 14px;
    text-align: center;
    vertical-align: middle;
}

.table tbody td {
    padding: 16px;
    vertical-align: middle;
    border-top: 1px solid #f1f3f4;
    font-size: 15px;
    text-align: center;
}

.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f3ff 100%);
    transform: scale(1.02);
}

.table tbody tr:nth-child(even) {
    background: #fafbfc;
}

.table tbody tr:nth-child(even):hover {
    background: linear-gradient(135deg, #f0f7ff 0%, #e0f0ff 100%);
}

/* Product List Animation */
#productList tbody tr {
    animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Guest Info Section */
#guest-info {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 25px;
    border: 2px solid rgba(252, 182, 159, 0.3);
    box-shadow: 0 8px 25px rgba(252, 182, 159, 0.3);
}

#guest-info label {
    color: #8b4513;
    font-weight: 700;
}

/* Product Selection Enhancement */
#productSelect {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 2px solid #e8ecf0;
}

#productSelect:focus {
    background: linear-gradient(135deg, #f8f9ff 0%, #fff 100%);
    border-color: #667eea;
}

/* Calculation Section Design */
.col-md-3 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    padding: 25px;
    border-radius: 15px;
    margin-top: 20px;
    box-shadow: 0 10px 30px rgba(245, 87, 108, 0.3);
}

.col-md-3 .form-group {
    margin-bottom: 20px;
}

.col-md-3 label {
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    font-weight: 700;
    font-size: 15px;
}

.col-md-3 .form-control {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #333;
    font-weight: 600;
    font-size: 16px;
}

.col-md-3 .form-control:focus {
    background: white;
    border-color: rgba(255, 255, 255, 0.8);
}

.col-md-3 .form-control[readonly] {
    background: rgba(255, 255, 255, 0.8);
    font-weight: 700;
    color: #2c3e50;
}

/* Product Table Enhancement */
.col-md-5 {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

/* Quantity Input Special Design */
input[type="number"][name="quantity[]"] {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 2px solid #2196f3;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
    color: #1565c0;
    width: 80px;
}

/* Price Display */
.table tbody td:nth-child(4) {
    color: #27ae60;
    font-weight: 700;
    font-size: 16px;
}

.table tbody td.total {
    color: #e74c3c;
    font-weight: 800;
    font-size: 17px;
}

/* Submit Button Special Design */
button[name="createSale"] {
    background: linear-gradient(135deg, #00b894 0%, #00a085 100%);
    color: white;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 15px;
    border: none;
    box-shadow: 0 6px 20px rgba(0, 184, 148, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    width: 100%;
    margin-top: 30px;
}

button[name="createSale"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 184, 148, 0.6);
    background: linear-gradient(135deg, #00a085 0%, #00b894 100%);
}

/* Hidden fields styling */
input[type="hidden"] {
    display: none;
}

/* Select Enhancement */
select.form-control {
    background-image: linear-gradient(45deg, transparent 50%, #667eea 50%), linear-gradient(135deg, #667eea 50%, transparent 50%);
    background-position: calc(100% - 20px) calc(1em + 2px), calc(100% - 15px) calc(1em + 2px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 45px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        padding: 20px;
        border-radius: 15px;
    }
    
    h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .table {
        font-size: 14px;
    }
    
    .table thead th,
    .table tbody td {
        padding: 12px 8px;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .col-md-3, .col-md-5 {
        margin-bottom: 20px;
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .container {
        margin: 5px;
        padding: 15px;
    }
    
    h2 {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .table-responsive {
        border-radius: 15px;
        overflow: hidden;
    }
    
    .col-md-3, .col-md-5 {
        padding: 15px;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Alert/Message Styling */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
}

.alert-success {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
    color: white;
}

.alert-danger {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    color: white;
}

/* Focus States */
*:focus {
    outline: none;
}

/* Hover Effects for Interactive Elements */
.form-control:not([readonly]):hover,
select.form-control:hover,
.btn:hover {
    cursor: pointer;
}

/* Print Media */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .container {
        box-shadow: none;
        background: white;
    }
    
    .btn {
        display: none;
    }
}