/* =========================================
   VITIA - VIEW INCIDENTS
   Theme: Dark Navy / Bright Blue / Orange
========================================= */


/* ---------- MAIN PAGE ---------- */

#viewIncidentContent {
    width: 100%;
    min-height: 100%;
    padding: 28px 3.5% 50px;
    box-sizing: border-box;

    background: #071b30;
    color: #eaf2ff;

    border: 1px solid #163b5a;
    border-radius: 16px;

    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;

    overflow: hidden;
}

#viewIncidentContent * {
    box-sizing: border-box;
}


/* ---------- PAGE HEADER ---------- */

#viewIncidentContent .incident-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

#viewIncidentContent .incident-page-header h1 {
    color: #ffffff;
    font-size: 30px;
    margin: 0 0 7px;
}

#viewIncidentContent .incident-page-header p {
    color: #a9bfd7;
    font-size: 15px;
    margin: 0;
}

#viewIncidentContent .refresh-btn {
    background: #003d5b;
    color: white;
    border: 1px solid #27618a;
    padding: 11px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

#viewIncidentContent .refresh-btn:hover {
    background: #075078;
    border-color: #46b5ff;
}


/* ---------- INCIDENT SUMMARY ---------- */

#viewIncidentContent .incident-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 28px;
    width: 100%;
}

#viewIncidentContent .summary-card {
    display: flex;
    flex-direction: column;
    justify-content: center;

    background: #0b223a;
    border: 1px solid #234766;
    border-radius: 12px;

    padding: 15px 18px;
    min-height: 90px;
    min-width: 0;

    transition: border-color 0.2s ease,
                transform 0.2s ease;
}

#viewIncidentContent .summary-card:hover {
    border-color: #46b5ff;
    transform: translateY(-2px);
}

#viewIncidentContent .summary-label {
    display: block;
    color: #a9bfd7;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 5px;
    white-space: nowrap;
}

#viewIncidentContent .summary-card h2 {
    font-size: 26px;
    line-height: 1.2;
    color: #ffffff;
    margin: 0;
}

/* Individual status indicators */

#viewIncidentContent .investigating-summary {
    border-left: 4px solid #f3350b;
}

#viewIncidentContent .identified-summary {
    border-left: 4px solid #ec8f0d;
}

#viewIncidentContent .monitoring-summary {
    border-left: 4px solid #eab308;
}

#viewIncidentContent .resolved-summary {
    border-left: 4px solid #22c55e;
}

/* ---------- SEARCH AND FILTERS ---------- */

#viewIncidentContent .incident-filters {
    display: grid;
    grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(150px, 1fr));
    gap: 13px;
    margin-bottom: 35px;
}

#viewIncidentContent .search-container {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #0b223a;
    border: 1px solid #234766;
    border-radius: 10px;
    padding: 0 14px;
    min-width: 0;
}

#viewIncidentContent .search-container:focus-within {
    border-color: #46b5ff;
    box-shadow: 0 0 0 2px rgba(70, 181, 255, 0.12);
}

#viewIncidentContent .search-icon {
    color: #46b5ff;
    font-size: 25px;
}

#viewIncidentContent .search-container input {
    width: 100%;
    min-width: 0;
    padding: 13px 0;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 14px;
}

#viewIncidentContent input::placeholder {
    color: #829bb5;
}

#viewIncidentContent .incident-filters select {
    width: 100%;
    min-width: 0;
    padding: 13px 12px;
    background: #0b223a;
    border: 1px solid #234766;
    border-radius: 10px;
    color: #eaf2ff;
    font-size: 14px;
    cursor: pointer;
    outline: none;
}

#viewIncidentContent .incident-filters select:focus {
    border-color: #46b5ff;
}

#viewIncidentContent .incident-filters option {
    background: #0b223a;
    color: white;
}


/* ---------- INCIDENT SECTION ---------- */

#viewIncidentContent .incident-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

#viewIncidentContent .incident-section-header h2 {
    font-size: 22px;
    color: #ffffff;
    margin: 0;
}

#viewIncidentContent .incident-section-header span {
    color: #a9bfd7;
    font-size: 14px;
}


/* ---------- INCIDENT GRID ---------- */

#viewIncidentContent .incident-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}


/* ---------- INCIDENT CARD ---------- */

