@charset "utf-8";
/* CSS Document */
/*
|--------------------------------------------------------------------------
| SpaceWeather CSS
|--------------------------------------------------------------------------
|
| Styling voor alle SpaceWeather componenten
|
| Versie 1.0
|
*/
/*
|--------------------------------------------------------------------------
| Newell Indicator
|--------------------------------------------------------------------------
*/

.newell-bar {
    width: 100%;
    height: 10px;

    background: linear-gradient(
        to right,
        #32d74b 0%,
        #32d74b 10%,
        #ffd60a 10%,
        #ffd60a 30%,
        #ff9500 30%,
        #ff9500 60%,
        #ff453a 60%,
        #ff453a 100%
    );

    border-radius: 6px;
    overflow: visible;
    margin-top: 12px;
}

.newell-fill {
    width: 0%;
    height: 100%;

    background: transparent;

    position: relative;

    transition: width .6s ease;
}

.newell-fill::after {
    content: "";
    position: absolute;

    right: -6px;
    top: 50%;

    width: 12px;
    height: 12px;

    transform: translateY(-50%);

    background: #ffffff;
    border: 2px solid #333333;

    border-radius: 50%;

    box-shadow: 0 0 4px rgba(255,255,255,0.9);

    box-sizing: border-box;
}

.newell-label {
    margin-top: 12px;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: #d8d8d8;
}

.newell-situation {
    margin-top: 6px;
    text-align: center;
    font-size: 0.85rem;
    line-height: 1.4;
    color: #bfc3c7;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.newell-scale {
    position: relative;
    width: 100%;
    height: 18px;
    margin-top: 5px;

    font-size: 0.68rem;
    color: #bfc3c7;
}

.newell-scale span {
    position: absolute;
    top: 0;
    white-space: nowrap;
}

.scale-start {
    left: 0;
}

.scale-5000 {
    left: 10%;
    transform: translateX(-50%);
}

.scale-15000 {
    left: 30%;
    transform: translateX(-50%);
}

.scale-30000 {
    left: 60%;
    transform: translateX(-50%);
}

.scale-end {
    right: 0;
}

.solar-label {
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 3px;
}

.solar-subtitle {
    color: #bfc3c7;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.solar-value {
    color: #4cd964;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
}

.newell-table {
    width: 100%;
    max-width: 100%;
    margin-top: 12px;
}

.newell-info {
    margin-top: 10px;
}
.newell-info h3 {
    color: #e6e6e6 !important;
}
.newell-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 7px;
    vertical-align: middle;
}

.newell-dot.green {
    background: #32d74b;
}

.newell-dot.yellow {
    background: #ffd60a;
}

.newell-dot.orange {
    background: #ff9500;
}

.newell-dot.red {
    background: #ff453a;
}

.newell-status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 7px;
    vertical-align: middle;
}

.newell-status-dot.green {
    background: #32d74b;
}

.newell-status-dot.yellow {
    background: #ffd60a;
}

.newell-status-dot.orange {
    background: #ff9500;
}

.newell-status-dot.red {
    background: #ff453a;
}

.newell-status-text {
    vertical-align: middle;
}

/*
|--------------------------------------------------------------------------
| Aurora Forecast
|--------------------------------------------------------------------------
*/

.forecast-box{

    max-width:780px;

    margin:18px 0;

    padding:14px 18px;

    border-radius:10px;

    background:rgba(255,255,255,.05);

    border:1px solid rgba(255,255,255,.08);

}

.forecast-title{

    color:#bbb;

    font-size:14px;

    margin-bottom:8px;

    text-transform:uppercase;

    letter-spacing:.05em;

}

.forecast-value{

    font-size:28px;

    font-weight:bold;

    margin-bottom:6px;

}

.forecast-text{

    color:#ddd;

    font-size:14px;

    line-height:1.5;

}

/*
|--------------------------------------------------------------------------
| Dashboard
|--------------------------------------------------------------------------
*/

.sw-dashboard{

    max-width:780px;

    margin:20px 0;

    padding:18px;

    border-radius:10px;

    background:rgba(255,255,255,.05);

    border:1px solid rgba(255,255,255,.08);

}

.sw-title{

    color:#ffffff;

    font-size:23px;

    font-weight:700;

    margin-bottom:18px;

}

.sw-grid{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:12px;

}

.sw-card{

    padding:12px;

    border-radius:8px;

    background:rgba(255,255,255,.04);
	
	min-height: 95px;

	display: flex;

	flex-direction: column;

	justify-content: flex-start;

}

.sw-card{

    transition:.2s ease;

}

.sw-card:hover{

    background:rgba(255,255,255,.07);

}

.sw-card .sw-label {
    flex-shrink: 0;
}

.sw-card .sw-value {
    flex-shrink: 0;
}

.sw-card .sw-small {
    flex-shrink: 0;
}

