
/* Base styles applying Gestalt principles */
body {
    line-height: 1.6;
    color: #333;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

/* Color scheme */
:root {
    --primary: #003366;
    --secondary: #FF6600;
    --accent: #00A0E1;
    --light-bg: #F5F7FA;
    --dark-text: #1A1A1A;
}
/* Improved visual hierarchy */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Applying closure principle for buttons */
.btn {
    transition: all 0.3s ease;
    border-radius: 0.375rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.btn-primary {
    background-color: #2563eb;
    color: white;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
}

/* Figure-ground relationships */
.card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

/* Common fate for navigation */
.nav-item {
    transition: color 0.2s ease;
}

.nav-item:hover {
    color: #2563eb;
}

/* Tufte-inspired data visualization */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th, .data-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.data-table tr:hover {
    background-color: #f9fafb;
}

/* Tidwell's progressive disclosure */
.disclosure-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.disclosure-trigger:focus + .disclosure-content,
.disclosure-trigger:hover + .disclosure-content {
    max-height: 500px;
}