#viewIncidentContent .incident-card {
    display: flex;
    flex-direction: column;
    background: #0b223a;
    border: 1px solid #234766;
    border-radius: 14px;
    padding: 22px;
    min-width: 0;
    min-height: 315px;
    transition: transform 0.2s ease, border-color 0.2s ease,
                box-shadow 0.2s ease;
}

#viewIncidentContent .incident-card:hover {
    transform: translateY(-4px);
    border-color: #46b5ff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}


/* ---------- CARD TOP ---------- */

#viewIncidentContent .incident-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

#viewIncidentContent .incident-id {
    color: #46b5ff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
}


/* ---------- SEVERITY BADGES ---------- */

#viewIncidentContent .severity-badge,
#viewIncidentContent .status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: fit-content;
    padding: 5px 11px;

    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

/* ---------- SEVERITY COLORS ---------- */

/* Critical - Red */
#viewIncidentContent .severity-badge.critical {
    background-color: rgba(239, 68, 68, 0.20);
    color: #e33e3e;
    border: 1px solid #ef4444;
}

/* High - Orange */
#viewIncidentContent .severity-badge.high {
    background-color: rgba(249, 115, 22, 0.20);
    color: #cc8d60;
    border: 1px solid #f97316;
}

/* Medium - Yellow */
#viewIncidentContent .severity-badge.medium {
    background-color: rgba(234, 179, 8, 0.20);
    color: #facc15;
    border: 1px solid #eab308;
}

/* Low - Green */
#viewIncidentContent .severity-badge.low {
    background-color: rgba(34, 197, 94, 0.20);
    color: #4ade80;
    border: 1px solid #22c55e;
}

/* ---------- CARD TITLE ---------- */

#viewIncidentContent .incident-card h3 {
    color: #ffffff;
    font-size: 19px;
    line-height: 1.4;
    margin: 0 0 16px;
}


/* ---------- SERVICE ---------- */

#viewIncidentContent .incident-service {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 13px;
}

#viewIncidentContent .incident-service span {
    color: #829bb5;
    font-size: 12px;
}

#viewIncidentContent .incident-service strong {
    color: #46b5ff;
    font-size: 14px;
}


/* ---------- DESCRIPTION ---------- */

#viewIncidentContent .incident-description {
    color: #b8c9dc;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 20px;
    line-clamp: 2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* ---------- STATUS AND DATE ---------- */

#viewIncidentContent .incident-card-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    gap: 12px;

    border-top: 1px solid #163b5a;
    padding-top: 15px;
    margin-top: auto;
    margin-bottom: 18px;
}

/* Both sections */
#viewIncidentContent .incident-card-info > div {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

/* Status section - left aligned */
#viewIncidentContent .incident-card-info > div:first-child {
    align-items: flex-start;
    text-align: left;
}

/* Date section - right aligned */
#viewIncidentContent .incident-card-info > div:last-child {
    align-items: flex-end;
    text-align: right;
}

/* Labels */
#viewIncidentContent .info-label {
    color: #829bb5;
    font-size: 12px;
}

/* Date value */
#viewIncidentContent .incident-card-info strong {
    color: #dce9f7;
    font-size: 12px;
    text-align: right;
}

/* Status badge */
#viewIncidentContent .incident-card-info .status-badge {
    align-self: flex-start;
    margin-left: 0;
}


/* ---------- STATUS COLORS ---------- */

/* Investigating - Orange */
#viewIncidentContent .status-badge.investigating {
    background: rgba(70, 181, 255, 0.15);
    color: #70c8ff;
    border: 1px solid rgba(70, 181, 255, 0.4);
}

/* Identified - Blue */
#viewIncidentContent .status-badge.identified {
    background: rgba(70, 181, 255, 0.15);
    color: #70c8ff;
    border: 1px solid rgba(70, 181, 255, 0.4);
}

/* Monitoring - Yellow */
#viewIncidentContent .status-badge.monitoring {
    background: rgba(70, 181, 255, 0.15);
    color: #70c8ff;
    border: 1px solid rgba(70, 181, 255, 0.4);
}

/* Resolved - Green */
#viewIncidentContent .status-badge.resolved {
    background: rgba(70, 181, 255, 0.15);
    color: #70c8ff;
    border: 1px solid rgba(70, 181, 255, 0.4);
}


/* ---------- CARD BUTTONS ---------- */