#dashAuroraPercent {
    font-size: 14px;
    font-weight: 600;
    color: #d8d8d8;
    margin-top: 6px;
    line-height: 1.2;
}

/*
|--------------------------------------------------------------------------
| Dashboard kleuren
|--------------------------------------------------------------------------
*/

.sw-green{
    border-left:4px solid #4caf50;
}

.sw-yellow{
    border-left:4px solid #ffd54f;
}

.sw-orange{
    border-left:4px solid #ff9800;
}

.sw-red{
    border-left:4px solid #f44336;
}

.sw-blue{
    border-left:4px solid #42a5f5;
}

.sw-gray{
    border-left:4px solid #9e9e9e;
}

.sw-label{

    color:#d8d8d8;

    font-size:12px;

    font-weight:600;

    letter-spacing:.08em;

    text-transform:uppercase;

    margin-bottom:10px;

}

.sw-value{

    color:white;

    font-size:32px;

    font-weight:700;
	
	line-height:1.1;

}

.sw-small{

    color:#ddd;

    font-size:13px;

    margin-top:6px;

    line-height:1.4;

}

.sw-secondary .sw-value {
    font-size: 26px;
    font-weight: 500;
}

/*
|--------------------------------------------------------------------------
| Aurora Alert
|--------------------------------------------------------------------------
*/

.aurora-alert{

    margin:20px 0;

    padding:16px;

    border-radius:10px;

    border-left:6px solid #4caf50;

    background:rgba(255,255,255,.05);

}

.aurora-alert-title{

    font-size:22px;

    font-weight:bold;

    margin-bottom:8px;

}

.aurora-alert-text{

    color:#dddddd;

    line-height:1.5;

}

.solar-subtitle{

    font-size:12px;
    color:#bfbfbf;
    margin-top:2px;
    margin-bottom:8px;

}

/*
|--------------------------------------------------------------------------
| Grafieken Speed, Bz, Bt
|--------------------------------------------------------------------------
*/
.chart-current-value {
    color: white;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 6px;
}
.chart-info {
    background: rgba(255,255,255,.04);
    border-radius: 8px;
    padding: 16px;
    color: white;
    font-size: 13px;
    line-height: 1.6;
    box-sizing: border-box;
}

/* ----------------------------------------------------------
   Actuele ruimteweerstatus
   ---------------------------------------------------------- */

.solar-status {
    max-width: 780px;
    margin: 20px 0;
    padding: 16px 18px;
    border-radius: 10px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
}

/* Titel */

