/* === NEW: Modern Bootstrap Navbar Customization (additive, doesn't break existing) === */

/* Modern Bootstrap Navbar Customization */
.navbar-custom {
    background-color: #6ba3e8 !important;
    min-height: 60px;
    padding: 0.5rem 1rem;
}

/* Brand styling */
.moneybots-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white !important;
    font-weight: bold;
    font-size: 1.25rem;
}

.moneybots-brand:hover {
    color: #f1f1f1 !important;
}

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

.brand-text {
    color: white;
}

/* Navigation links */
.navbar-custom .navbar-nav .nav-link {
    color: white !important;
    font-weight: 500;
    padding: 0.75rem 1rem !important;
    border-radius: 6px;
    margin: 0 2px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    min-height: 44px; /* Touch-friendly minimum */
}

.navbar-custom .navbar-nav .nav-link:hover,
.navbar-custom .navbar-nav .nav-link:focus {
    color: #f1f1f1 !important;
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-custom .navbar-nav .nav-link i {
    margin-right: 6px;
    width: 16px;
    text-align: center;
}

/* Hide text on smaller screens, show icons only */
@media (max-width: 991px) {
    .navbar-custom .navbar-nav .nav-link .nav-text {
        display: none;
    }

    .navbar-custom .navbar-nav .nav-link {
        padding: 0.75rem 0.75rem !important;
    }
}

/* Mobile hamburger button */
.navbar-custom .navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.375rem 0.75rem;
}

.navbar-custom .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

.navbar-custom .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* User dropdown modern styling */
.user-dropdown-modern .user-profile-link {
    display: flex;
    align-items: center;
    color: white !important;
    text-decoration: none;
    padding: 0.5rem 0.75rem !important;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.user-dropdown-modern .user-profile-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #f1f1f1 !important;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.user-email {
    font-size: 0.9rem;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* User dropdown menu */
.user-dropdown-menu {
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    margin-top: 8px;
    min-width: 220px;
}

.user-dropdown-menu .dropdown-header {
    color: #6c757d;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.75rem 1rem 0.25rem;
}

.user-dropdown-menu .dropdown-item {
    padding: 0.75rem 1rem;
    color: #333;
    border-radius: 0;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.user-dropdown-menu .dropdown-item:hover {
    background-color: #f8f9fa;
    color: #4a90e2;
}

.user-dropdown-menu .dropdown-item i {
    margin-right: 10px;
    width: 16px;
    text-align: center;
    opacity: 0.7;
}

.user-dropdown-menu .dropdown-item:hover i {
    opacity: 1;
}

.user-dropdown-menu .dropdown-item.text-danger:hover {
    background-color: #dc3545;
    color: white;
}

.user-dropdown-menu .dropdown-item.text-danger:hover i {
    color: white;
}

/* Dropdown dividers */
.user-dropdown-menu .dropdown-divider {
    margin: 0.5rem 0;
    border-color: #e9ecef;
}

/* More dropdown for mobile */
.navbar-custom .dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
}

.navbar-custom .dropdown-menu .dropdown-item i {
    margin-right: 10px;
    width: 16px;
    text-align: center;
}

/* === END: New navbar styles === */

/* styling for AI assist accordian display */
/* Accordion header font */
.accordion-button {
    font-weight: 600;
    color: #0d6efd;
}

/* Accordion body spacing */
.accordion-body dl dt {
    font-weight: 500;
}
.accordion-body dl dd {
    margin-bottom: 0.5rem;
}

/* Tables inside AI responses */
.ai-assist-widget table {
    font-size: 0.875rem; /* smaller font for readability */
}
.ai-assist-widget table th {
    background-color: #f8f9fa;
    font-weight: 600;
}
.ai-assist-widget table td, 
.ai-assist-widget table th {
    padding: 0.4rem 0.6rem;
}

/* General reset for the navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #6ba3e8;
    position: relative;
    color: white;
    height: 40px; /* Fixed height for navbar */
}

.moneybots-icon {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit; /* Ensure it matches the rest of the navbar */
}

