/* 🌟 Background Image */
body {
    background-color: #eef5f0;
    background-size: cover;
    background-image: url('/images/background-18.jpg');
    background-attachment: fixed;
    background-position: center;
    font-family: "Arial", sans-serif;
    margin: 3%;
}

/* 🌟 Ensure All Sections Have the Same Width */
.container,
.top-bar,
.header-box,
.upload-box,
.reminders-box,
.transaction-table-container {
    max-width: 85%; /* Standardized width */
    margin: 0 auto 25px auto; /* Centers everything */
}

/* 🔹 New Top Bar Color - Soft Navy */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: darkblue;
    border-bottom: 3px solid skyblue;
    border-radius: 8px;
}

.top-bar a {
	color: skyblue;
}

/* 🔹 Fix Logout Icon Size (Locked) */
.logout-icon {
    width: 40px !important; /* Locking the correct size */
    height: auto !important;
    cursor: pointer;
}

/* 🔹 Restore Logout Tooltip */
.logout-link {
    display: flex;
    align-items: center;
    position: relative;
}

.logout-link::after {
    content: "Log Out"; /* Tooltip text */
    visibility: hidden;
    opacity: 0;
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 6px 12px;
    border-radius: 5px;
    position: absolute;
    top: 110%; /* Position below the icon */
    right: 50%;
    transform: translateX(50%);
    white-space: nowrap;
    font-weight: bold;
    font-size: 16px; /* Bigger text */
    transition: opacity 0.3s ease-in-out;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

/* 🔹 Show Tooltip on Hover */
.logout-link:hover::after {
    visibility: visible;
    opacity: 1;
}


/* 🔹 New Header & Upload Sections - Light Professional Silver */
.header-box,
.upload-box,
.reminders-box {
    background: #ecf0f1; /* Muted Silver */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
}

/* 🔹 Reminders Section */
.reminders-box ul {
    margin: 0;
    padding: 0;
    list-style-type: "\1F4CC  "; /* 📌 - emoji glyphs render in their own color regardless of CSS */
    list-style-position: inside;
    text-align: center;
}

.reminders-box li {
    font-family: "Caveat", cursive;
    font-size: 1.8em;
    font-weight: 500;
    color: #000;
}

/* 🔹 Fix Download Transactions Section Layout */
.header-box {
    display: flex;
    justify-content: space-between; /* Keep security code on the right */
    align-items: center;
}

/* 🔹 Ensure Security Code is Always Right-Aligned */
.security {
    text-align: right;
    color: #34495e; /* Deep Slate Blue */
    flex-grow: 1;
    max-width: 40%;
}

/* 🌟 Fix Upload Forms - Ensure Proper Spacing */
.upload-box {
    display: flex;
    justify-content: space-evenly; /* Spread forms evenly */
    flex-wrap: wrap;
}

/* 🔹 Upload Forms - Ensure They Align Horizontally */
.upload-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #ffffff; /* White for better contrast */
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
    width: 30%;
    min-width: 280px;
}

/* 🌟 New Text Colors for Better Contrast */
.top-link a {
    color: skyblue;
    font-weight: bold;
}

.downloads a {
    color: #1f42d1;
    font-weight: bold;
}

.top-link:hover,
.downloads a:hover {
    text-decoration: underline;
}

/* 🌟 Transactions Table */
.transaction-table-container {
    width: 100%;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1em;
    border: 1px solid #ccc;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

/* 🌟 Restore Alternating Row Colors & Hover Effect */
tr:nth-child(even) {
    background-color: #fcfcfc;
}

tr:nth-child(odd) {
    background-color: #f5f0f0;
}

tr:hover {
    background-color: #d9f2e6;
    transition: 0.3s ease-in-out;
}

/* 🔹 Top Bar Right-Side Group (Edit Account + Logout) */
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* 🌟 Account Create/Edit Page */
.top-link-static {
    color: skyblue;
    font-weight: bold;
}

.account-box {
    background: #ecf0f1;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
    max-width: 420px;
    margin: 0 auto;
    text-align: center;
}

.puppy-img {
    width: 160px;
    height: 160px;
    display: block;
    margin: 0 auto 15px auto;
}

.account-form {
    display: flex;
    flex-direction: column;
    text-align: left;
    background: #ffffff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
}

.account-form label {
    font-weight: bold;
    margin-top: 10px;
    color: #34495e;
}

.account-form input {
    padding: 8px;
    margin-top: 4px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.account-form button {
    margin-top: 18px;
    padding: 10px;
    background: darkblue;
    color: skyblue;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.account-form button:hover {
    background: navy;
}

.account-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.account-hint {
    font-size: 0.85em;
    color: #34495e;
    margin-top: 10px;
}

.account-errors {
    background: #fdecea;
    color: #b30000;
    border: 1px solid #f5c2c0;
    border-radius: 5px;
    padding: 10px 15px;
    margin-bottom: 15px;
    text-align: left;
}

.account-success {
    background: #e6f4ea;
    color: #1e7d34;
    border: 1px solid #b7e1c1;
    border-radius: 5px;
    padding: 10px 15px;
    margin-bottom: 15px;
}

/* 🌟 Silver Price Section */
.silver-price {
    font-size: 1.2em;
    font-weight: bold;
    color: darkblue; /* Matches the top bar */
    text-align: center;
    flex-grow: 1; /* Allows it to expand */
    padding: 10px;
}



