﻿/* ================= BASE ================= */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #0f172a;
    color: #e2e8f0;
    padding: 20px;
    margin: 0;
    font-size: 18px;
}

/* ================= CONTAINER ================= */
.container {
    max-width: 700px;
    margin: auto;
}

/* ================= TITLE ================= */
.title {
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ffffff;
}

/* ================= INPUT ================= */
.input {
    width: 100%;
    padding: 14px;
    margin-bottom: 12px;
    border-radius: 10px;
    border: 1px solid #334155;
    background: #1e293b;
    color: #ffffff;
    font-size: 18px;
    outline: none;
}

    .input:focus {
        border-color: #2563eb;
        box-shadow: 0 0 6px rgba(37, 99, 235, 0.5);
    }

/* ================= GRID ================= */
.grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}

/* ================= BUTTON ================= */
.btn {
    padding: 14px 16px;
    margin: 6px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    min-width: 110px;
    transition: all 0.2s ease;
    user-select: none;
}

    /* Hover / Tap effect */
    .btn:hover {
        transform: scale(1.05);
        opacity: 0.9;
    }

/* ================= COLORS ================= */
.blue {
    background: #2563eb;
    color: #ffffff;
}

.green {
    background: #16a34a;
    color: #ffffff;
}

.orange {
    background: #f59e0b;
    color: #000000;
}

.purple {
    background: #7c3aed;
    color: #ffffff;
}

.pink {
    background: #db2777;
    color: #ffffff;
}

/* ================= TABLE ================= */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 17px;
}

    .table th,
    .table td {
        padding: 10px;
        border: 1px solid #334155;
        text-align: left;
    }

    .table th {
        background: #1e293b;
        color: #ffffff;
    }

/* ================= CHART CONTAINER ================= */
canvas {
    margin-top: 20px;
}

/* ================= MOBILE OPTIMIZATION ================= */
@media (max-width: 600px) {

    body {
        padding: 12px;
        font-size: 17px;
    }

    .btn {
        min-width: 90px;
        padding: 12px;
        font-size: 16px;
    }

    .input {
        font-size: 17px;
    }
}

/* ================= MOBILE CENTER ALIGN FIX ================= */

/* Center entire container content */
.container {
    text-align: center;
}

/* Fix grid alignment to center */
.grid {
    justify-content: center !important;
}

/* Same width buttons (2 per row look) */
.btn {
    width: 45%;
    max-width: 160px;
}

/* ================= INPUT ROW (Amount + Mic) ================= */

.input-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

    .input-row .input {
        width: 100%;
        margin-bottom: 0;
    }

/* Speak button styling */
.speak-btn {
    padding: 14px 16px;
    border-radius: 10px;
    border: none;
    background: #2563eb;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}