.moneybots-icon img {
    height: 40px; /* Adjust the size of the icon as needed */
    margin-right: 8px; /* Space between the icon and text */
}

.moneybots-text {
    font-weight: bold;
    font-size: 1.2rem; /* Adjust the font size as needed */
    color: white; /* Match the navbar text color */
}

/* Navigation links container */
.nav-links {
    display: flex;
    align-items: center;
    margin-right: 20px; /* Adjust spacing if needed */
}

/* Navigation links */
nav a {
    margin: 0 10px;
    text-decoration: none;
    color: white;
    font-size: 16px; /* Increase font size */
    font-weight: bold; /* Make text bold */
}

nav a:hover {
    color: #f1f1f1; /* Light hover color */
}

/* Add space between the last nav item (Trades) and the logged-in icon */
.nav-links a:last-child {
    margin-right: 20px; /* Adjust the value as needed */
}

/* User Dropdown */
.user-dropdown {
    position: relative;
    display: inline-flex; /* Keeps the icon and email in a row */
    align-items: center;
    margin-left: auto; /* Push the user icon to the right */
}

.user-dropdown .user-icon {
    width: 30px;
    height: 30px;
    margin-right: 8px;
    cursor: pointer;
}

.user-dropdown span {
    color: white; /* Make sure username is visible */
    font-size: 16px;
    margin-right: 10px;
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%; /* This ensures the dropdown appears below the icon */
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 4px;
}

.user-dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
}

.dropdown-content a:hover {
    background-color: #007bff; /* Change to a blue color */
    color: white; /* Text color on hover */
}



/* --- Global Styles --- */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    color: #333;
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

header {
    background-color: #6ba3e8;
    padding: 10px;
    text-align: center;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
}

.page-wrapper {
    padding: 20px;
    border-radius: 8px;
    background-color: #f4f4f9;
}

/* --- Form Container Styles --- */
form {
    max-width: 400px;
    margin: 30px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* --- Form Elements --- */
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 5px;
    text-align: left;
}

.checkbox-field {
    flex-shrink: 0;
    margin-left: 5px;
}

/* user settings */
.user-settings .alerts-group {
    display: flex; /* Align child elements side by side */
    gap: 20px; /* Add space between the alert items */
    align-items: left; /* Center-align items vertically */
}

.user-settings .alert-item {
    display: flex;
    align-items: left;
    gap: 8px; /* Space between label and checkbox */
}

.user-settings .form-group {
    margin-bottom: 20px; /* Ensure consistent spacing between sections */
}

/* --- Form Elements --- */
.input-field,
select { 
    width: 100%;
    padding: 8px;  /* Adjusted padding to match other elements */
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 14px;
    margin-bottom: 5px;
    box-sizing: border-box; /* Ensures consistent sizing */
    line-height: 1.5; /* Aligns the text height inside the select element */
    height: 38px; /* Set the height to ensure uniformity */
}

.input-field,
textarea,
input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 14px;
    box-sizing: border-box;
    margin-top: 5px;
    height: 38px; /* Set height to match other elements */
}

textarea {
    resize: vertical;
    min-height: 100px; /* Adjust for better appearance */
}

input[type="checkbox"] {
    margin-right: 10px;
}


/* Standardized Button Styles */

.button,
a.button,
button {
    display: inline-block;
    background-color: #4a90e2;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s, color 0.3s;
    margin-top: 10px;
    text-decoration: none;
}

.button:hover,
a.button:hover,
button:hover {
    background-color: #0056b3;
    color: #fff;
}

.button:active,
a.button:active,
button:active {
    background-color: #003b7d;
}

/* Large button */
.button-large {
    padding: 15px 25px;
    font-size: 16px;
}

/* Small button */
.button-small {
    padding: 5px 10px;
    font-size: 12px;
}

/* Secondary button */
.button-secondary {
    background-color: #f1f1f1;
    color: #333;
    border: 1px solid #ccc;
}

.button-secondary:hover,
.button-secondary:active {
    background-color: #e0e0e0;
}

