/* ==========================================================
   SATAID Web - Analysis Compact Viewer
   Compact operational toolbar
========================================================== */


/* ----------------------------------------------------------
   WHITE VIEWER TOOLBAR
---------------------------------------------------------- */

.viewer-toolbar {
    min-height: 48px;
    height: 48px;

    padding: 2px 10px;

    grid-template-columns:
        minmax(180px,1fr)
        auto
        auto;

    align-items: center;

    gap: 10px;
}


/* ----------------------------------------------------------
   PRODUCT INFORMATION
---------------------------------------------------------- */

/* Remove SATAID ANALYSIS label */
.product-type {
    display: none !important;
}

.product-info {
    min-width: 0;
}

.product-info h1 {
    margin: 0;

    font-size: 18px;
    line-height: 1.05;

    font-weight: 800;
}

.time-display {
    margin-top: 2px;

    gap: 12px;

    font-size: 10.5px;
    line-height: 1.05;

    flex-wrap: nowrap;
}


/* ----------------------------------------------------------
   ANIMATION CONTROL
---------------------------------------------------------- */

.animation-toolbar {
    flex-direction: row;

    align-items: center;

    gap: 0;
}

/* Remove ANIMATION caption to save vertical space */
.animation-label {
    display: none !important;
}

.frame-controls {
    border-radius: 5px;
}

.frame-controls button {
    height: 34px;

    padding-left: 14px;
    padding-right: 14px;

    font-size: 14px;
    line-height: 1;

    font-weight: 700;
}

.frame-controls .play-button {
    min-width: 74px;
}


/* ----------------------------------------------------------
   RIGHT TOOLS
---------------------------------------------------------- */

.viewer-tools {
    justify-content: flex-end;

    gap: 0;

    padding-right: 2px;
}


/* Hide latest status badge */
#latestStatus {
    display: none !important;
}


/* Hide Latest button
   Keep element in DOM so existing JS remains safe
*/
#latestButton {
    display: none !important;
}


.tool-buttons {
    gap: 6px;
}

.tool-buttons button {
    height: 34px;

    padding-left: 13px;
    padding-right: 13px;

    font-size: 14px;
    line-height: 1;

    font-weight: 700;

    border-radius: 5px;
}


/* Parameter info can be slightly wider */
#parameterInfoButton {
    padding-left: 15px;
    padding-right: 15px;
}


/* Presentation remains primary action */
#presentationButton {
    padding-left: 15px;
    padding-right: 15px;
}


/* Give Fullscreen safe distance from right edge */
#fullscreenButton {
    margin-right: 4px;

    padding-left: 15px;
    padding-right: 15px;
}


/* ----------------------------------------------------------
   SHORT DESKTOP
---------------------------------------------------------- */

@media (max-height: 800px) and (min-width: 851px) {

    .viewer-toolbar {
        min-height: 46px;
        height: 46px;

        padding-top: 1px;
        padding-bottom: 1px;
    }

    .product-info h1 {
        font-size: 17px;
    }

    .time-display {
        font-size: 10px;
    }

    .frame-controls button,
    .tool-buttons button {
        height: 32px;

        font-size: 13px;
    }
}


/* ----------------------------------------------------------
   MEDIUM DESKTOP
---------------------------------------------------------- */

@media (max-width: 1250px) and (min-width: 851px) {

    .viewer-toolbar {
        gap: 6px;
    }

    .frame-controls button {
        padding-left: 10px;
        padding-right: 10px;
    }

    .tool-buttons {
        gap: 4px;
    }

    .tool-buttons button {
        padding-left: 9px;
        padding-right: 9px;

        font-size: 13px;
    }
}


/* ==========================================================
   RIGHT EDGE SAFETY
   Keep fullscreen button away from browser edge
========================================================== */

.viewer-tools {
    padding-right: 14px;
}

#fullscreenButton {
    margin-right: 0;

    padding-left: 11px;
    padding-right: 11px;
}

@media (max-width: 1450px) and (min-width: 851px) {

    .viewer-tools {
        padding-right: 18px;
    }

    .tool-buttons {
        gap: 5px;
    }

    #parameterInfoButton,
    #presentationButton {
        padding-left: 11px;
        padding-right: 11px;
    }

    #fullscreenButton {
        padding-left: 9px;
        padding-right: 9px;
    }
}


/* ==========================================================
   SIDEBAR PARAMETER TEXT
   Strong dark text for operational readability
========================================================== */

.parameter-item {
    color: #101820;
}

.parameter-item strong,
.parameter-item .parameter-name {
    color: #05080b;
    font-weight: 800;
}

/* English description remains secondary */
.parameter-item small,
.parameter-item .parameter-description {
    color: #45515e;
    font-weight: 500;
}

/* Selected parameter */
.parameter-item.active,
.parameter-item.active strong,
.parameter-item.active .parameter-name {
    color: #ffffff;
}
