* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', Arial, sans-serif; }
body { background: #f4f6f8; color: #333; }

.topbar {
    background: #1e3d59;
    color: #fff;
    padding: 16px 24px;
}

.main-container {
    display: flex;
    min-height: calc(100vh - 60px);
}

/* Sidebar */
.sidebar {
    width: 250px;
    background: #fff;
    border-right: 1px solid #e0e0e0;
    padding: 20px 0;
}
.sidebar-title {
    color: #c0392b;
    font-weight: bold;
    padding: 10px 20px;
    font-size: 16px;
}
.menu-item {
    display: block;
    padding: 12px 20px;
    color: #444;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}
.menu-item:hover { background: #f0f4f8; }
.menu-item.active { background: #eaf3ff; color: #1e3d59; font-weight: 600; border-left: 3px solid #1e3d59; }

/* Content */
.content {
    flex: 1;
    padding: 24px 32px;
}
.content h3 { color: #444; margin-bottom: 16px; }

/* Table */
table.data-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
table.data-table th {
    background: #1e3d59;
    color: #fff;
    padding: 10px 14px;
    text-align: left;
    font-size: 14px;
}
table.data-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}
table.data-table tr:hover { background: #f9fbfd; }

/* Form */
.form-box {
    background: #fff;
    padding: 24px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    max-width: 700px;
}
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 14px; color: #555; font-weight: 600; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}
.btn {
    background: #1e3d59;
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
}
.btn:hover { background: #16304a; }
.btn-add {
    background: #27ae60;
    margin-bottom: 16px;
}
.btn-add:hover { background: #1e8449; }

.badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    color: #fff;
}
.badge-waiting { background: #e67e22; }
.badge-active { background: #2980b9; }
.badge-transplanted { background: #27ae60; }
.badge-inactive { background: #95a5a6; }

.alert-success {
    background: #d4edda;
    color: #155724;
    padding: 10px 16px;
    border-radius: 4px;
    margin-bottom: 16px;
}
.alert-error {
    background: #f8d7da;
    color: #721c24;
    padding: 10px 16px;
    border-radius: 4px;
    margin-bottom: 16px;
    border: 1px solid #f5c2c7;
    font-weight: 600;
}
.badge-declined { background: #c0392b; }