/* Disabled button */
.button-disabled,
a.button-disabled,
button.button-disabled {
    background-color: #ccc;
    color: #888;
    cursor: not-allowed;
}

.button-disabled:hover,
.button-disabled:active {
    background-color: #ccc;
}

/* Specialized Buttons */
.edit-button {
    background-color: #4CAF50;
}

.edit-button:hover {
    background-color: #388E3C;
}

.create-button {
   background-color: #4CAF50;
}
.create-button:hover {
    background-color: #388E3C;
}

/* Delete button style */
.delete-button {
    font-size: 14;
    display: inline-block;
    background-color: #c82333;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s, color 0.3s;
    margin-top: 10px;
    text-decoration: none;
}

.delete-button:hover {
    background-color: #9a2e2a;
}

.delete-button:active {
    background-color: #721c24;
}

/* Cancel button style */
.cancel-button {
    font-size: 14;
    display: inline-block;
    background-color: #4a90e2;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s, color 0.3s;
    margin-top: 10px;
    text-decoration: none;
}

.cancel-button:hover {
    background-color: #c82333;
}

.cancel-button:active {
    background-color: #9a2e2a;
}

/* Cancel button style */
.save-button {
    font-size: 14;
    display: inline-block;
    background-color: #4a90e2;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s, color 0.3s;
    margin-top: 10px;
    text-decoration: none;
}

.save-button:hover {
    background-color: #c82333;
}

.save-button:active {
    background-color: #9a2e2a;
}

/* bots container */
.bot-container {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;  /* Reduced gap between bot items */
        justify-content: center;
}


.bot-item {
        border: 1px solid #ccc;
        border-radius: 8px;
        padding: 12px; /* Reduced padding */
        width: 100%;
        max-width: 600px; /* Adjust width */
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        margin-bottom: 10px; /* Ensure space between items */
}
h3 {
    margin-bottom: 8px; /* Reduced margin */
    font-size: 1.2em; /* Slightly smaller font size */
    color: #333;
}
.bot-details {
    margin-top: 8px;
}
.bot-row {
    margin: 5px 0;
}
.bot-row p {
    margin: 2px 0; /* Reduced margin for individual paragraphs */
}

.bot-strategy {
    border: 1px solid #ccc;
    padding: 8px; /* Reduced padding inside the strategy box */
    border-radius: 4px;
    margin-top: 10px;
    background-color: #f9f9f9;
    position: relative;
}
.bot-strategy legend {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    padding: 0 6px;  /* Reduced padding for legend */
    margin-bottom: 4px; /* Reduce space between legend and content */
}
.bot-actions {
   display: flex;
   gap: 8px;
   margin-left: auto; /* Push the buttons to the right */
   margin-top: -4px; /* Adjust the top margin to prevent overlap */
}


.bot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.bot-title {
    margin: 0;
}

/* --- Flash Messages --- */
#flash-messages {
    margin: 10px auto;
    max-width: 600px;
}   

.flash-container {
    padding: 5px;
    border-radius: 5px;
}   

.alert {
    padding: 8px; /* Adjusted for appropriate padding */
    margin: 10px 0;
    border-radius: 5px;
    font-size: 14px; /* Consistent font size */
    text-align: center;
    font-weight: bold;
}   

.alert-success {
    background-color: rgba(40, 167, 69, 0.7); /* Light green translucent */
    color: #155724; /* Dark green text for contrast */
}

.alert-error {
    background-color: rgba(220, 53, 69, 0.7); /* Light red translucent */
    color: #721c24; /* Dark red text for contrast */
}

.alert-message {
    background-color: rgba(211, 211, 211, 0.7); /* Light gray translucent */
    color: #383d41; /* Dark gray text for contrast */
}

/* --- Credential Container --- */
.credential-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px auto;
    max-width: 800px;
}

