* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f4f6f9;
    color: #1f2937;
}

a {
    color: #2563eb;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.navbar {
    background-color: #111827;
    color: white;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.nav-left,
.nav-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.navbar a {
    color: white;
    font-weight: 600;
}

.brand {
    font-size: 20px;
    font-weight: 700;
}

.page {
    max-width: 1100px;
    margin: 32px auto;
    padding: 0 16px;
}

.card {
    background: white;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 800px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

h1, h2, h3 {
    margin-top: 0;
    color: #111827;
}

.form-group {
    margin-bottom: 16px;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

input,
textarea,
select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 15px;
    background: white;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

button {
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

button:hover {
    background-color: #1d4ed8;
}

.project-list,
.task-list,
.appointment-list,
.flash-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.project-item,
.task-item,
.appointment-item {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 14px;
    background-color: #fafafa;
}

.meta {
    color: #6b7280;
    font-size: 14px;
}

.badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    margin-top: 8px;
    margin-right: 6px;
}

.badge-offen {
    background-color: #e5e7eb;
    color: #374151;
}

.badge-progress {
    background-color: #fde68a;
    color: #92400e;
}

.badge-done {
    background-color: #bbf7d0;
    color: #166534;
}

.badge-overdue {
    background-color: #fecaca;
    color: #991b1b;
}

.flash-list li {
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 10px;
    font-weight: 600;
}

.flash-success {
    background-color: #dcfce7;
    color: #166534;
}

.flash-error {
    background-color: #fee2e2;
    color: #991b1b;
}

.flash-info {
    background-color: #dbeafe;
    color: #1d4ed8;
}

.inline-form {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.inline-form select {
    max-width: 220px;
}

.small-muted {
    font-size: 14px;
    color: #6b7280;
}

.empty-state {
    color: #6b7280;
    font-style: italic;
}

.hero {
    padding: 28px;
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    color: white;
}

.hero h1 {
    color: white;
    margin-bottom: 8px;
}

.hero-text {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.eyebrow {
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1.5px;
    font-weight: 700;
    margin-bottom: 10px;
    opacity: 0.85;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    background: white;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.stat-label {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #6b7280;
    font-weight: 600;
}

.stat-value {
    margin: 0;
    font-size: 32px;
    font-weight: 800;
    color: #111827;
}

.stat-value.danger {
    color: #b91c1c;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 800px) {
    .project-grid {
        grid-template-columns: 1fr;
    }
}

.project-card {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 18px;
    background: #fafafa;
}

.project-card-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.progress-number {
    min-width: 64px;
    text-align: right;
    font-size: 22px;
    font-weight: 800;
    color: #111827;
}

.progress-number.large {
    font-size: 34px;
}

.progress {
    width: 100%;
    height: 12px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
    margin: 12px 0;
}

.progress-large {
    height: 14px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #60a5fa);
    border-radius: 999px;
    transition: width 0.3s ease;
}

.project-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 14px;
    color: #4b5563;
    margin-top: 10px;
}

.project-actions {
    margin-top: 16px;
}

.button-link {
    display: inline-block;
    background-color: #111827;
    color: white;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 600;
}

.button-link:hover {
    text-decoration: none;
    background-color: #1f2937;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.project-progress-box {
    text-align: right;
}

.badge-row {
    margin: 10px 0 12px 0;
}

.task-top h3,
.project-card h3,
.appointment-item h3 {
    margin-bottom: 6px;
}