@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #1a73e8;
    --primary-dark: #1557b0;
    --secondary: #34c759;
    --accent: #f0ad4e;
    --danger: #d9534f;
    --bg-light: #f0f4f8;
    --text-main: #202124;
    --text-muted: #5f6368;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --card-bg: rgba(255, 255, 255, 0.9);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background: #f0f4f8;
    background-image: 
        radial-gradient(at 0% 0%, rgba(26, 115, 232, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(52, 199, 89, 0.05) 0px, transparent 50%);
    color: var(--text-main);
    min-height: 100vh;
    line-height: 1.6;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0 40px;
    position: fixed;
    width: 100%;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    z-index: 1000;
    height: 70px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.navbar .logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.nav-links a:hover {
    color: var(--primary);
    background: rgba(26, 115, 232, 0.08);
}

.nav-links a.active {
    color: var(--primary);
    background: rgba(26, 115, 232, 0.12);
}

/* Container */
.container {
    max-width: 1100px;
    margin: 110px auto 40px auto;
    padding: 0 20px;
}

/* Layout Elements */
.header {
    text-align: center;
    margin-bottom: 40px;
}

.header h1 {
    font-weight: 700;
    font-size: 36px;
    color: #1a1c1e;
    letter-spacing: -1px;
    margin-bottom: 8px;
}

.header p {
    color: var(--text-muted);
    font-size: 18px;
}

/* Cards & Sections */
.card, .container > div:not(.navbar):not(.alert) {
    background: var(--card-bg);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    padding: 35px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.7);
}

/* Buttons */
.button {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 12px 28px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    text-decoration: none;
}

.button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 115, 232, 0.25);
}

.button:active {
    transform: translateY(0);
}

/* Form Styles */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #eef0f3;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s ease;
    background: #fcfdfe;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.1);
}

/* Table Design */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 20px 0;
}

th {
    background: #f8f9fa;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 16px;
    text-align: left;
    border-bottom: 2px solid #edeff3;
}

td {
    padding: 18px 16px;
    border-bottom: 1px solid #f1f3f6;
    font-size: 14px;
    color: var(--text-main);
}

tr:hover td {
    background-color: rgba(26, 115, 232, 0.02);
}

/* Utility Tables & Specific Items */
.totals-table {
    background: #f0f7ff !important;
    border: 1px solid #d0e4ff !important;
    border-radius: 12px;
    overflow: hidden;
}

.alert {
    padding: 20px;
    border-radius: 14px;
    margin-bottom: 30px;
    font-weight: 500;
    text-align: center;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.container > div {
    animation: fadeIn 0.4s ease-out forwards;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar { padding: 0 20px; }
    .nav-links { display: none; } /* Could add a mobile menu later */
    .container { margin-top: 90px; }
    .header h1 { font-size: 28px; }
    table { font-size: 13px; }
    td, th { padding: 12px 10px; }
}