@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Bayon&family=Bona+Nova&family=Darker+Grotesque:wght@400;700&family=Fredoka:wght@300..700&display=swap');

h1 {
    font-family: "Fredoka", sans-serif;
    font-weight: 550;
}
h2 {
    font-family: "Fredoka", sans-serif;
    font-weight: 550;
}
h3 {
    font-family: "Fredoka", sans-serif;
    font-weight: 500;
}
h4 {
    font-family: "Fredoka", sans-serif;
    font-weight: 600;
}
.caption {
    font-family: "Fredoka", sans-serif;
    font-weight: 500;
}
h5 {
    font-family: "Fredoka", sans-serif;
}
p {
    font-family: "Fredoka", sans-serif;
}

* {
    box-sizing: border-box;
}


header {
    text-align: center;
    text-justify: auto;
}

header:after {
    content: "";
    display: table;
    clear: both;
}

.logoname {
    display: flex;
    align-items: center;
}

.logo {
    height: 40px;
    margin-right: 10px;
}

body {
    background-color: #f8f3e8;
    text-align: center;
}

.topbtn {
    font-family: "Fredoka", sans-serif;
    float: right;
    align-items: center;
    appearance: none;
    border-radius: 15px;
    border-style: none;
    box-shadow: rgba(0, 0, 0, .2) 0 3px 5px -1px,rgba(0, 0, 0, .14) 0 6px 10px 0,rgba(0, 0, 0, .12) 0 1px 18px 0;
    box-sizing: border-box;
    color: #000000;
    background-color: #f8f3e8;
    cursor: pointer;
    display: inline-flex;
    fill: currentcolor;
    font-size: 14px;
    font-weight: 500;
    height: 48px;
    justify-content: center;
    letter-spacing: .25px;
    line-height: normal;
    max-width: 100%;
    overflow: visible;
    padding: 2px 20px;
    position: relative;
    text-align: center;
    text-transform: none;
    transition: box-shadow 280ms cubic-bezier(.4, 0, .2, 1),opacity 15ms linear 30ms,transform 270ms cubic-bezier(0, 0, .2, 1) 0ms;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    width: auto;
    will-change: transform,opacity;
    z-index: 0;
    margin-right: 20px;
}

.topbtn:hover {
    background: #f3c5a8;
    color: #174ea6;
}

.content {
    padding: 15px;
    flex-grow: 1;
}

.sidebar {
    font-family: "Fredoka", sans-serif;
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: #f8f3e8;
    overflow-x: hidden;
    padding-top: 60px;
    transition: 0.5s;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
    border-right: 2px solid #f8f3e8;
}

.sidebar a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 25px;
    color: #818181;
    display: block;
    transition: 0.3s;
}

.sidebar a:hover {
    color: #f1f1f1;
}

#main {
    transition: margin-left .5s;
    margin-left: 0;
    padding: 20px;
}
  
@media screen and (max-height: 450px) {
    .sidebar {padding-top: 15px;}
    .sidebar a {font-size: 18px;}
}

.sidebar h2 {
    color: #665a53;
    font-size: 1.5em;
    margin-bottom: 20px;
}

.sidebar button {
    font-family: "Fredoka", sans-serif;
    width: 78%;
    padding: 8px 10px; 
    margin: 8px 0;
    font-size: 1em;
    font-family: inherit;
    font-weight: 400;
    color: #665a53;
    background-color: #f8ddcd;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.3s, color 0.3s;
}

.sidebar button:hover {
    background-color: #f3c5a8;
    color: #333;
}

.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    transition: margin-left 0.5s;
    margin-left: 0;
}

section {
    transition: margin-left .5s;
    background-color: #ffe7e7;
    border: 10px solid #f9ccd5;
    width: 100%;
    max-width: 800px;
    padding: 10px;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    font-family: "Fredoka", sans-serif;
}

h1, h2 {
    color: #333;
}

table {
    border: 9px solid #f9ccd5;
    border-radius: 15px;
    width: 100%;
    border-collapse: separate;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

th {
    background-color: white;
    color: rgb(0, 0, 0);
}

footer {
    font-family: "Fredoka", sans-serif;
    margin-top: 20px;
    text-align: center;
    font-size: 0.9em;
    color: #777;
    transition: margin-left .5s;
    margin-left: 0;
}

.file-chosen {
    font-family: inherit;
    color: #333;
    margin-left: 10px;
}  

.open {
    width: 220px;
}

.close {
    width: 0;
}

.openbtn {
    font-size: 20px;
    cursor: pointer;
    background-color: transparent;
    border: none;
    color: #000000;
    padding: 10px;
    position: absolute;
    top: 10px;
    left: 10px;
    font-family: inherit;
    transition: color 0.3s;
}

.closebtn {
    font-size: 20px;
    cursor: pointer;
    background-color: transparent;
    border: none;
    color: #000000;
    padding: 10px;
    position: absolute;
    top: 10px;
    left: 10px;
    font-family: inherit;
    transition: color 0.3s;
    display: none;
    z-index: 2;
}

.openbtn:hover, .closebtn:hover {
    color: #f3c5a8;
}

/* Add these styles to your user.css file */

.receipt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
}

.receipt-item {
    background: white;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.receipt-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

.receipt-image:hover {
    transform: scale(1.05);
}

.receipt-date {
    margin-top: 8px;
    color: #666;
    font-size: 0.9em;
}

.delete-receipt-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #f9ccd5;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.receipt-item:hover .delete-receipt-btn {
    opacity: 1;
}

.receipt-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
}

.modal-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

.delete-button {
    font-family: "Fredoka", sans-serif;
    font-size: 1em; /* Adjust size as needed */
    padding: 5px 10px; /* Add padding for better appearance */
    cursor: pointer; /* Pointer cursor on hover */
}

.rand-button {
    font-family: "Fredoka", sans-serif;
    font-size: 1em;
    padding: 5px 10px;
    cursor: pointer;
}