
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8fafc;
}

/* Layout Structure */
.container {
    display: grid;
    grid-template-areas:
        "sidebar main"
        "sidebar main";
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
}

.sidebar {
    grid-area: sidebar;
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
}

.main-content {
    grid-area: main;
    padding: 2rem;
}

/* Card Styles */
.card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.card-header {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e293b;
}

/* Typography */
h1, h2, h3, h4 {
    color: #1e293b;
    font-weight: 600;
}

h1 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

p {
    color: #64748b;
    line-height: 1.5;
}

/* Buttons */
.btn {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background-color: #3b82f6;
    color: white;
    border: none;
}

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

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #334155;
}

.form-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.375rem;
    background-color: #f8fafc;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    text-align: left;
    padding: 0.75rem 1rem;
    background-color: #f1f5f9;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.table td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        grid-template-areas:
            "main"
            "main";
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        display: none;
    }
}

/* Animation for cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Loading spinner */
.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: #3b82f6;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
