body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

/* Header */
header {
    background: linear-gradient(to right, #0044cc, #00cc66);
    color: white;
    text-align: center;
    padding: 15px;
}

/* History Container */
.history-container {
    max-width: 800px;
    margin: 20px auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

/* Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

th, td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}

th {
    background: #0044cc;
    color: white;
}

img {
    border-radius: 5px;
}

/* Buttons */
button {
    padding: 10px 15px;
    background: #0044cc;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 5px;
}

button:hover {
    background: #0033a0;
}

/* Footer */
footer {
    text-align: center;
    padding: 10px;
}

footer button {
    background: red;
}

footer button:hover {
    background: darkred;
}
/* Mobile Menu Button */
.menu-toggle {
    display: none;
    font-size: 24px;
    background: #0033a0;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    cursor: pointer;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    transition: background 0.3s, transform 0.2s;
}

.menu-toggle:hover {
    background: #002080;
    transform: scale(1.05);
}

/* Navigation Menu */
nav {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

/* 3D Button Navigation Links */
nav ul li a {
    background: #0033a0;
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 12px 18px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    display: inline-block;
    text-align: center;
}

nav ul li a:hover {
    background: #002080;
    transform: translateY(-2px);
    box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.3);
}

/* Footer */
footer {
    background: #222;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 20px;
    font-size: 14px;
}

.footer-menu ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.footer-menu ul li a {
    color: white;
    text-decoration: none;
}

/* Footer Search */
.footer-search {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.footer-search input {
    padding: 8px;
    width: 200px;
    border-radius: 5px;
    border: none;
}

.footer-search button {
    padding: 8px 12px;
    background: #00cc66;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: auto;
}

.footer-search button:hover {
    background: #008f4f;
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    .upload-container {
        width: 95%;
    }

    .menu-toggle {
        display: block;
        margin: 10px auto;
    }

    nav ul {
        display: none;
        flex-direction: column;
        background: #0033a0;
        width: 100%;
        position: absolute;
        top: 60px;
        left: 0;
        padding: 10px;
        text-align: center;
    }

    nav ul.show {
        display: flex;
    }

    .footer-search {
        flex-direction: column;
        align-items: center;
    }

    .footer-search input,
    .footer-search button {
        width: 90%;
    }
}
/* Make table responsive */
.table-container {
    overflow-x: auto;
    max-width: 100%;
}

/* Mobile styles */
@media screen and (max-width: 768px) {
    table {
        font-size: 12px;
        min-width: 600px; /* Ensures scrolling instead of breaking */
    }

    th, td {
        padding: 6px;
        text-align: center;
    }

    .table-container {
        overflow-x: auto;
    }
}
.receipt-text {
    background: #f4f4f4;
    padding: 10px;
    border-radius: 5px;
    white-space: pre-wrap; /* ✅ Keeps proper text formatting */
    font-family: monospace;
    max-width: 100%;
    overflow-x: auto;
}

/* ✅ Default Navigation for Desktop */
nav {
    display: flex;
    justify-content: center;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.logo img {
    width: 50px;
    height: 50px;
    margin-right: 10px;
}

/* Ensure all table text aligns left */
#receiptTable {
    width: 100%; /* Ensures the table spans the container */
    border-collapse: collapse; /* Removes extra spacing between table cells */
}

#receiptTable th, 
#receiptTable td {
    text-align: left; /* Aligns table header and cell text to the left */
    padding: 8px 12px; /* Adds spacing for readability */
}

/* Optional: Ensure the table container aligns text left */
.table-container {
    text-align: left;
}
