﻿* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f3f6fa;
    color: #222;
}

/* LOGIN */

#login-screen {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: white;
    padding: 30px;
    border-radius: 18px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
    text-align: center;
}

.login-card h1 {
    margin-bottom: 5px;
}

.login-card p {
    color: #777;
    margin-bottom: 25px;
}

input {
    width: 100%;
    padding: 14px;
    margin-bottom: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
}

button {
    border: none;
    border-radius: 10px;
    padding: 13px 20px;
    font-size: 16px;
    cursor: pointer;
    background: #0b5cff;
    color: white;
}

.login-card button {
    width: 100%;
}

#login-error {
    margin-top: 15px;
    color: red;
}

/* DASHBOARD */

#dashboard {
    max-width: 650px;
    margin: auto;
    padding: 15px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

header h1 {
    margin: 0;
}

#shop-name {
    color: #777;
    margin-top: 4px;
}

.logout {
    background: #555;
}

/* SALES */

.sales-card {
    background: #0b5cff;
    color: white;
    padding: 25px;
    border-radius: 18px;
    text-align: center;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.12);
}

.sales-title {
    font-size: 18px;
}

#today-sales {
    font-size: 40px;
    font-weight: bold;
    margin-top: 10px;
}

/* SECTIONS */

section {
    display: block;
    width: 100%;
    margin-bottom: 25px;
}

h2 {
    margin-bottom: 15px;
}

/* STOCK + TRANSACTIONS */

#stock-list,
#transactions {
    display: block;
    width: 100%;
}

.transaction {
    width: 100%;
    background: white;
    border-radius: 15px;
    padding: 18px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.transaction strong {
    color: #111;
}

.transaction span {
    color: #555;
    line-height: 1.6;
}

.transaction:hover {
    transform: translateY(-1px);
}

/* PHONE */

@media (max-width: 500px) {

    #dashboard {
        padding: 12px;
    }

    header h1 {
        font-size: 24px;
    }

    .transaction {
        padding: 15px;
    }

    #today-sales {
        font-size: 36px;
    }
}
/* MENU BUTTONS */

.menu-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.menu-button {
    background: white;
    color: #222;
    border-radius: 18px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
}

.menu-icon {
    font-size: 35px;
}

.menu-button strong {
    display: block;
    font-size: 18px;
}

.menu-button small {
    display: block;
    color: #777;
    margin-top: 5px;
}

/* SECTIONS */

.dashboard-section {
    width: 100%;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.section-header h2 {
    margin: 0;
}

.back-button {
    background: #555;
    padding: 9px 14px;
    font-size: 14px;
}

/* MOBILE */

@media (max-width: 500px) {

    .menu-buttons {
        grid-template-columns: 1fr;
    }

}