:root {
    --bg-color: #050505;
    --card-bg: #121212;
    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;
    --accent-red: #d32f2f;
    --accent-red-hover: #b71c1c;
    --border-color: #333;
    --font-family: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-family);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
}

header .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.top-nav .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 20px 0;
}

/* Logout Button - matches View Agents button */
.logout-btn {
    background-color: var(--accent-red);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border-radius: 4px;
}

.logout-btn:hover {
    background-color: var(--accent-red-hover);
    transform: translateY(-2px);
}

.header-titles {
    text-align: center;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
}




/* Hero Section */
.hero {
    padding: 60px 0;
    text-align: center;
}

.description {
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.2rem;
    color: var(--text-muted);
}

.cta-button {
    background-color: var(--accent-red);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border-radius: 4px;
}

.cta-button:hover {
    background-color: var(--accent-red-hover);
    transform: translateY(-2px);
}

/* Agent Section */
.agent-section {
    padding: 40px 0 80px;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.agent-section.hidden {
    display: none;
    opacity: 0;
}

.agent-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.domain-header {
    font-size: 1.8rem;
    color: var(--accent-red);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.domain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.agent-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.agent-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-red);
}

.agent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.agent-id {
    font-size: 0.9rem;
    color: var(--accent-red);
    font-weight: 700;
}

.agent-domain {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 4px;
}

.agent-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fff;
}

.agent-status {
    font-size: 0.9rem;
    margin-top: auto;
}

/* Authentication Container for FOUAC Fix */
.auth-container {
    opacity: 0;
    transition: opacity 0.5s ease;
}
