:root {
    --bg-color: #ffffff;
    --card-bg: #f5f5f5;
    --text-primary: #000000;
    --text-secondary: #666666;
    --accent: #000000;
    --border: #e0e0e0;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
}

header {
    background: var(--bg-color);
    border-bottom: 2px solid var(--text-primary);
    padding: 1rem 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    color: var(--text-primary);
    text-decoration: none;
}

.logo img {
    height: 40px;
    width: auto;
    filter: none;
    /* Removed Invert since background is now white */
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 20px;
    font-size: 0.9rem;
    transition: color 0.3s;
    font-weight: 500;
}

nav a:hover,
nav a.active {
    color: var(--text-primary);
    text-decoration: underline;
}

/* Cards & Dashboard */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.2s, border-color 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.card:hover {
    border-color: var(--text-secondary);
    transform: translateY(-2px);
}

.card h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 10px;
    letter-spacing: 0.05em;
}

.big-number {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

/* Forms & Tables */
input,
select,
button,
textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    background: #ffffff;
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-radius: 4px;
    font-family: var(--font-main);
}

button {
    background: var(--text-primary);
    color: var(--bg-color);
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px;
}

button:hover {
    opacity: 0.8;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th,
td {
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid var(--border);
}

th {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 600;
}

tr:hover td {
    background-color: rgba(0, 0, 0, 0.02);
}