/* Reset en basis stijlen */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Roboto", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: #1e88e5;
    color: white;
    padding: 5px 2px 9px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.subheader {
    background: #006FC9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 34px;
}
.subheader .container{  
    color: hsla(0, 0%, 100%, .7);
    margin: 1px auto 0;
    width: 90%;
    max-width: 1140px;
    padding: 0 15px;
}

.subheader strong{
    color: #fff;
}
.logo-img {
    height: 26px;
    width: auto;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    border-radius: 4px;
    -webkit-transition: opacity .2s cubic-bezier(.4,0,.6,1);
    transition: opacity .2s cubic-bezier(.4,0,.6,1);
    height: 36px;
    min-width: 64px;
    padding: 0 16px;
    display: inline-flex
;
    -webkit-box-flex: 0;
    flex: 0 0 auto;
    font-weight: 500;
    letter-spacing: .0892857143em;
    -webkit-box-pack: center;
    justify-content: center;
    outline: 0;
    position: relative;
    text-decoration: none;
    text-indent: 0.0892857143em;
    text-transform: uppercase;
}

.nav-link:hover {
    background-color: #469dea;
}

/* Main content */
.main {
    padding: 3rem 0;
}

.status-header {
    text-align: center;
    margin-bottom: 3rem;
}

.status-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.status-subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
}

/* Overall status card */
.overall-status {
    margin-bottom: 3rem;
}

.status-card {
    background: white;
    border-radius: 4px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 5px solid;
    transition: transform 0.3s ease;
}

.status-card:hover {
    transform: translateY(-5px);
}

.status-card.operational {
    border-left-color: #27ae60;
}

.status-card.partial_outage {
    border-left-color: #f39c12;
}

.status-card.major_outage {
    border-left-color: #e74c3c;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #27ae60;
    animation: pulse 2s infinite;
}

.status-card.partial_outage .status-dot {
    background-color: #f39c12;
}

.status-card.major_outage .status-dot {
    background-color: #e74c3c;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.status-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
}

.uptime-info {
    text-align: right;
}

.uptime-percentage {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #27ae60;
}

.uptime-label {
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* Section titles */
.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 2rem;
    text-align: center;
}