.credential-item {
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.credential-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.keys-container {
    margin-top: 10px;
}

/* Remove styling from the form to prevent container behavior */
.credential-item form {
    margin: 0;       /* Remove any margin */
    padding: 0;      /* Remove any padding */
    border: none;    /* Remove any border */
    display: inline; /* Keep form inline */
}

/* Ensure the delete button is styled without any container */
.credential-item .delete-button {
    background-color: #e74c3c; /* Red background */
    color: white;              /* White text */
    border: none;              /* Remove border */
    padding: 5px 10px;         /* Adjust padding as needed */
    cursor: pointer;          /* Change cursor to pointer */
    display: inline-block;     /* Make button inline without block container */
    font-size: 14px;           /* Ensure font size is the same */
    font-weight: bold;         /* Make font bold like the edit button */
    text-align: center;        /* Center text inside the button */
    border-radius: 4px;        /* Optional: Add rounded corners */
    transition: background-color 0.3s; /* Smooth background color change */
}

.credential-item .delete-button:hover {
    background-color: #c0392b; /* Darker red on hover */
}

/* Optionally, style the edit button for consistency */
.credential-item .edit-button {
    background-color: #3498db; /* Blue background */
    color: white;              /* White text */
    border: none;              /* Remove border */
    padding: 5px 10px;         /* Adjust padding as needed */
    cursor: pointer;          /* Change cursor to pointer */
    font-size: 14px;           /* Ensure font size is the same */
    font-weight: bold;         /* Make font bold like the delete button */
    text-align: center;        /* Center text inside the button */
    border-radius: 4px;        /* Optional: Add rounded corners */
    transition: background-color 0.3s; /* Smooth background color change */
}

.credential-item .edit-button:hover {
    background-color: #2980b9; /* Darker blue on hover */
}


.analyse-form {
    margin-bottom: 1rem;
}

.form-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}
.form-group {
    flex: 1;
}
.bot-strategy {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Remove styling from the form to prevent container behavior */
.bot-item form {
    margin: 0;       /* Remove any margin */
    padding: 0;      /* Remove any padding */
    border: none;    /* Remove any border */
    display: inline; /* Keep form inline */
}

/* Ensure the delete button is styled without any container */
.bot-item .delete-button {
    background-color: #e74c3c; /* Red background */
    color: white;              /* White text */
    border: none;              /* Remove border */
    padding: 5px 10px;         /* Adjust padding as needed */
    cursor: pointer;          /* Change cursor to pointer */
    display: inline-block;     /* Make button inline without block container */
    font-size: 14px;           /* Ensure font size is the same */
    font-weight: bold;         /* Make font bold like the edit button */
    text-align: center;        /* Center text inside the button */
    border-radius: 4px;        /* Optional: Add rounded corners */
    transition: background-color 0.3s; /* Smooth background color change */
}

.bot-item .delete-button:hover {
    background-color: #c0392b; /* Darker red on hover */
}

/* Optionally, style the edit button for consistency */
.bot-item .edit-button {
    background-color: #3498db; /* Blue background */
    color: white;              /* White text */
    border: none;              /* Remove border */
    padding: 5px 10px;         /* Adjust padding as needed */
    cursor: pointer;          /* Change cursor to pointer */
    font-size: 14px;           /* Ensure font size is the same */
    font-weight: bold;         /* Make font bold like the delete button */
    text-align: center;        /* Center text inside the button */
    border-radius: 4px;        /* Optional: Add rounded corners */
    transition: background-color 0.3s; /* Smooth background color change */
}

.bot-item .edit-button:hover {
    background-color: #2980b9; /* Darker blue on hover */
}

/* --- Watchlist Container --- */
.watchlist-container { 
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 20px;
    margin: 20px auto;
    max-width: 800px;
}

.watchlist-item { /* Corrected the typo here */
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.watchlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.symbols-container {
    margin-top: 10px;
}

/* Remove styling from the form to prevent container behavior */
.watchlist-item form {
    margin: 0;       /* Remove any margin */
    padding: 0;      /* Remove any padding */
    border: none;    /* Remove any border */
    display: inline; /* Keep form inline */
}

/* Ensure the delete button is styled without any container */
.watchlist-item .delete-button {
    background-color: #e74c3c; /* Red background */
    color: white;              /* White text */
    border: none;              /* Remove border */
    padding: 5px 10px;         /* Adjust padding as needed */
    cursor: pointer;          /* Change cursor to pointer */
    display: inline-block;     /* Make button inline without block container */
    font-size: 14px;           /* Ensure font size is the same */
    font-weight: bold;         /* Make font bold like the edit button */
    text-align: center;        /* Center text inside the button */
    border-radius: 4px;        /* Optional: Add rounded corners */
    transition: background-color 0.3s; /* Smooth background color change */
}

.watchlist-item .delete-button:hover {
    background-color: #c0392b; /* Darker red on hover */
}

/* Optionally, style the edit button for consistency */
.watchlist-item .edit-button {
    background-color: #3498db; /* Blue background */
    color: white;              /* White text */
    border: none;              /* Remove border */
    padding: 5px 10px;         /* Adjust padding as needed */
    cursor: pointer;          /* Change cursor to pointer */
    font-size: 14px;           /* Ensure font size is the same */
    font-weight: bold;         /* Make font bold like the delete button */
    text-align: center;        /* Center text inside the button */
    border-radius: 4px;        /* Optional: Add rounded corners */
    transition: background-color 0.3s; /* Smooth background color change */
}

.watchlist-item .edit-button:hover {
    background-color: #2980b9; /* Darker blue on hover */
}

/* --- Modal Styles --- */
.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    z-index: 1000;
}

.modal-content {
    text-align: center;
}

.modal-actions {
    margin-top: 20px;
}

.modal-actions .button {
    margin: 0 10px;
}

/* --- Responsive Adjustments --- */
@media (max-width: 600px) {
    form {
        max-width: 100%;
        padding: 15px;
    }

    .button {
        width: 100%;
        margin-top: 15px;
    }
}

/* --- Watchlist Trades Table Styles --- */
.watchlist-list {
    list-style-type: none;  /* Remove bullet points */
    padding-left: 0;        /* Remove default left padding */
}
.watchlist-trades-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 14px;
}

