:root {
    --sem-red: #b00000;
    --sem-red-dark: #7f0000;
    --sem-black: #111111;
    --sem-sidebar: #151515;
}

body {
    background: #ffffff;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app-shell {
    min-height: 100vh;
    background: #ffffff;
}

.mobile-topbar {
    background: var(--sem-red);
    color: white;
}

.mobile-topbar .navbar-brand {
    color: white;
    font-weight: 700;
}

.sem-burger {
    border-color: rgba(255,255,255,0.45);
}

.sem-burger .navbar-toggler-icon {
    filter: brightness(0) invert(1);
}

.sidebar {
    width: 220px;
    min-height: 100vh;
    background: var(--sem-sidebar);
    color: white;
    padding: 0 18px 18px 18px;
    flex-direction: column;
}

.sidebar-brand {
    background: var(--sem-red);
    margin: 0 -18px 24px -18px;
    padding: 22px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-brand img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 14px;
    background: white;
}

.sidebar-title {
    font-weight: 800;
    line-height: 1.1;
    color: white;
}

.sidebar-subtitle {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.78);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-link {
    display: block;
    color: white;
    text-decoration: none;
    border-radius: 12px;
    padding: 11px 13px;
}

.sidebar-link:hover {
    color: white;
    background: rgba(176,0,0,0.35);
}

.app-main {
    padding: 24px;
    background: #ffffff;
}

.card {
    border: 1px solid #f0f0f0;
    border-radius: 18px;
}

.stat-card {
    min-height: 140px;
}

.response-box,
.info-box {
    border-radius: 16px;
    padding: 18px;
    background: #fff;
}

.btn {
    border-radius: 12px;
    padding: 10px 14px;
}

.btn-danger,
.btn-primary {
    background: var(--sem-red);
    border-color: var(--sem-red);
}

.btn-danger:hover,
.btn-primary:hover {
    background: var(--sem-red-dark);
    border-color: var(--sem-red-dark);
}

.btn-outline-danger {
    color: var(--sem-red);
    border-color: var(--sem-red);
}

.btn-outline-danger:hover {
    background: var(--sem-red);
    border-color: var(--sem-red);
    color: white;
}

.response-button {
    min-height: 110px;
    font-size: 1.35rem;
    font-weight: 700;
}

.form-control,
.form-select {
    border-radius: 12px;
    padding: 11px 13px;
}

.badge {
    border-radius: 999px;
    padding: 8px 12px;
}

.alert-type-pill {
    display: inline-block;
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 700;
    background: white;
}

.alert-response-card {
    border-radius: 24px;
    padding: 24px;
}

.alert-priority-normal {
    background: linear-gradient(135deg, #e9f7ef, #ffffff);
}

.alert-priority-high {
    background: linear-gradient(135deg, #fff3cd, #ffffff);
}

.alert-priority-critical {
    background: linear-gradient(135deg, #f8d7da, #ffffff);
}

.target-card {
    display: block;
    background: #ffffff;
    border: 2px solid #eeeeee;
    border-radius: 16px;
    padding: 18px;
    height: 100%;
    cursor: pointer;
}

.target-card:hover {
    border-color: var(--sem-red);
    background: #fffafa;
}

.target-section {
    border-radius: 18px;
    background: #ffffff;
    padding: 18px;
    border: 1px solid #eeeeee;
}

.offcanvas.sidebar-mobile {
    background: var(--sem-sidebar) !important;
}

.offcanvas-header {
    background: var(--sem-sidebar);
}

@media (min-width: 992px) {
    .app-shell {
        display: flex;
    }

    .app-main {
        flex: 1;
    }
}

@media (max-width: 991px) {
    .app-shell {
        display: block;
        min-height: auto;
    }

    .mobile-topbar {
        position: sticky;
        top: 0;
        z-index: 1030;
    }

    .app-main {
        padding: 16px;
    }

    .sidebar-mobile {
        max-width: 280px;
    }

    .alert-response-card {
        padding: 16px;
        border-radius: 18px;
    }
}
