/* Fonts */
:root {
    --default-font: "Roboto", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --heading-font: "Raleway", sans-serif;
    --nav-font: "Poppins", sans-serif;
}

:root {
    --background-color: #ffffff;
    /* Background color for the entire website, including individual sections */
    --default-color: #444444;
    /* Default color used for the majority of the text content across the entire website */
    --heading-color: #555555;
    /* Color for headings, subheadings and title throughout the website */
    --accent-color: #005191;
    /* Accent color that represents your brand on the website. It's used for buttons, links, and other elements that need to stand out */
    --surface-color: #ffffff;
    /* The surface color is used as a background of boxed elements within sections, such as cards, icon boxes, or other elements that require a visual separation from the global background. */
    --contrast-color: #ffffff;
    /* Contrast color for text, ensuring readability against backgrounds of accent, heading, or default colors. */
}

/* Smooth scroll */
:root {
    scroll-behavior: smooth;
}


/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/

html {
    overflow-x: auto !important;
}

body {
    padding: 0px !important;
    color: var(--default-color);
    background-color: white !important;
    font-family: var(--default-font);
    min-width: 400px !important;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: 0.3s;
}

a:hover {
    color: color-mix(in srgb, var(--accent-color), transparent 25%);
    text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--heading-color);
    font-family: var(--heading-font);
}

.card {
    overflow: hidden;
    border-radius: 0;
    border: 0;
    box-shadow: 0 2px 1px -1px var(--opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--opacity, rgba(0, 0, 0, .12))
}

.lead {
    font-size: 1.2rem;
    color: #495057;
}


/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/

header {
    background-color: white;
}

.nav-link {
    color: #444444;
}

.nav-link:hover {
    color: #005191;
}

#header-content {
    width: 70%;
}

.nav {
    font-size: 12px !important;
}

.active_cc {
    border-bottom: 2px solid #005191!important;
    font-weight: bold !important;
    color: #005191 !important;
    border-radius: 0px !important;
}


/*--------------------------------------------------------------
# Cluster banner
--------------------------------------------------------------*/

.cluster-banner {
    background: linear-gradient(135deg, #003366, #0066cc);
    color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
    overflow: hidden;
    position: relative;
}

.cluster-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    transform: rotate(30deg);
}

.cluster-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
    position: relative;
    color: white;
}

.cluster-stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 1;
    min-width: 150px;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .cluster-stats {
        flex-direction: column;
    }

    .stat-item {
        width: 100%;
    }
}

.banner-container {
    width: 90%;
    margin: auto;
    margin-top: 20px;
}

.banner {
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 15px 20px;
    margin-bottom: 20px;
}

.banner-content {
    display: flex;
    flex-direction: column;
}


/*--------------------------------------------------------------
# Cluster status
--------------------------------------------------------------*/

.cluster-status {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.cluster-status:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.cluster-name {
    font-weight: bold;
    color: #333;
}

.cluster-message {
    margin-top: 15px;
    color: #666;
}

.cluster-time {
    font-size: 0.8em;
    color: black;
    margin-top: 10px;
    font-style: italic;
}

.banner.warning {
    border-top: 8px solid #ffc107;
    color: #ffc107;
}

.banner.error {
    color: #dc3545;
    border-top: 8px solid #dc3545;
}

.banner.ok {
    border-top: 8px solid #12a70d;
    color: #12a70d;
}

.status-icon {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}

.status-icon.warning {
    background-color: #ffc107;
}

.status-icon.error {
    background-color: #dc3545;
}

.status-icon.ok {
    background-color: #12a70d;
}

.status {
    font-weight: bold;
}


/*--------------------------------------------------------------
# Homepage
--------------------------------------------------------------*/

#homeText {
    margin-top: 100px;
    margin-bottom: 100px !important;
}

#homeText h1 {
    color: #005191;
    font-weight: bold;
}

.section {
    width: 70%;
    margin: auto;
}

.section h2 {
    text-align: center;
    color: #005191;
}

.section h3 {
    font-size: 25px;
}


/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/

footer {
    background-color: rgba(0,81,145,0.02);
    border-top: 2px solid #005191;
    margin-bottom: 0px;
    padding-bottom: 0px;
    padding-top: 50px;
}

footer h4 {
    font-size: 15px;
    font-weight: bold;
}

.footer-links {
    margin-top: 40px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links a{
    text-decoration: none;
}

.footer-links a {
    color: var(--default-color);
    font-size: 13px;
}

.footer-links a:hover {
    color: var(--accent-color);
    font-size: 13px;
    font-weight: bold;
}

.social {
    margin-top: 30px;
}

.social ul {
    list-style: none;
    margin-left: 0px;
    padding-left: 0px;
}

.copyright {
    margin: auto;
    margin-top: 30px;
    text-align: center;
    padding-top: 30px;
}

.copyright p {
    font-size: 12px;
    margin-bottom: 0;
    padding-bottom: 20px;
}


/*--------------------------------------------------------------
# Sensibilisation
--------------------------------------------------------------*/

  .progress {
    height: 20px;
    border-radius: 10px;
  }

  .progress-bar {
    transition: width 0.6s ease;
  }

  .list-group-item {
    transition: background-color 0.3s ease;
  }

  .list-group-item:hover {
    background-color: #f8f9fa;
  }

  .badge {
    font-weight: 500;
  }

  .btn-outline-primary {
    border-radius: 20px;
    padding: 4px 12px;
  }

  .alert-dismissible .btn-close {
    padding: 0.75rem 1rem;
  }
