:root {
    --bg: #f0f4f8;
    --card: #ffffff;
    --border: #e0e5eb;
    --text: #333;
    --muted: #555;
    --accent1: #FF4081;
    --accent2: #9C27B0;
    --accent3: #00BFA5;
    --accent4: #FF5722;
    --radius: 14px;
    --shadow: 0 4px 12px rgba(0,0,0,0.1);
}

body {
    margin: 0;
    font-family: "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

.container {
    padding: 16px;
    max-width: 600px;
    margin: auto;
}

/* Cards */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px;
    margin-bottom: 20px;
    transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}
.card h2 {
    margin-top:0;
    color: var(--accent2);
}
.card h3 {
    margin-top:0;
    color: var(--accent4);
}

/* Buttons */
.btn {
    border:none;
    border-radius:8px;
    padding:10px 18px;
    font-weight:600;
    cursor:pointer;
    transition:transform .15s, box-shadow .15s;
    color:#fff;
}
.btn--neon {
    background:linear-gradient(90deg,var(--accent1),var(--accent2));
}
.btn--neon:hover { transform:translateY(-2px); box-shadow:0 4px 10px rgba(156,39,176,0.4); }
.btn--ghost {
    background:transparent; color:var(--accent2);
    border:2px solid var(--accent2);
}
.btn--ghost:hover { background:var(--accent2); color:#fff; }
.btn--outline {
    background:transparent; color:var(--accent3);
    border:2px solid var(--accent3);
}
.btn--outline:hover { background:var(--accent3); color:#fff; }
.btn--glass {
    background:linear-gradient(90deg,var(--accent3),var(--accent1));
}
.btn--glass:hover { opacity:.9; }

/* Toast */
.toast {
    position:fixed;
    bottom:40px;
    left:50%;
    transform:translateX(-50%) scale(0.9);
    background:linear-gradient(90deg,var(--accent2),var(--accent1));
    color:#fff;
    padding:10px 18px;
    border-radius:999px;
    box-shadow:0 4px 14px rgba(0,0,0,0.3);
    opacity:0;
    transition:all .3s;
}
.toast.show { opacity:1; transform:translateX(-50%) scale(1); }

/* Modal */
.modal {
    position:fixed; inset:0;
    display:flex; justify-content:center; align-items:center;
    background:rgba(0,0,0,0.5);
    z-index:100;
}
.modal-card {
    background:#fff;
    border-radius:12px;
    padding:20px;
    max-width:800px;
    width:90%;
    box-shadow:var(--shadow);
}
.modal-close {
    position:absolute; right:16px; top:10px;
    background:transparent; border:none; font-size:22px; cursor:pointer; color:var(--muted);
}
.modal-body {
    white-space:pre-wrap; color:var(--muted);
    max-height:60vh; overflow:auto; font-size:14px;
}

/* History List */
.history-list{
    display:flex;
    flex-direction:column;
    gap:14px;
}

/* Single Item */
.history-item{
    border:1px solid var(--border);
    border-radius:12px;
    padding:14px;
    background:#fff;
    box-shadow:0 3px 8px rgba(0,0,0,0.08);
    transition:transform .2s ease, box-shadow .2s ease;
}

.history-item:hover{
    transform:translateY(-2px);
    box-shadow:0 6px 14px rgba(0,0,0,0.12);
}

/* Header */
.history-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:8px;
}

.history-date{
    font-size:13px;
    color:var(--muted);
}

.history-area{
    font-weight:700;
    color:var(--accent2);
}

/* Body */
.history-body{
    font-size:14px;
    line-height:1.6;
    color:var(--text);
}

/* Footer */
.history-footer{
    margin-top:10px;
    display:flex;
    justify-content:flex-end;
}

.price{
    font-weight:700;
    color:var(--accent4);
    font-size:16px;
}

/* Mobile layout */
@media (max-width:480px){

    .history-header{
        flex-direction:column;
        align-items:flex-start;
        gap:4px;
    }

    .history-footer{
        justify-content:flex-start;
        margin-top:8px;
    }

    .price{
        font-size:15px;
    }

}

/* Footer */
.footer {
    text-align:center;
    padding:16px;
    color:#777;
    font-size:13px;
}

/* Empty State Styling */
.history-empty {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.5);
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    color: var(--muted);
    font-style: italic;
    grid-column: 1 / -1; /* Works if you ever switch to grid */
}

/* Optional: Add a small icon-like effect */
.history-empty::before {
    content: "📁";
    display: block;
    font-size: 2rem;
    margin-bottom: 10px;
    opacity: 0.5;
}
