:root {
    --primary-color: #00578E;
    --primary-variant: #004470;
    --secondary-color: #F37021;
    --background-color: #FFFFFF;
    --surface-color: #F5F5F5;
    --error-color: #B00020;
    --on-primary: #ffffff;
    --on-background: #333333;
    --on-surface: #333333;
    --text-secondary: #666666;
    --font-family: 'Outfit', sans-serif;
}

body {
    margin: 0;
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--on-background);
    -webkit-font-smoothing: antialiased;
    padding-top: 80px;
    /* Space for fixed header */
}

/* Header */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: var(--background-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.app-header img {
    max-height: 50px;
    max-width: 200px;
}

h1,
h2,
h3 {
    margin: 0 0 16px;
    font-weight: 700;
    color: var(--primary-color);
}

p {
    margin: 0 0 16px;
    color: var(--text-secondary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

.center-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
    text-align: center;
}

/* Components */
.btn {
    background-color: var(--primary-color);
    color: var(--on-primary);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    background-color: var(--primary-variant);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 87, 142, 0.3);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: rgba(243, 112, 33, 0.1);
}

.card {
    background-color: var(--surface-color);
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.input-group {
    margin-bottom: 16px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
}

input[type="text"],
input[type="password"],
input[type="email"],
textarea,
select {
    width: 100%;
    padding: 12px;
    background-color: #FFFFFF;
    border: 1px solid #DDDDDD;
    border-radius: 8px;
    color: var(--on-background);
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box;
}

input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 87, 142, 0.1);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #EEEEEE;
}

th {
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
}

/* Utilities */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 16px;
}

.mb-4 {
    margin-bottom: 16px;
}

:root {
    --primary-color: #00578E;
    --primary-variant: #004470;
    --secondary-color: #F37021;
    --background-color: #FFFFFF;
    --surface-color: #F5F5F5;
    --error-color: #B00020;
    --on-primary: #ffffff;
    --on-background: #333333;
    --on-surface: #333333;
    --text-secondary: #666666;
    --font-family: 'Outfit', sans-serif;
}

body {
    margin: 0;
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--on-background);
    -webkit-font-smoothing: antialiased;
    padding-top: 80px;
    /* Space for fixed header */
}

/* Header */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: var(--background-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.app-header img {
    max-height: 50px;
    max-width: 200px;
}

h1,
h2,
h3 {
    margin: 0 0 16px;
    font-weight: 700;
    color: var(--primary-color);
}

p {
    margin: 0 0 16px;
    color: var(--text-secondary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

.center-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
    text-align: center;
}

/* Components */
.btn {
    background-color: var(--primary-color);
    color: var(--on-primary);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    background-color: var(--primary-variant);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 87, 142, 0.3);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: rgba(243, 112, 33, 0.1);
}

.card {
    background-color: var(--surface-color);
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.input-group {
    margin-bottom: 16px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
}

input[type="text"],
input[type="password"],
input[type="email"],
textarea,
select {
    width: 100%;
    padding: 12px;
    background-color: #FFFFFF;
    border: 1px solid #DDDDDD;
    border-radius: 8px;
    color: var(--on-background);
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box;
}

input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 87, 142, 0.1);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #EEEEEE;
}

th {
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
}

/* Utilities */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 16px;
}

.mb-4 {
    margin-bottom: 16px;
}

.flex {
    display: flex;
    gap: 16px;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Word Cloud */
#word-cloud-canvas {
    width: 100%;
    height: 80vh;
    background-color: var(--background-color);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translate(-50%, 100%);
        opacity: 0;
    }

    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}