:root {
    --theme-red: #6c0309;
    --theme-orange: #db7e22;
    --bg-color: #f8f9fa;

    --text-color: #2c3e50;
    --text-muted: #7f8c8d;
    --bg-main: #f4f6f8;
    --bg-card: #ffffff;
}

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    box-sizing: border-box;
    height: 100vh;
}

*, *:before, *:after {
    box-sizing: inherit;
}

a, .btn-link {
    color: var(--theme-orange);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover, .btn-link:hover {
    color: var(--theme-red);
}

/* Custom Navbar container */
.navbar {
    background-color: var(--theme-red);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar .nav-links {
    display: flex;
    gap: 1.5rem;
}

.navbar a {
    color: #fff;
    font-weight: 600;
}

.navbar a:hover, .navbar a.active {
    color: var(--theme-orange);
}

/* Added for the credits line on the far right of the navbar */
.navbar .nav-credits {
    margin-left: auto;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Main Application Layout (Vertical 1:1 Split) */
.app-container {
    display: flex;
    height: calc(100vh - 56px); /* Approximation of navbar height */
    overflow: hidden;
}

.split-left, .split-right {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.split-left {
    border-right: 2px solid #ddd;
}

.split-right {
    background-color: #f1f1f1;
    display: flex;
    flex-direction: column;
}

/* Home & Login Pages Layout */
/* Added to center and style the Home and Login pages appropriately */
.single-column-page {
    flex: 1;
    padding: 3rem 2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.login-message {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* ——— Home Page ——— */

.home-page {
    flex: 1;
    padding: 3rem 2rem;
    overflow-y: auto;
    max-width: 960px;
    margin: 0 auto;
    width: 100%;
}

.home-hero {
    text-align: center;
    padding: 2rem 0 2.5rem 0;
    border-bottom: 2px solid #e1e4e8;
    margin-bottom: 2.5rem;
}

.home-title {
    margin: 0 0 0.75rem 0;
    font-size: 2rem;
    color: var(--theme-red);
}

.home-subtitle {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.home-section {
    margin-bottom: 2.5rem;
}

.home-section-header {
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin: 0 0 1rem 0;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #e1e4e8;
}

.home-card {
    justify-content: space-between;
    min-height: 140px;
}

.home-card-cta {
    font-size: 0.875rem;
    font-weight: bold;
    color: var(--theme-orange);
    margin-top: 0.5rem;
}

.home-card:hover .home-card-cta {
    color: var(--theme-red);
}

.home-reference-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.home-reference-card {
    background-color: #fff;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.home-reference-card h4 {
    margin: 0 0 0.75rem 0;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #eee;
}

.home-reference-list {
    padding-left: 1.25rem;
    margin: 0;
    list-style-type: disc;
}

.home-reference-list li {
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 0.3rem 0;
    border-bottom: none;
}

/* Ribbon Buttons */
.ribbons-section, .medals-section {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 0;
}

.img-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 160px;
    padding: 10px;
    border: 2px solid transparent;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font: inherit;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.2s ease-in-out;
}

.img-btn:hover {
    border-color: var(--theme-orange);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.img-btn:focus, .img-btn:active {
    outline: none;
    border-color: var(--theme-red);
}

.img-btn.selected {
    border-color: var(--theme-red);
    background-color: #fceded;
    box-shadow: 0 4px 12px rgba(108, 3, 9, 0.25);
    transform: translateY(-2px);
}

.img-btn-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    display: block;
    margin: auto;
    image-rendering: pixelated;
}

/* Added to create a distinct, larger header for the left side of the Creator page (and Home/Login headers) */
.creator-header {
    margin-top: 0;
    color: var(--theme-red);
    border-bottom: 2px solid var(--theme-orange);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.img-btn-text {
    display: block;
    font-size: 0.85rem;
    word-break: break-word;
    margin-top: auto;
    width: 100%;
}

/* Right Side / Preview Area */
.preview-header {
    margin-top: 0;
    color: var(--theme-red);
    border-bottom: 2px solid var(--theme-orange);
    padding-bottom: 0.5rem;
}

.preview-box {
    flex: 1;
    border: 2px dashed rgb(219, 126, 34);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    color: var(--theme-red);
    margin-top: 1rem;
    min-height: 400px;
}

.preview-image {
    /* Changed from fixed 512px to 100% w/ max-height to resize and fill the container properly without stretching */
    width: 100%;
    height: 100%;
    max-height: 800px;
    object-fit: contain;
    image-rendering: pixelated; /* important option to ensure the upscaled image keeps clean pixel edges */
}

/* Action Buttons */
.btn-primary, button:not(.img-btn) {
    color: #fff;
    background-color: var(--theme-red);
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: color 0.2s;
    margin-top: 1rem;
    margin-right: 0.5rem;
}

.btn-primary:hover, button:not(.img-btn):hover {
    color: var(--theme-orange);
    background-color: var(--theme-red); /* Keep background red */
}

button.btn-clear {
    background-color: #6c757d !important;
}

button.btn-clear:hover {
    background-color: #5a6268 !important;
}

/* Form inputs */
label {
    font-weight: bold;
    color: var(--theme-red);
    margin-top: 1rem;
    display: block;
}

select, input:not([type="checkbox"]) {
    width: 100%;
    padding: 0.6rem;
    margin-top: 0.25rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

select:focus, input:focus {
    outline: none;
    border-color: var(--theme-orange);
    box-shadow: 0 0 0 0.2rem rgba(219, 126, 34, 0.25);
}

/* Headers */
h3, h4 {
    color: var(--theme-red);
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

ul {
    list-style-type: none;
    padding-left: 0;
}

ul li {
    padding: 0.25rem 0;
    border-bottom: 1px solid #eee;
}

/* ——— Tug Calculator Styles ——— */

/* Pro Tips Spacing */
.pro-tips {
    margin-bottom: 2rem;
}

.pro-tips i {
    display: block;
    margin-bottom: 0.25rem;
    color: #555;
}

/* Left Side: Number Inputs */
.input-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding-bottom: 0.75rem; /* Spacing for the bottom border */
    gap: 15px;
    border-bottom: 1px solid #ddd; /* Adds the bottom line */
    min-height: 50px; /* Ensures all rows are exactly the same size */
}

.input-row label {
    margin-top: 0;
    flex: 1;
}

.input-row input:not([type="checkbox"]) {
    width: 80px;
    margin-top: 0;
    text-align: center;
}

/* REMOVE NUMBER SPINNERS (Up/Down Arrows) */
.input-row input[type="number"]::-webkit-inner-spin-button,
.input-row input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.input-row input[type="number"] {
    -moz-appearance: textfield; /* Fix for Firefox */
}

.input-row p {
    margin: 0;
    width: 30px;
    color: var(--text-color);
}

/* Left Side: Checkboxes */
.checkbox-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #ddd; /* Adds the bottom line */
    min-height: 50px; /* Matches the input-row size */
}

.checkbox-row label {
    margin-top: 0;
    flex: 1;
}

.checkbox-row input[type="checkbox"] {
    width: 1.5rem; /* Makes the checkbox larger */
    height: 1.5rem;
    margin-right: 2rem;
    cursor: pointer;
    accent-color: var(--theme-red); /* Matches the checkbox color to your theme */
}

.checkbox-row p {
    margin: 0;
    font-weight: bold;
    color: var(--theme-red);
}

/* Right Side: Results Lines */
.result-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
}

.result-row h4 {
    margin: 0;
}

.result-row span {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--text-color);
}

/* Right Side: Tug Cards */
.tugs-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    margin-bottom: 3rem;
}

.tug-card {
    background-color: #fff;
    border: 2px solid var(--theme-orange);
    border-radius: 8px;
    padding: 1rem;

    /* Fixed sizing so every card is identical */
    width: 160px;
    height: 140px;
    flex: 0 0 auto; /* Prevents flexbox from stretching them unevenly */

    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centers content vertically */
    text-align: center;
}

.tug-card-header {
    font-weight: bold;
    color: var(--theme-red);
    font-size: 1.1rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
}

.tug-card p {
    margin: 0.25rem 0;
    color: var(--text-color);
}


/* ——— Employee Report Card style ——— */

.report-page-wrapper {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    display: flex;
    justify-content: center; /* Centers the paper horizontally if it hits max-width */
    align-items: flex-start; /* Keeps the paper at the top */
}

.report-paper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    width: 100%;
    max-width: 1200px;
    background-color: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    color: var(--text-color);
    height: fit-content;
}

.report-paper h3 {
    margin: 0;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--theme-red);
    grid-column: 1 / -1;
}

/* Base Card Styling for reuse */
.id-card, .stats-overview, .subsidiary-card {
    background-color: var(--bg-card);
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid #e1e4e8;
}

/* ID card */
.id-card {
    border-top: 4px solid var(--theme-orange);
    grid-column: 1 / 1;
}

.id-card h4 {
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--theme-red);
}

.id-card-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.id-card-text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.id-card-text p {
    margin: 0;
    font-size: 0.95rem;
}

.id-avatar {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border: 2px solid var(--theme-red);
    border-radius: 12.5%;
    padding: 2px;
}

/* Stats View */
.stats-overview {
    grid-column: 0 / 1;
    border-top: 4px solid var(--text-muted);
}

.stats-overview h4 {
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--theme-red);
}