#viewIncidentContent .incident-card-actions {
    display: flex;
    gap: 10px;
}

#viewIncidentContent .incident-card-actions button {
    flex: 1;
    padding: 10px 8px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

#viewIncidentContent .view-btn {
    background: #003d5b;
    color: #ffffff;
    border: 1px solid #27618a;
}

#viewIncidentContent .view-btn:hover {
    background: #075078;
    border-color: #46b5ff;
}

#viewIncidentContent .edit-btn {
    background: #d97706;
    color: #ffffff;
    border: 1px solid #f59e0b;
}

#viewIncidentContent .edit-btn:hover {
    background: #f59e0b;
}


/* ---------- RESPONSIVE DESIGN ---------- */

/* Smaller desktops and laptops */
@media (max-width: 1100px) {

    #viewIncidentContent .incident-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #viewIncidentContent .incident-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #viewIncidentContent .search-container {
        grid-column: 1 / -1;
    }

    #viewIncidentContent .incident-summary {
        gap: 10px;
    }

    #viewIncidentContent .summary-card {
        padding: 12px 10px;
    }

    #viewIncidentContent .summary-label {
        font-size: 12px;
    }

    #viewIncidentContent .summary-card h2 {
        font-size: 23px;
    }
}


/* Tablets */
@media (max-width: 850px) {

    #viewIncidentContent .incident-summary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}


/* Mobile devices */
@media (max-width: 700px) {

    #viewIncidentContent {
        padding: 22px 16px 40px;
    }

    #viewIncidentContent .incident-page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    #viewIncidentContent .incident-page-header h1 {
        font-size: 25px;
    }

    #viewIncidentContent .incident-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    #viewIncidentContent .summary-card {
        padding: 14px;
    }

    #viewIncidentContent .summary-card h2 {
        font-size: 24px;
    }

    #viewIncidentContent .incident-grid {
        grid-template-columns: 1fr;
    }

    #viewIncidentContent .incident-filters {
        grid-template-columns: 1fr;
    }

    #viewIncidentContent .search-container {
        grid-column: auto;
    }

    #viewIncidentContent .incident-section-header {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* Very small mobile screens */
@media (max-width: 380px) {

    #viewIncidentContent .incident-summary {
        grid-template-columns: 1fr;
    }
}


/* ---------- EMPTY RESULTS / ERROR MESSAGES ---------- */

#viewIncidentContent .incident-message {
    grid-column: 1 / -1;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 250px;
    padding: 35px 25px;
    margin: 10px 0 25px;

    text-align: center;

    background: linear-gradient(
        145deg,
        #102d49,
        #0b223a
    );

    border: 1px solid #27618a;
    border-radius: 16px;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);

    position: relative;
    overflow: hidden;
}

/* Colored accent across the top */
#viewIncidentContent .incident-message::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 4px;

    background: #46b5ff;
}

/* Circular icon */
#viewIncidentContent .message-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 65px;
    height: 65px;

    margin-bottom: 18px;

    border-radius: 50%;

    font-size: 30px;
    font-weight: 700;
}

/* Message heading */
#viewIncidentContent .incident-message h3 {
    color: #ffffff;
    font-size: 21px;
    font-weight: 700;

    margin: 0 0 9px;
}

/* Message description */
#viewIncidentContent .incident-message p {
    color: #a9bfd7;
    font-size: 14px;
    line-height: 1.7;

    max-width: 480px;
    margin: 0;
}

/* ---------- EMPTY RESULTS ---------- */

#viewIncidentContent .empty-message {
    border-color: rgba(70, 181, 255, 0.45);
}

#viewIncidentContent .empty-message::before {
    background: #46b5ff;
}

#viewIncidentContent .empty-message .message-icon {
    color: #70c8ff;
    background: rgba(70, 181, 255, 0.13);
    border: 1px solid rgba(70, 181, 255, 0.35);
}

/* ---------- ERROR MESSAGE ---------- */

#viewIncidentContent .error-message {
    background: linear-gradient(
        145deg,
        #351c2b,
        #211b2c
    );

    border-color: rgba(239, 68, 68, 0.55);
}

#viewIncidentContent .error-message::before {
    background: #ef4444;
}

#viewIncidentContent .error-message .message-icon {
    color: #ff7777;
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(239, 68, 68, 0.4);
}

#viewIncidentContent .error-message h3 {
    color: #ff8585;
}




