
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

header {
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    text-align: center;
    padding: 10px 0;
}

.logo {
    height: 60px;
}
@media (max-width: 768px) {
    body {
        font-size: 14px; /* Smaller font size for smaller screens */
    }
    th, td {
        font-size: 12px; /* Smaller table font size */
    }
    .username {
        font-size: 14px;
    }
}

/* Styling for Manual Fallback Section */
.fallback-container {
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 10px;
    max-width: 400px;
    margin: 20px auto;
    color: white;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.fallback-container h3 {
    margin-bottom: 20px;
    font-size: 1.5em;
    color: #00ffcc;
}

.fallback-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.fallback-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    background: rgba(255, 255, 255, 0.9);
}

.fallback-input:focus {
    outline: none;
    border-color: #00ffcc;
    box-shadow: 0 0 5px rgba(0, 255, 204, 0.8);
}

.fallback-submit {
    background: #00ffcc;
    color: black;
    padding: 10px 20px;
    font-size: 1em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.fallback-submit:hover {
    background: #00cc99;
}




#manual-entry-section {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #007BFF;
    border-radius: 10px;
    text-align: left;
}

#manual-entry-section h3 {
    color: #007BFF;
    margin-bottom: 15px;
    text-align: center;
}

#manual-entry-section form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#manual-entry-section input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#manual-entry-section button {
    align-self: center;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    th, td {
        padding: 5px; /* Reduce table cell padding */
    }
}

.delete-entry {
    background-color: #ff4d4d;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
}

.delete-entry:hover {
    background-color: #ff1a1a;
}
.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on mobile */
}

table {
    width: 100%; /* Ensure table stretches to container width */
    border-collapse: collapse;
}

th, td {
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-align: left;
}

th {
    background-color: rgba(0, 123, 255, 0.7);
    color: white;
}

tr.gain {
    background-color: rgba(0, 255, 0, 0.2);
}

tr.loss {
    background-color: rgba(255, 0, 0, 0.2);
}


.content-box {
    margin: 20px auto;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    text-align: center;
}

input[type="file"] {
    margin: 10px auto;
    display: block;
    text-align: center;
}

#ocrResult {
    font-size: 16px;
    word-wrap: break-word;
}



ul {
    list-style: none;
    padding: 0;
}

li {
    margin: 10px 0;
}

.btn {
    display: inline-block;
    margin: 10px 0;
    padding: 10px 20px;
    color: white;
    background: #007BFF;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
    cursor: pointer;
}

.btn:hover {
    background: #0056b3;
}