.stats-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px dashed #e1e4e8;
}

.stats-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.stats-row p {
    margin: 0;
    font-size: 0.95rem;
}

.stat-value {
    font-weight: bold;
    color: var(--theme-orange);
}

/* Subsidiary Cards */
.subsidiary-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.subsidiary-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 8rem;
    border-top: 4px solid var(--theme-red);
}

.subsidiary-card h4 {
    margin: 0 0 1rem 0;
    width: 100%;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--theme-orange);
}

.subsidiary-card img {
    width: 60px;
    border-radius: 3px;
}

.subsidiary-text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.subsidiary-text p {
    margin: 0;
    font-size: 0.9rem;
}


/* ——— Asset Manager ——— */

.asset-preview-box {
    min-height: 160px;
    max-height: 220px;
    flex: unset;
    padding: 1rem;
    gap: 0.75rem;
}

.asset-preview-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
    image-rendering: pixelated;
}

.asset-preview-label {
    font-size: 0.95rem;
    font-weight: bold;
    color: var(--theme-red);
}

.asset-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.asset-action-card {
    background-color: #fff;
    border: 1px solid #e1e4e8;
    border-top: 4px solid var(--theme-orange);
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.asset-action-card h4 {
    margin: 0 0 0.4rem 0;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #eee;
}

.asset-action-card--danger {
    border-top-color: var(--theme-red);
}

.action-description {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0.4rem 0 0.75rem 0;
}

.action-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.action-row input {
    flex: 1;
    margin-top: 0;
}

.action-row button {
    margin-top: 0;
    white-space: nowrap;
}

.btn-danger {
    color: #fff;
    background-color: var(--theme-red);
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.2s;
    margin-top: 0;
}

.btn-danger:hover {
    background-color: #8b0407;
    color: #fff;
}

.status-message {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.95rem;
}

.status-message--success {
    background-color: #eafaf1;
    color: #1e7e44;
    border: 1px solid #a3d9b1;
}

.status-message--error {
    background-color: #fdf3e7;
    color: #a05000;
    border: 1px solid #f0c08a;
}

/* ——— Ribbon Manager Nav ——— */

.nav-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
    width: 100%;
    margin-top: 1.5rem;
}

