* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f6f8;
}

.auth-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.auth-box {
    width: 100%;
    max-width: 420px;
    background: white;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.auth-box h1 {
    margin: 0;
    text-align: center;
}

.auth-subtitle {
    text-align: center;
    color: #777;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 7px;
    font-size: 15px;
}

.form-group input:focus {
    outline: none;
    border-color: #555;
}

.auth-button {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 7px;
    background: #222;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

.auth-button:hover {
    background: #444;
}

.auth-link {
    text-align: center;
    margin-top: 20px;
}

.auth-link a {
    text-decoration: none;
    font-weight: bold;
}

.message {
    padding: 12px;
    border-radius: 7px;
    margin-bottom: 20px;
}

.message.error {
    background: #ffe5e5;
    color: #b00000;
}

.message.success {
    background: #e5f8e9;
    color: #08752b;
}

.dashboard {
    padding: 40px;
}


/* =========================
   DASHBOARD
========================= */

.dashboard-layout {
    min-height: 100vh;
    display: flex;
}

.sidebar {
    width: 240px;
    background: #222;
    color: white;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.sidebar-logo {
    font-size: 22px;
    font-weight: bold;
    padding: 25px 20px;
    border-bottom: 1px solid #444;
}

.sidebar-menu {
    padding: 20px 10px;
    flex: 1;
}

.sidebar-menu a {
    display: block;
    color: #ccc;
    text-decoration: none;
    padding: 13px 15px;
    margin-bottom: 5px;
    border-radius: 7px;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: #444;
    color: white;
}

.sidebar-bottom {
    padding: 20px;
    border-top: 1px solid #444;
}

.admin-name {
    margin-bottom: 12px;
    font-weight: bold;
}

.sidebar-bottom a {
    color: #ccc;
    text-decoration: none;
}

.dashboard-main {
    flex: 1;
    padding: 35px;
    background: #f4f6f8;
}

.dashboard-header {
    margin-bottom: 30px;
}

.dashboard-header h1 {
    margin: 0 0 8px;
}

.dashboard-header p {
    color: #777;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 35px;
}

.dashboard-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
}

.card-title {
    color: #777;
    margin-bottom: 12px;
}

.card-value {
    font-size: 28px;
    font-weight: bold;
}

.dashboard-section {
    background: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.dashboard-section h2 {
    margin-top: 0;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.quick-action {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    border: 1px solid #eee;
    border-radius: 8px;
    text-decoration: none;
    color: #222;
}

.quick-action:hover {
    background: #f7f7f7;
}

.quick-action > span {
    width: 42px;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #eee;
    border-radius: 8px;
    font-size: 22px;
}

.quick-action strong,
.quick-action small {
    display: block;
}

.quick-action small {
    color: #777;
    margin-top: 4px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header a {
    text-decoration: none;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #777;
}

.primary-button {
    display: inline-block;
    background: #222;
    color: white;
    padding: 12px 20px;
    border-radius: 7px;
    text-decoration: none;
    margin-top: 10px;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {

    .dashboard-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 650px) {

    .sidebar {
        width: 190px;
    }

    .dashboard-main {
        padding: 20px;
    }

    .dashboard-cards {
        grid-template-columns: 1fr;
    }

}





/* =========================
   PRICES
========================= */

.price-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 15px;
    align-items: end;
}

.price-form-button {
    padding-bottom: 18px;
}

.table-container {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.data-table th,
.data-table td {
    padding: 14px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.data-table th {
    background: #f7f7f7;
    font-weight: bold;
}

.data-table tr:hover {
    background: #fafafa;
}

.edit-button,
.delete-button,
.cancel-button {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    margin-right: 5px;
}

.edit-button {
    background: #eee;
    color: #222;
}

.delete-button {
    background: #ffe5e5;
    color: #b00000;
}

.cancel-button {
    background: #eee;
    color: #222;
    margin-top: 15px;
}

.edit-button:hover {
    background: #ddd;
}

.delete-button:hover {
    background: #ffd0d0;
}

.cancel-button:hover {
    background: #ddd;
}


/* Responsive */

@media (max-width: 900px) {

    .price-form-grid {
        grid-template-columns: 1fr 1fr;
    }

}

@media (max-width: 600px) {

    .price-form-grid {
        grid-template-columns: 1fr;
    }

}







/* ============================================================
   ADD BATCH - POS INTERFACE
============================================================ */

.batch-header-card {
    margin-bottom: 20px;
}

.batch-header-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 20px;
    align-items: center;
}

.batch-header-grid > div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.batch-label {
    font-size: 13px;
    color: #777;
    font-weight: 500;
}

.batch-number {
    font-size: 22px;
}

.persons-box label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
}

.persons-box input {
    width: 100%;
    max-width: 180px;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 18px;
    outline: none;
}

.persons-box input:focus {
    border-color: #555;
}


/* ============================================================
   POS LAYOUT
============================================================ */

.pos-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.9fr);
    gap: 20px;
    align-items: start;
}

.pos-left {
    min-width: 0;
}

.pos-right {
    min-width: 0;
}


/* ============================================================
   QUANTITY DISPLAY
============================================================ */

.quantity-display-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.quantity-title {
    font-size: 16px;
    font-weight: 600;
    color: #555;
}

.quantity-display {
    min-width: 100px;
    text-align: center;
    font-size: 30px;
    font-weight: 700;
    padding: 8px 20px;
    background: #f5f5f5;
    border-radius: 10px;
}


/* ============================================================
   KEYPAD
============================================================ */

.keypad-card {
    margin-bottom: 20px;
}

.keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.keypad-button {
    height: 65px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fafafa;
    font-size: 24px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.15s ease;
    touch-action: manipulation;
}

.keypad-button:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
}

.keypad-button:active {
    transform: scale(0.96);
}

.keypad-clear {
    background: #f5f5f5;
}

.keypad-backspace {
    background: #f5f5f5;
}


/* ============================================================
   SECTION TITLE
============================================================ */

.pos-section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}


/* ============================================================
   PRICE GRID
============================================================ */

.prices-pos-card {
    min-width: 0;
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    gap: 12px;
}

.price-button {
    min-height: 115px;
    padding: 15px 10px;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 8px;

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease;

    touch-action: manipulation;
}

.price-button:hover {
    background: #fafafa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.price-button:active {
    transform: scale(0.97);
}

.price-button-name {
    font-size: 17px;
    font-weight: 700;
    text-align: center;
    word-break: break-word;
}

.price-button-price {
    font-size: 16px;
    color: #555;
    font-weight: 600;
}


/* ============================================================
   CURRENT BATCH
============================================================ */

.current-batch-card {
    position: sticky;
    top: 20px;
}

.current-batch-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.current-batch-header h2 {
    margin: 0 0 4px;
    font-size: 20px;
}

.current-batch-header span {
    color: #888;
    font-size: 13px;
}

.clear-batch-button {
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 7px;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: 600;
}

.clear-batch-button:hover {
    background: #f5f5f5;
}


/* ============================================================
   CART
============================================================ */

.cart-items {
    min-height: 250px;
    max-height: 420px;
    overflow-y: auto;
    padding: 10px 0;
}

.empty-cart {
    min-height: 220px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
    color: #999;
}

.empty-cart-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.empty-cart p {
    margin: 0 0 5px;
    font-weight: 600;
    color: #777;
}

.empty-cart span {
    font-size: 13px;
}


/* ============================================================
   CART ITEM
============================================================ */

.cart-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    align-items: center;
    gap: 10px;

    padding: 12px 0;

    border-bottom: 1px solid #eee;
}