.solar-status-title {
    color: #e5e5e5;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

/* Korte uitleg */

.solar-status-description {
    color: #aaa;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 14px;
}

/* Waarden */

.solar-status-values {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    padding: 10px 10px;

    border-radius: 8px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
}

/* Iedere waarde */

.solar-status-values > div {
    display: flex;
    align-items: baseline;

    color: #ddd;
    font-size: 14px;
    line-height: 1.3;

    padding: 0 18px;
}

/* Eerste waarde tegen de linkerzijde */

.solar-status-values > div:first-child {
    padding-left: 0;
}

/* Scheiding tussen waarden */

.solar-status-values > div:not(:last-child) {
    border-right: 1px solid rgba(255,255,255,.22);
}

/* Waarde zelf */

.solar-status-values b {
    color: white;
    font-size: 15px;
    line-height: 1.3;
}

/* Bron */

.solar-status-source {
    color: #888;
    font-size: 11px;
    line-height: 1.4;
    margin-top: 8px;
}
/* Bz Duration */

.bz-duration {
    margin-top: 10px;
    padding-top: 9px;

    border-top: 1px solid rgba(255,255,255,.10);

    color: #bbb;
    font-size: 13px;
    line-height: 1.4;
}

.bz-duration b {
    color: #e5e5e5;
    font-weight: 600;
}

/* ----------------------------------------------------------
   Zonneactiviteit
   ---------------------------------------------------------- */

.flare-card {
    max-width: 780px;
    margin: 20px 0;
    padding: 16px 18px;

    border-radius: 10px;

    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
}

.flare-title {
    color: #e5e5e5;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

.flare-description {
    color: #aaa;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 14px;
}

.flare-content {
    padding: 12px 14px;

    border-radius: 8px;

    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
}

.flare-main {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.flare-main span {
    color: #ddd;
    font-size: 14px;
}

.flare-main strong {
    color: white;
    font-size: 24px;
    font-weight: 700;
}

.flare-status {
    color: #ddd;
    font-size: 14px;
    margin-top: 5px;
}

.flare-time {
    color: #aaa;
    font-size: 12px;
    margin-top: 5px;
}

.flare-source {
    color: #888;
    font-size: 11px;
    line-height: 1.4;
    margin-top: 8px;
}

/* M-flare */

.flare-class-m {
    color: #ffb347 !important;
    text-shadow: 0 0 8px rgba(255,179,71,.25);
}


/* X-flare */

.flare-class-x {
    color: #ff5c5c !important;
    text-shadow: 0 0 10px rgba(255,92,92,.35);
}

/* ----------------------------------------------------------
   Grafiek titel + informatieknop
   ---------------------------------------------------------- */

.chart-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.chart-info-button {
    width: 30px;
    height: 30px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-left: 10px;

    padding: 0;

    border: 1px solid rgba(0,255,255,.65);
    border-radius: 50%;

    background: rgba(255,255,255,.08);

    color: #ffffff;

    font-family: system-ui, sans-serif;
    font-size: 15px;
    font-weight: 750;
    font-style: normal;

    line-height: 1;

    cursor: pointer;

    box-sizing: border-box;

    transition:
        background .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

.chart-info-button:hover {
    background: rgba(255,255,255,.18);
    border-color: rgba(255,255,255,.75);
    transform: scale(1.06);
}

.chart-info-button:focus-visible {
    outline: 2px solid rgba(255,255,255,.75);
    outline-offset: 2px;
}


.chart-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 275px;
}

.chart-wrapper canvas {
    width: 100% !important;
    height: 100% !important;
}
/* ----------------------------------------------------------
   CME Card
   ---------------------------------------------------------- */
.cme-card {
    margin-top: 20px;
    margin-bottom: 30px;
    padding: 20px 22px;
    border-radius: 10px;
    background: #4f4f4f;
    border: 1px solid rgba(255,255,255,.12);
    color: #ddd;
}

.cme-title {
    color: white;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 6px;
}

.cme-description {
    font-size: 14px;
    color: #bbb;
    margin-bottom: 18px;
}

.cme-main {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
}

.cme-main span {
    color: #ccc;
}

.cme-main strong {
    color: white;
    font-size: 24px;
}

.cme-status {
    margin-top: 6px;
    font-size: 16px;
    font-weight: 600;
}

.cme-time {
    margin-top: 6px;
    font-size: 14px;
    color: #bbb;
}

.cme-source {
    margin-top: 16px;
    font-size: 11px;
    color: #999;
}

.cme-impact-yes {
    color: #ff5c5c;
}

.cme-impact-glancing {
    color: #ffb347;
}

.cme-impact-no {
    color: #8fd18f;
}

.cme-impact-unknown {
    color: #cccccc;
}

.cme-content {
    padding: 14px;
    border-radius: 8px;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.10);
}

.cme-meta {
    margin-top: 6px;
    font-size: 13px;
    color: #aaa;
}

.cme-model-info {
    margin-top: 8px;
    font-size: 13px;
    color: #bbb;
}

.cme-card-impact-yes {
    border-color: rgba(255,92,92,.55);
    box-shadow: 0 0 14px rgba(255,92,92,.12);
}

.cme-card-impact-glancing {
    border-color: rgba(255,179,71,.55);
    box-shadow: 0 0 14px rgba(255,179,71,.10);
}

.cme-card-old {
    opacity: .82;
}

.cme-arrival-past {
    color: #999;
}
/* ----------------------------------------------------------
   HOVER info-knop
   ---------------------------------------------------------- */
.info-hover {
    position: relative;
}

.info-hover-content {
    position: absolute;
    z-index: 1000;

	left: calc(100% + 24px);
	top: -28px;
	bottom: auto;

	transform: none;

    width: 320px;
    max-width: 80vw;

    padding: 12px 14px;

    border-radius: 8px;

    background: #292d2f;
    border: 1px solid rgba(55, 210, 210, .55);

    color: #ddd;

    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;

    box-shadow:
    0 10px 28px rgba(0,0,0,.55),
    0 0 10px rgba(55,210,210,.08);

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transition:
        opacity .15s ease,
        visibility .15s ease;
}
.info-hover-content > strong:first-child {
    color: #7fe0df;
    font-size: 14px;
}

.info-hover:hover .info-hover-content,
.info-hover:focus .info-hover-content,
.info-hover:focus-within .info-hover-content {
    opacity: 1;
    visibility: visible;
}

.chart-heading {
    position: relative;
    z-index: 50;
}

.chart-wrapper {
    position: relative;
    z-index: 1;
}

.info-hover {
    position: relative;
    z-index: 60;
}

.info-hover-content {
    z-index: 1000;
}

.chart-heading .info-hover-kp .info-hover-content {
    left: auto !important;
    right: calc(100% + 18px) !important;
    top: -28px !important;
    bottom: auto !important;
    transform: none !important;
}

@media (max-width: 700px) {

    .info-hover-content,
    .info-hover-kp .info-hover-content {
        left: auto !important;
        right: 0 !important;
        top: calc(100% + 14px) !important;
        bottom: auto !important;
        transform: none !important;

        width: min(320px, calc(100vw - 32px));
        max-width: none;
    }

}

@media (hover: none) and (pointer: coarse) {

    .info-hover:focus .info-hover-content,
    .info-hover:focus-within .info-hover-content {
        opacity: 1;
        visibility: visible;
    }

}