/* ================================
   GLOBAL
================================ */
body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: #eef2f7;
    color: #2c3e50;
}

/* ================================
   LOGIN PAGE (Dashboard Style)
================================ */


.login-container {
    max-width: 400px;
    margin: 80px auto;
    background: #f4f6f9;
    padding: 35px 30px;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.login-container .logo img {
    margin-bottom: 20px;
}

.login-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #2c3e50;
}

.login-form .form-group {
    margin-bottom: 18px;
    text-align: left;
}

.login-form label {
    font-size: 14px;
    margin-bottom: 6px;
    color: #34495e;
    display: block;
}

.login-form input[type="email"],
.login-form input[type="password"] {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
    width: 100%;
    transition: 0.2s;
}

.login-form input[type="email"]:focus,
.login-form input[type="password"]:focus {
    border-color: #1abc9c;
    outline: none;
    box-shadow: 0 0 5px rgba(26, 188, 156, 0.3);
}

.login-form .error {
    font-size: 12px;
    color: #e74c3c;
    margin-top: 4px;
}

.login-form .remember label {
    font-size: 13px;
    color: #7f8c8d;
    display: flex;
    align-items: center;
    gap: 6px;
}

.login-form .actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
}

.login-form .forgot-password {
    font-size: 13px;
    color: #3498db;
    text-decoration: none;
    transition: 0.2s;
}

.login-form .forgot-password:hover {
    text-decoration: underline;
    color: #1d6fa5;
}

.btn-primary {
    background: #1abc9c;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    transition: 0.2s;
}

.btn-primary:hover {
    background: #16a085;
}

/* RESPONSIVE */
@media (max-width: 500px) {
    .login-container {
        margin: 50px 15px;
        padding: 30px 20px;
    }
}



/* ================================
   LAYOUT
================================ */
.dashboard,
.admin-layout {
    display: flex;
    min-height: 100vh;
}

/* ================================
   SIDEBAR (DASHBOARD STYLE)
================================ */
.sidebar {
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
}

.sidebar .brand {
    margin-bottom: 40px;
}
.sidebar-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #001639;
    font-size: 12px;
    transition: 0.3s;
}

.menu-item i {
    font-size: 20px;
    margin-bottom: 4px;
}

.menu-item:hover {
    color: #5a5e00;
    transform: scale(1.08);
}

.logout-btn {
    background: none;
    border: none;
    color: #001639;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    font-size: 12px;
}

.logout-btn i {
    font-size: 22px;
    color: #001639;
    margin-bottom: 4px;
}

.logout-btn:hover {
    color: #001639;
    background: none;
}
.brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #bc1a1a, hsl(348, 100%, 74%));
    border-radius: 10px;
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: center;
}

.sidebar nav a,
.sidebar nav button {
    background: none;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}



/* ================================
   MAIN CONTENT
================================ */
.content,
.main-content {
    flex: 1;
    padding: 40px;
}

.page,
.container {
    margin: auto;
    max-width: 1200px;
}

/* ================================
   HEADINGS
================================ */
h1 {
    font-size: 28px;
    margin-bottom: 5px;
}

h2 {
    font-size: 22px;
    margin-bottom: 10px;
}

.page p {
    color: #7f8c8d;
    font-size: 14px;
}

/* ================================
   STAT CARDS (DASHBOARD COLORS)
================================ */
.stats-grid {
    margin-top: 25px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    padding: 25px;
    border-radius: 12px;
    color: white;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
    transition: 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-title {
    font-size: 14px;
    opacity: 0.9;
}

.stat-value {
    font-size: 24px;
    font-weight: 600;
    margin-top: 8px;
}

.revenue {
    background: linear-gradient(135deg, #27ae60, #1e8449);
}

.sales {
    background: linear-gradient(135deg, #2980b9, #1f618d);
}

.cash {
    background: linear-gradient(135deg, #f39c12, #d68910);
}

.card {
    background: linear-gradient(135deg, #8e44ad, #6c3483);
}

/* ================================
   PANELS (WHITE CARDS)
================================ */
.panel {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-top: 30px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.panel h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

.panel ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.panel li {
    padding: 10px 0;
    border-bottom: 1px solid #edf1f5;
    font-size: 14px;
}

.panel li:last-child {
    border-bottom: none;
}

/* ================================
   2 COLUMN SECTION
================================ */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

/* ================================
   MONTH BOX
================================ */
.month-box {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.up {
    color: #27ae60;
    font-weight: 600;
}

.down {
    color: #e74c3c;
    font-weight: 600;
}

/* ================================
   PRODUCT CARDS
================================ */
.product-card {
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    background-color: white;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.color-1 {
    background: #3498db;
}

/* blue */
.color-2 {
    background: #e74c3c;
}

/* red */
.color-3 {
    background: #2ecc71;
}

/* green */
.color-4 {
    background: #f39c12;
}

/* orange */
.color-5 {
    background: #9b59b6;
}

/* purple */

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-card h2 {
    color: #FFFFFF;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.product-card p {
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* Add to cart button */
.add-to-cart {
    background-color: #2563eb;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s;
}

.add-to-cart:hover {
    background-color: #1d4ed8;
}

/* ================================
   CART TABLE
================================ */
#cartTable {
    width: 100%;
    border-collapse: collapse;
}

#cartTable th,
#cartTable td {
    border: 1px solid #ccc;
    padding: 0.5rem;
    text-align: center;
}

#cartTable th {
    background-color: #f3f4f6;
}

/* Remove item button */
.remove-item {
    background-color: #dc2626;
    color: white;
    border: none;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
}

.remove-item:hover {
    background-color: #b91c1c;
}

/* ================================
   FORM INPUTS
================================ */
input[type="text"],
input[type="number"],
input[type="email"],
select {
    border: 1px solid #ccc;
    padding: 0.5rem;
    border-radius: 6px;
    width: 100%;
}

/* Complete Sale Button */
button[type="submit"] {
    background-color: #16a34a;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
}

button[type="submit"]:hover {
    background-color: #15803d;
}

/* Preview Receipt Button */
#previewReceipt {
    background-color: #fbbf24;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

#previewReceipt:hover {
    background-color: #f59e0b;
}

/* ================================
   RECEIPT MODAL
================================ */
#receiptModal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    display: none;
}

#receiptModal .bg-white {
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    width: 400px;
    max-height: 90vh;
    overflow-y: auto;
}

#receiptContent table {
    width: 100%;
    border-collapse: collapse;
}

#receiptContent th,
#receiptContent td {
    border: 1px solid #ccc;
    padding: 5px;
    text-align: center;
}

#receiptContent .text-right {
    text-align: right;
}

/* ================================
   GRID LAYOUTS
================================ */
.grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1000px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .sidebar {
        display: none;
    }

    .content {
        padding: 20px;
    }
}