/* General site-wide styles */
body {
    font-family: sans-serif;
    margin: 0;
    background-color: #f8f9fa;
}

.header {
    background-color: #343a40;
    color: white;
    padding: 0.75rem 0; /* Vertical padding, horizontal handled by wrapper */
    /* display, justify-content, align-items moved to wrapper */
    /* max-width, margin-left, margin-right removed for full-width */
    box-sizing: border-box;
    width: 100%; /* Ensure it spans full width */
}

.header-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem; /* Horizontal padding for content alignment */
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%; /* Ensures wrapper takes up space within its max-width */
    box-sizing: border-box;
}

.header h2 {
    margin: 0;
    font-size: 1.25rem;
}

.header a {
    color: white;
    text-decoration: none;
}

.header .user-info {
    margin-left: auto; /* This can remain if user-info is direct child of flex wrapper */
}

.header .user-info a {
    margin-left: 1rem;
    color: #adb5bd;
}

.header .user-info a:hover {
    color: white;
}

nav {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 0; /* Horizontal padding handled by wrapper, vertical padding for nav links themselves */
    position: sticky;
    top: 0;
    z-index: 1000;
    /* max-width, margin-left, margin-right removed for full-width */
    box-sizing: border-box;
    width: 100%; /* Ensure it spans full width */
}

.nav-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem; /* Horizontal padding for content alignment */
    /* Nav links are inline-block, will align based on text-align or just flow */
    width: 100%;
    box-sizing: border-box;
    display: flex; /* Ensures nav links are on one line if they fit */
    justify-content: flex-start; /* Align nav links to the start */
}

nav a { /* These are children of .nav-content-wrapper */
    display: inline-block;
    padding: 1rem; /* Padding for individual nav links */
    text-decoration: none;
    color: #495057;
    font-weight: 500;
}

nav a.active {
    color: #007bff;
    border-bottom: 2px solid #007bff;
}

.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

/* General table styles */
table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 1.5rem;
}

th, td {
    border: 1px solid #dee2e6;
    padding: 0.75rem;
    text-align: left;
}

th {
    background-color: #e9ecef;
}

/* General button styles */
.button, button {
    padding: 0.5rem 1rem;
    color: white;
    background-color: #007bff;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    display: inline-block;
}
/* End of general styles */

/* Tabs navigation */
.tabs {
    display: flex;
    border-bottom: 1px solid #ccc;
    margin-bottom: 0;
}

.tab-button {
    padding: 10px 15px;
    cursor: pointer;
    border: 1px solid transparent;
    border-bottom: none;
    margin-right: 5px;
    transition: background-color 0.3s ease;
    color: #333;
    background-color: #f1f1f1;
}

.tab-button:hover {
    background-color: #ddd;
}

.tab-button.active {
    background-color: #fff;
    border-color: #ccc #ccc #fff #ccc;
    border-style: solid;
    border-width: 1px;
    margin-bottom: -1px;
    position: relative;
    z-index: 1;
    color: #000;
}

/* Tab content panes */
.tab-content {
    display: none;
    padding: 20px;
    border: 1px solid #ccc;
    border-top: none;
    background-color: #fff;
}

.tab-content.active {
    display: block;
}

/* Chat specific styles */
.chat-dialogue {
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid #eee;
    padding: 10px;
    margin-bottom: 20px;
    background-color: #f9f9f9;
}

.chat-entry {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 8px;
    line-height: 1.4;
}

.user-request {
    background-color: #e1f5fe;
    margin-left: 10%;
    margin-right: 0;
}

.bot-response {
    background-color: #f0f4c3;
    margin-right: 10%;
    margin-left: 0;
}

.chat-meta {
    font-size: 0.8em;
    color: #555;
    margin-bottom: 5px;
}

/* Payment history specific styles */
.payment-section {
    margin-bottom: 30px;
}
.payment-section h3 {
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.payment-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
}

.payment-table th, .payment-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.payment-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.payment-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.no-payments-message {
    color: #777;
    font-style: italic;
}
