* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #fff5f5;
    color: #222;
}

.auth-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #7f1d1d, #dc2626);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.auth-card h2 {
    margin-bottom: 10px;
    color: #991b1b;
}

.muted, .hint {
    color: #666;
    margin-bottom: 15px;
    display: block;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    color: #7f1d1d;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #fca5a5;
    border-radius: 10px;
    outline: none;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #dc2626;
}

.btn {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 10px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

.btn-primary {
    background: #dc2626;
    color: white;
}

.btn-primary:hover {
    background: #b91c1c;
}

.btn-outline {
    background: transparent;
    border: 2px solid #dc2626;
    color: #dc2626;
}

.btn-outline:hover {
    background: #dc2626;
    color: white;
}

.layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: #991b1b;
    color: white;
    padding: 25px;
}

.sidebar h2 {
    margin-bottom: 10px;
}

.sidebar p {
    margin-bottom: 25px;
    font-size: 14px;
}

.nav-link {
    display: block;
    padding: 12px 14px;
    margin-bottom: 10px;
    background: rgba(255,255,255,0.08);
    color: white;
    text-decoration: none;
    border-radius: 10px;
}

.nav-link:hover,
.nav-link.active {
    background: #ef4444;
}

.logout {
    background: #7f1d1d;
}

.main-content {
    flex: 1;
    padding: 30px;
}

.main-content h1 {
    margin-bottom: 20px;
    color: #991b1b;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.card {
    background: white;
    padding: 22px;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    border-left: 6px solid #dc2626;
}

.card h3 {
    color: #7f1d1d;
    margin-bottom: 10px;
}

.card p {
    font-size: 28px;
    font-weight: bold;
    color: #dc2626;
}

.quick-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.data-form {
    background: white;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.table-wrap {
    overflow-x: auto;
    background: white;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

table {
    width: 100%;
    border-collapse: collapse;
}

table thead {
    background: #dc2626;
    color: white;
}

table th,
table td {
    padding: 12px;
    border-bottom: 1px solid #f3caca;
    text-align: left;
}

.alert {
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-weight: bold;
}

.alert.success {
    background: #dcfce7;
    color: #166534;
}

.alert.error {
    background: #fee2e2;
    color: #991b1b;
}


.login-logo{
    width:100%;
    display:flex;
    justify-content:center;
    margin-bottom:15px;
}

.login-logo img{
    width:90px;
    height:auto;
    object-fit:contain;
}
.btn-danger {
    background: #7f1d1d;
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    border: none;
    cursor: pointer;
}
.btn-sm {
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.page-link {
    background: #dc2626;
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}

.page-link:hover {
    background: #b91c1c;
}

.page-info {
    font-weight: bold;
    color: #7f1d1d;
}

.btn-danger:hover {
    background: #5f1515;
}
.summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 900px) {
    .summary-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }
}