.cart-item-info {
    min-width: 0;
}

.cart-item-name {
    font-weight: 700;
    word-break: break-word;
}

.cart-item-price {
    font-size: 12px;
    color: #888;
    margin-top: 3px;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cart-control-button {
    width: 32px;
    height: 32px;

    border: 1px solid #ddd;
    background: #fff;
    border-radius: 7px;

    font-size: 18px;
    cursor: pointer;

    touch-action: manipulation;
}

.cart-control-button:hover {
    background: #f5f5f5;
}

.cart-item-quantity {
    min-width: 28px;
    text-align: center;
    font-weight: 700;
}

.cart-item-total {
    min-width: 75px;
    text-align: right;
    font-weight: 700;
}

.cart-remove-button {
    width: 30px;
    height: 30px;

    border: none;
    background: transparent;

    font-size: 22px;
    color: #999;

    cursor: pointer;
}

.cart-remove-button:hover {
    color: #555;
}


/* ============================================================
   SUMMARY
============================================================ */

.cart-summary {
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    padding: 8px 0;

    color: #555;
}

.summary-row strong {
    color: #222;
}

.discount-field {
    display: flex;
    align-items: center;

    border: 1px solid #ddd;
    border-radius: 7px;
    overflow: hidden;
    background: #fff;
}

.discount-field span {
    padding-left: 10px;
    color: #777;
}

.discount-field input {
    width: 90px;
    border: none;
    outline: none;
    padding: 9px 8px;
    font-size: 15px;
    text-align: right;
}

.final-row {
    margin-top: 8px;
    padding-top: 15px;
    border-top: 1px solid #ddd;

    font-size: 18px;
}

.final-row strong {
    font-size: 23px;
}

.amount-row {
    font-size: 14px;
    color: #888;
}


/* ============================================================
   SAVE BUTTON
============================================================ */

.save-batch-button {
    width: 100%;

    margin-top: 18px;

    min-height: 55px;

    border: none;
    border-radius: 10px;

    background: #222;
    color: #fff;

    font-size: 16px;
    font-weight: 700;

    cursor: pointer;

    transition: 0.15s ease;

    touch-action: manipulation;
}

.save-batch-button:hover {
    background: #333;
}

.save-batch-button:active {
    transform: scale(0.98);
}


/* ============================================================
   TABLET
============================================================ */

@media (max-width: 1100px) {

    .pos-layout {
        grid-template-columns: 1fr;
    }

    .current-batch-card {
        position: static;
    }

    .pos-right {
        order: 2;
    }

    .pos-left {
        order: 1;
    }

    .price-grid {
        grid-template-columns: repeat(4, 1fr);
    }

}


/* ============================================================
   MOBILE / SMALL TABLET
============================================================ */

@media (max-width: 700px) {

    .batch-header-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .persons-box input {
        max-width: none;
    }

    .price-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .price-button {
        min-height: 105px;
    }

    .keypad-button {
        height: 60px;
    }

    .cart-items {
        max-height: none;
    }

}


/* ============================================================
   SMALL PHONES
============================================================ */

@media (max-width: 420px) {

    .quantity-display-card {
        padding: 12px;
    }

    .quantity-display {
        min-width: 80px;
        font-size: 25px;
    }

    .keypad {
        gap: 7px;
    }

    .keypad-button {
        height: 55px;
        font-size: 21px;
    }

    .price-grid {
        gap: 8px;
    }

    .price-button {
        min-height: 95px;
        padding: 10px 6px;
    }

    .price-button-name {
        font-size: 15px;
    }

    .price-button-price {
        font-size: 14px;
    }

    .cart-item {
        grid-template-columns: minmax(0, 1fr) auto auto;
        gap: 7px;
    }

    .cart-item-controls {
        grid-column: 2;
    }

    .cart-item-total {
        grid-column: 1 / 2;
        grid-row: 2;
        text-align: left;
        font-size: 14px;
    }

    .cart-remove-button {
        grid-column: 3;
        grid-row: 1;
    }

}
































