/* Reset & Base */
* { box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f9fafb;
    color: #1f2937;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }

/* Layout */
.container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}
.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.brand img {
    height: 40px;
    width: auto;
}
.brand h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}
nav a {
    color: #4b5563;
    margin-left: 1.5rem;
    font-weight: 500;
    transition: color 0.2s;
}
nav a:hover, nav a.active {
    color: #2563eb;
}

/* Cards & Sections */
.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 h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 1rem;
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .grid { grid-template-columns: 1fr 1fr; }
}

/* Forms & Inputs */
label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.25rem;
}
input[type="text"], input[type="password"], input[type="date"], input[type="time"] {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 1rem;
}
input[type="checkbox"] {
    height: 1rem;
    width: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}
.btn-primary {
    background-color: #2563eb;
    color: white;
}
.btn-primary:hover { background-color: #1d4ed8; }
.btn-primary:disabled { background-color: #93c5fd; cursor: not-allowed; }

/* Utilities */
.text-green { color: #059669; }
.text-gray { color: #6b7280; }
.text-bold { font-weight: 700; }
.flex-row { display: flex; justify-content: space-between; align-items: center; }
.mt-4 { margin-top: 1rem; }
.iframe-container {
    height: 80vh;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
}
iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Lists */
.list-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.15s;
}
.list-item:hover { background-color: #f9fafb; }
.tag {
    background-color: #d1fae5;
    color: #065f46;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-weight: 600;
}
