/* Base styles */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
}

/* Updated header styles to work with new widths */
header {
    background-color: #f8f9fa;
    padding: 7px 0 5px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 100%;
    min-width: 1000px;
}

/* Updated nav styles */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 80%;
    margin: 0 auto;
    padding: 0 10px;
    position: relative;
    min-width: 1000px;
}

main {
    width: 100%;  /* Takes full width of its container (which is now 90% of viewport) */
    margin: 20px 0;
    padding: 0;
}

.main-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    background-color: #f8f9fa;
    width: 100%;
}

.primary-tabs {
    display: flex;
    list-style-type: none;
    margin: 0 auto;
    padding: 0;
    justify-content: center;
}

.primary-tabs li {
    margin-right: 15px;
}

.primary-tabs li:last-child {
    margin-right: 0;
}

.tab {
    text-decoration: none;
    color: #333;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background-color 0.3s;
    font-size: 0.9rem;
    white-space: nowrap;
}

.tab:hover {
    background-color: #e9ecef;
}

/* Auth Button */
#authButton {
    position: absolute;
    right: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#authButton:hover {
    background-color: #0056b3;
}


/* Container styles - this will handle the 80% width */
.container {
    width: 80%;
    margin: 0 auto;
    padding: 0 20px;
    min-width: 1000px;
}

/* HubSpot Grid */
.hubspot-grid {
    width: 100%;
    border-collapse: collapse;
}

.hubspot-grid th, .hubspot-grid td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

.hubspot-grid th {
    background-color: #f2f2f2;
    font-weight: bold;
}

/* Time bars */
.time-bar-short {
    background-color: #5bc0de;
}

.time-bar-medium {
    background-color: #f0ad4e;
}

.time-bar-long {
    background-color: #d9534f;
}

/* Features section */
.features {
    display: flex;
    justify-content: space-around;
    padding: 40px 20px;
    background-color: #f8f9fa;
}

.feature {
    max-width: 300px;
    text-align: center;
}

.feature h2 {
    font-size: 1.5em;
    margin-bottom: 0.5em;
}

.feature p {
    font-size: 1em;
    color: #555;
}

/* Current Events Analysis */
.current-events-analysis {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 20px;
}

.current-events-analysis h3 {
    color: #333;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-top: 20px;
}

.current-events-analysis h4 {
    color: #555;
    margin-top: 15px;
}

.current-events-analysis ul {
    padding-left: 20px;
}

.current-events-analysis li {
    margin-bottom: 10px;
}

.current-events-analysis a {
    color: #0066cc;
    text-decoration: none;
}

.current-events-analysis a:hover {
    text-decoration: underline;
}

/* Leaderboard */
.leaderboard {
    border-collapse: collapse;
    width: 100%;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

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

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

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

.leaderboard tr:hover {
    background-color: #f5f5f5;
}

.achievements {
    font-size: 12px;
    color: #666;
}

/* Counter */
.counter-container {
    text-align: center;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.counter {
    font-size: 24px;
    font-weight: bold;
    margin: 10px 0;
}

/* Agent output styles */
.agent-output {
    box-sizing: border-box;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 100%;  /* Takes full width of its container (which is now 90% of viewport) */
    padding: 15px;
    margin-bottom: 20px;
}

.agent-output h3 {
    margin-top: 0;
    color: #3498db;
}

/* Chat container styles */
#chat-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

#chat-messages {
    height: 600px;
    overflow-y: auto;
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 10px;
}

#user-input {
    width: 80%;
    padding: 5px;
}

#send-button {
    width: 18%;
    padding: 5px;
}

/* Login styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    height: 100vh;
    padding-top: 100px;
    box-sizing: border-box;
}

.login-content {
    text-align: center;
    width: 100%;
    max-width: 500px;
}

#loginForm {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#loginForm input,
#loginForm button {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

#loginForm button {
    cursor: pointer;
}

/* Utility classes */
.preserve-format {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: monospace;
}

pre {
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 10px;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 1.2em;
}

/* Metrics */
.metrics {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.metric {
    background: #f4f4f4;
    padding: 15px;
    border-radius: 5px;
    width: 30%;
}

/* Updated footer styles to match main content width */
.footer-content {
    width: 80%;
    margin: 0 auto;
    padding: 20px;
    min-width: 1000px;
}

.report-section {
    width: 90%;  /* Changed from 100% to 90% */
    margin: 0 auto;  /* Centers the content */
    max-width: 1800px;  /* Optional: prevents getting too wide on large screens */
}