.nav-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.25rem;
    background-color: #fff;
    border: 1px solid #e1e4e8;
    border-top: 4px solid var(--theme-orange);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nav-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    color: var(--text-color);
}

.nav-card--danger {
    border-top-color: var(--theme-red);
}

.nav-card-title {
    font-size: 1rem;
    font-weight: bold;
    color: var(--theme-red);
}

.nav-card-description {
    font-size: 0.875rem;
    color: var(--text-muted);
}



/* ——— Status Page ——— */

.status-page {
    flex: 1;
    padding: 3rem 2rem;
    overflow-y: auto;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.status-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

.status-card {
    background-color: #fff;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.status-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.status-card-title {
    font-weight: bold;
    color: var(--theme-red);
    font-size: 1rem;
}

/* Status badges */
.status-badge {
    font-size: 0.75rem;
    font-weight: bold;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge--operational   { background: #eafaf1; color: #1e7e44; border: 1px solid #a3d9b1; }
.status-badge--degraded      { background: #fdf3e7; color: #a05000; border: 1px solid #f0c08a; }
.status-badge--outage        { background: #fdecea; color: #9b1c1c; border: 1px solid #f5c2c2; }
.status-badge--maintenance   { background: #eef2ff; color: #3730a3; border: 1px solid #c7d2fe; }
.status-badge--unknown       { background: #f3f4f6; color: #6b7280; border: 1px solid #d1d5db; }

.status-badge--incident-investigating { background: #fdf3e7; color: #a05000; border: 1px solid #f0c08a; }
.status-badge--incident-identified   { background: #eef2ff; color: #3730a3; border: 1px solid #c7d2fe; }
.status-badge--incident-monitoring   { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.status-badge--incident-resolved     { background: #eafaf1; color: #1e7e44; border: 1px solid #a3d9b1; }

.severity-badge {
    font-size: 0.75rem;
    font-weight: bold;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.severity-badge--minor    { background: #f3f4f6; color: #6b7280; border: 1px solid #d1d5db; }
.severity-badge--major    { background: #fdf3e7; color: #a05000; border: 1px solid #f0c08a; }
.severity-badge--critical { background: #fdecea; color: #9b1c1c; border: 1px solid #f5c2c2; }

/* Meta rows */
.status-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.status-meta-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.status-meta-value {
    font-size: 0.875rem;
    color: var(--text-color);
}

/* Notes */
.status-notes-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.status-notes-text {
    flex: 1;
    color: var(--text-color);
}

.status-notes-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9rem;
    resize: vertical;
    margin-top: 0.25rem;
}

.status-notes-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.status-notes-actions button {
    margin-top: 0;
}

.btn-icon {
    background: none !important;
    border: none;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1;
    box-shadow: none !important;
}

/* Override select */
.status-override-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.status-override-select {
    flex: 1;
    margin-top: 0;
    padding: 0.35rem 0.5rem;
    font-size: 0.875rem;
}

/* Uptime percentages */
.uptime-percent-row {
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    margin: 0.25rem 0;
}

.uptime-percent-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}

.uptime-percent-value {
    font-size: 1rem;
    font-weight: bold;
}

.uptime-percent-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.uptime-green  { color: #1e7e44; }
.uptime-orange { color: #a05000; }
.uptime-red    { color: #9b1c1c; }

/* 30-day squares */
.uptime-squares {
    display: flex;
    gap: 3px;
    flex-wrap: nowrap;
    margin-top: 0.5rem;
}

.uptime-square {
    flex: 1;
    height: 20px;
    border-radius: 2px;
    min-width: 0;
}

.uptime-square--operational { background-color: #1e7e44; }
.uptime-square--degraded    { background-color: #db7e22; }
.uptime-square--outage      { background-color: #9b1c1c; }
.uptime-square--maintenance { background-color: #3730a3; }
.uptime-square--unknown     { background-color: #d1d5db; }

.uptime-squares-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Incident cards */
.incident-card {
    background-color: #fff;
    border: 1px solid #e1e4e8;
    border-left: 4px solid #d1d5db;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.incident-card--minor    { border-left-color: #6b7280; }
.incident-card--major    { border-left-color: var(--theme-orange); }
.incident-card--critical { border-left-color: var(--theme-red); }

.incident-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #eee;
    margin-bottom: 0.75rem;
    gap: 1rem;
}

.incident-title {
    font-weight: bold;
    font-size: 1rem;
    color: var(--theme-red);
    display: block;
    margin-bottom: 0.4rem;
}

.incident-badges {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.incident-timestamps {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.incident-description {
    font-size: 0.9rem;
    color: var(--text-color);
    margin: 0 0 0.75rem 0;
}

.incident-affected {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.incident-affected-tag {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    padding: 0.15rem 0.6rem;
    font-size: 0.8rem;
    color: var(--text-color);
}

/* Timeline */
.incident-timeline {
    border-left: 2px solid #e1e4e8;
    margin: 0.75rem 0;
    padding-left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.incident-timeline-entry {
    display: flex;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.incident-timeline-time {
    color: var(--text-muted);
    white-space: nowrap;
    min-width: 90px;
}

.incident-timeline-message {
    color: var(--text-color);
}

/* Incident form */
.incident-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.incident-form textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9rem;
    resize: vertical;
}