.watchlist-trades-table th,
.watchlist-trades-table td {
    padding: 8px 10px;
    text-align: center;
    border: 1px solid #bbb;
}

.watchlist-trades-table th {
    padding: 4px 8px;
    background-color: #f1f1f1;
    font-weight: bold;
}

.watchlist-trades-table th, 
.watchlist-trades-table td {
    padding: 2px 5px;
    border-color: #888;
    background-color: #fff;
}

.watchlist-trades-table td.fixed-width {
    width: 100px;
}

.watchlist-trades-table th.fixed-width {
    width: 100px;
}

.watchlist-trades-table tbody td {
    padding: 4px 8px;
}

/* Header row colors for Call and Put Trades */
#call-trades-table th {
    background-color: #c8e6c9 !important; /* Pastel green */
}

#put-trades-table th {
    background-color: #f8d7da !important; /* Pastel red */
}

/* Bold text for header rows */
#call-trades-table th, #put-trades-table th {
    font-weight: bold !important;
}

/* Advanced View Table Styling */
#adv-call-trades-table th {
    background-color: #d4edda !important; /* Light green */
}

#adv-put-trades-table th {
    background-color: #f8d7da !important; /* Light red */
}

#adv-call-trades-table, #adv-put-trades-table {
    border: 1px solid #ddd;
}

/* Responsive Design Adjustments */
@media (max-width: 768px) {
    .watchlist-trades-table {
        font-size: 14px;
    }

    .watchlist-trades-table th, .watchlist-trades-table td {
        padding: 6px;
    }

    .watchlist-trades-table td {
        font-size: 14px;
    }
}


/* For Action Data */
.action-summary {
    background-color: #fafafa;
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
}

.option-data-summary {
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #ddd;
}

/* Simple CSS spinner */
.spinner {
    width: 50px;
    height: 50px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* orders table */
.styled-orders-table {
    width: 100%; /* Ensure the table spans the full width */
    table-layout: auto; /* Allow columns to adjust to content */
    margin: 0 auto; /* Optional: center the table */
}
.styled-orders-table th, .styled-orders-table td {
    text-align: center; /* Match other tables' styles */
    vertical-align: middle;
}    