/* Services grid */
.services-grid {
    margin-bottom: 3rem;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: white;
    border-radius: 4px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid #3498db;
    text-decoration: none;
    color: inherit;
    display: block;
    text-decoration: none;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.service-card.active {
    border-left-color: #27ae60;
    background-color: #f8fff9;
    cursor: default;
}

.service-card.active:hover {
    transform: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

/* Service card border kleuren op basis van incident status */
.service-border-green {
    border-left-color: #27ae60; /* Opgelost */
}

.service-border-red {
    border-left-color: #e74c3c; /* Onderzoek */
}

.service-border-yellow {
    border-left-color: #f1c40f; /* Geïdentificeerd */
}

.service-border-orange {
    border-left-color: #e67e22; /* Monitoring */
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.service-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
}

.service-status {
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.service-status.operational {
    background-color: #d5f4e6;
    color: #27ae60;
}

.service-status.partial_outage {
    background-color: #fef9e7;
    color: #f39c12;
}

.service-status.major_outage {
    background-color: #fadbd8;
    color: #e74c3c;
}

.service-status.maintenance {
    background-color: #ebf3fd;
    color: #3498db;
}

.service-description {
    color: #7f8c8d;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Incidents section */
.incidents-section {
    margin-bottom: 3rem;
}

.incident-groups-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.incident-group-card {
    background: white;
    border-radius: 4px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-left: 4px solid #e74c3c;
    transition: transform 0.3s ease;
}

/* Incident group border kleuren op basis van status */
.incident-border-resolved {
    border-left-color: #27ae60; /* Opgelost */
}

.incident-border-investigating {
    border-left-color: #e74c3c; /* Onderzoek */
}

.incident-border-identified {
    border-left-color: #f1c40f; /* Geïdentificeerd */
}

.incident-border-monitoring {
    border-left-color: #e67e22; /* Monitoring */
}

.incident-group-card:hover {
    transform: translateX(5px);
}

.incident-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.incident-status {
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.incident-status.resolved {
    background-color: #d5f4e6;
    color: #27ae60; /* Opgelost */
}

.incident-status.investigating {
    background-color: #fadbd8;
    color: #e74c3c; /* Onderzoek */
}

.incident-status.identified {
    background-color: #fef9e7;
    color: #f1c40f; /* Geïdentificeerd */
}

.incident-status.monitoring {
    background-color: #fef5e7;
    color: #e67e22; /* Monitoring */
}

.incident-date {
    font-size: 0.9rem;
    color: #7f8c8d;
}

.incident-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.incident-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.affected-services {
    font-size: 0.9rem;
    color: #7f8c8d;
    background-color: #f8f9fa;
    padding: 0.5rem;
    border-radius: 4px;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #ecf0f1;
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ecf0f1;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 1rem;
    text-align: center;
    color: #95a5a6;
    font-size: 0.9rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav {
        gap: 1rem;
    }
    
    .status-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .uptime-info {
        text-align: center;
    }
    
    .services-list {
        grid-template-columns: 1fr;
    }
    
    .incident-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .status-title {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .main {
        padding: 2rem 0;
    }
    
    .status-title {
        font-size: 1.8rem;
    }
    
    .status-card {
        padding: 1.5rem;
    }
    
    .service-card,
    .incident-group-card {
        padding: 1rem;
    }
}

/* Timeline styling */
.incident-timeline {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #ecf0f1;
}

.incident-timeline h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #ecf0f1;
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -1.5rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 2px #ecf0f1;
}

.timeline-marker.resolved {
    background: #27ae60; /* Opgelost */
    box-shadow: 0 0 0 2px #27ae60;
}

.timeline-marker.investigating {
    background: #e74c3c; /* Onderzoek */
    box-shadow: 0 0 0 2px #e74c3c;
}

.timeline-marker.identified {
    background: #f1c40f; /* Geïdentificeerd */
    box-shadow: 0 0 0 2px #f1c40f;
}

.timeline-marker.monitoring {
    background: #e67e22; /* Monitoring */
    box-shadow: 0 0 0 2px #e67e22;
}

.timeline-content {
    background: #f8f9fa;
    border-radius: 4px;
    padding: 1rem;
    border-left: 3px solid #ecf0f1;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.timeline-date {
    font-size: 0.8rem;
    color: #7f8c8d;
    font-weight: 500;
}

.timeline-status {
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.timeline-status.resolved {
    background-color: #d5f4e6;
    color: #27ae60; /* Opgelost */
}

.timeline-status.investigating {
    background-color: #fadbd8;
    color: #e74c3c; /* Onderzoek */
}

.timeline-status.identified {
    background-color: #fef9e7;
    color: #f1c40f; /* Geïdentificeerd */
}

.timeline-status.monitoring {
    background-color: #fef5e7;
    color: #e67e22; /* Monitoring */
}

.timeline-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.timeline-description {
    font-size: 0.85rem;
    color: #7f8c8d;
    line-height: 1.4;
    margin: 0;
}

/* Responsive timeline */
@media (max-width: 768px) {
    .timeline {
        padding-left: 1.5rem;
    }
    
    .timeline-marker {
        left: -1.25rem;
    }
    
    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
}

/* Service detail page styles */
.breadcrumb {
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-bottom: 1px solid #ecf0f1;
}

.breadcrumb-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb-link:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 0.5rem;
    color: #7f8c8d;
}

.breadcrumb-current {
    color: #2c3e50;
    font-weight: 600;
}

.service-detail-header {
    margin-bottom: 3rem;
}

.service-detail-card {
    background: white;
    border-radius: 4px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 5px solid #3498db;
}

/* Service detail card border kleuren op basis van incident status */
.service-detail-card.service-border-green {
    border-left-color: #27ae60; /* Opgelost */
}

.service-detail-card.service-border-red {
    border-left-color: #e74c3c; /* Onderzoek */
}

.service-detail-card.service-border-yellow {
    border-left-color: #f1c40f; /* Geïdentificeerd */
}

.service-detail-card.service-border-orange {
    border-left-color: #e67e22; /* Monitoring */
}

.service-detail-info {
    flex: 1;
}

.service-detail-name {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.service-detail-description {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.service-detail-status {
    margin-top: 1rem;
}

.service-uptime-info {
    text-align: center;
    margin-left: 2rem;
}

.uptime-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    border: 2px solid #ecf0f1;
}

.uptime-card .uptime-percentage {
    font-size: 3rem;
    font-weight: 700;
    color: #27ae60;
    display: block;
    margin-bottom: 0.5rem;
}

.uptime-card .uptime-label {
    font-size: 1rem;
    color: #7f8c8d;
    font-weight: 500;
}

.services-navigation {
    margin-bottom: 3rem;
}

.incidents-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.incident-card {
    background: white;
    border-radius: 4px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-left: 4px solid #e74c3c; /* Default kleur */
    transition: transform 0.3s ease;
}

.incident-card:hover {
    transform: translateX(5px);
}

/* Incident card border kleuren op basis van status */
.incident-card.incident-border-resolved {
    border-left-color: #27ae60; /* Opgelost */
}

.incident-card.incident-border-investigating {
    border-left-color: #e74c3c; /* Onderzoek */
}

.incident-card.incident-border-identified {
    border-left-color: #f1c40f; /* Geïdentificeerd */
}

.incident-card.incident-border-monitoring {
    border-left-color: #e67e22; /* Monitoring */
}

.incident-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.incident-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.incident-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.incident-group {
    font-size: 0.9rem;
    color: #7f8c8d;
    background-color: #f8f9fa;
    padding: 0.5rem;
    border-radius: 4px;
}

.no-incidents {
    text-align: center;
    padding: 3rem 0;
}

.no-incidents-message {
    font-size: 1.1rem;
    color: #7f8c8d;
    font-style: italic;
}

/* Responsive service detail */
@media (max-width: 768px) {
    .service-detail-card {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .service-uptime-info {
        margin-left: 0;
    }
    
    .service-detail-name {
        font-size: 1.8rem;
    }
    
    .uptime-card .uptime-percentage {
        font-size: 2.5rem;
    }
}
