/* Transaction Panel Container */
.transaction-panel {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin: 10px;
}

.transaction-panel h2 {
    color: #2c3e50;
    border-bottom: 2px solid #f1f1f1;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

/* Table Design inside Transaction */
.pos-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.pos-table th {
    background-color: #f8f9fa;
    padding: 15px;
    text-align: left;
    color: #7f8c8d;
    font-size: 13px;
    text-transform: uppercase;
}

.pos-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    font-size: 16px;
    color: #2c3e50;
}

/* Cart Summary Section */
.cart-summary {
    background: #fdfdfd;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #edf2f7;
    text-align: right; /* I-align sa tuo para standard POS look */
}

.cart-summary h3 {
    font-size: 32px; /* Dako ang Total */
    color: #1f6f5e;
    margin-bottom: 20px;
}

.cart-summary label {
    font-weight: bold;
    font-size: 18px;
    margin-right: 10px;
}

/* Cash Input Box */
.input-cash {
    font-size: 24px;
    padding: 10px;
    width: 200px;
    border: 2px solid #ddd;
    border-radius: 8px;
    text-align: right;
    margin-bottom: 20px;
    font-family: 'Courier New', Courier, monospace;
}

.input-cash:focus {
    border-color: #1f6f5e;
    outline: none;
    box-shadow: 0 0 10px rgba(31, 111, 94, 0.1);
}

/* Confirm Purchase Button */
.btn-confirm {
    display: block;
    width: 100%; /* Full width para dali ma-click */
    background: #1f6f5e; /* Consistent sa imong color theme */
    color: white;
    font-size: 20px;
    font-weight: bold;
    padding: 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s ease;
}

.btn-confirm:hover {
    background: #155a4d;
    transform: scale(1.01);
}


/* POS Product  */
.product-row td {
    vertical-align: middle; /* Para pantay ang text ug ang input/button */
    padding: 12px 10px;
}

/* Quantity Input Styling */
input[type="number"] {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    color: #2c3e50;
}

input[type="number"]:focus {
    border-color: #1f6f5e;
    outline: none;
}

/* Add to Cart Button */
.btn-add-cart {
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 13px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-add-cart:hover {
    background-color: #219150;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
}

.btn-add-cart:active {
    transform: scale(0.95);
}

/* Specific Stock Color for POS */
.selling-price {
    font-weight: 700;
    color: #2c3e50;
}

/* Brand Filter Container */
.brand-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    padding: 10px 0;
}

/* Base style sa Filter Buttons */
.btn-filter {
    background-color: #ffffff;
    color: #2c3e50;
    border: 1px solid #dcdde1;
    padding: 8px 18px;
    border-radius: 20px; /* Round shape para limpyo tan-awon */
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Inig itunong ang mouse (Hover) */
.btn-filter:hover {
    border-color: #1f6f5e;
    color: #1f6f5e;
    background-color: #f1f8f6;
}

/* Ang "Active" button (katong gipili sa user) */
.btn-filter.active {
    background-color: #1f6f5e;
    color: white;
    border-color: #1f6f5e;
    box-shadow: 0 4px 8px rgba(31, 111, 94, 0.2);
}

/* Low Stock Highlight para sa POS */
.low-stock {
    background-color: #ffcccc !important; /* Light Red Background */
    color: #b30000 !important;           /* Dark Red Text */
    font-weight: 800 !important;         /* Bold Text */
    border-radius: 4px;
}

/* Optional: Para sa table row mismo kung gusto nimo ma-notice dayon */
tr.product-row td.low-stock {
    border: 1px solid #ff9999;
}


/* Login Page  */
.login-body {
    background: linear-gradient(rgba(31, 111, 94, 0.8), rgba(31, 111, 94, 0.8)), 
                url('https://images.unsplash.com/photo-1486006396113-c7b3df928531?q=80&w=2106&auto=format&fit=crop'); /* Motor parts style background */
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
}

.loginform {
    background: white;
    padding: 40px;
    width: 100%;
    max-width: 380px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    text-align: center;
}

.loginform h2 {
    color: #1f6f5e;
    margin-bottom: 10px;
    font-size: 24px;
}

.loginform p {
    color: #666;
    margin-bottom: 25px;
    font-size: 14px;
}

.loginform input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box; /* Siguroon nga dili molapas ang input */
}

.loginform input:focus {
    border-color: #1f6f5e;
    outline: none;
    box-shadow: 0 0 8px rgba(31, 111, 94, 0.2);
}

.login-btn-container {
    display: flex;
    gap: 10px;
}

.btn-login-submit {
    flex: 2;
    background-color: #1f6f5e;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn-login-cancel {
    flex: 1;
    background-color: #f1f1f1;
    color: #666;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
}

.btn-login-submit:hover { background-color: #155a4d; }
.btn-login-cancel:hover { background-color: #ddd; }