/* Control Bar Styles */

.control-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 15px;
    z-index: 10;
    transition: opacity 300ms ease, transform 300ms ease;
    /* Performance hint */
    will-change: opacity, transform;
}

/* Visible state */
.control-bar.controls-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hidden state */
.control-bar.controls-hidden {
    opacity: 0;
    transform: translateY(-100%);
    pointer-events: none;
}

/* Control buttons */
.control-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    padding: 8px 16px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s, transform 0.1s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.control-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.control-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.control-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Close button - special styling */
#btn-close {
    background: rgba(220, 53, 69, 0.8);
    margin-left: auto;
}

#btn-close:hover {
    background: rgba(220, 53, 69, 1);
}

/* Fullscreen button */
#btn-fullscreen {
    background: rgba(33, 150, 243, 0.8);
}

#btn-fullscreen:hover {
    background: rgba(33, 150, 243, 1);
}

/* Open in new tab button */
#btn-open-new-tab {
    background: rgba(76, 175, 80, 0.8);
}

#btn-open-new-tab:hover {
    background: rgba(76, 175, 80, 1);
}

/* History navigation buttons */
#btn-back,
#btn-forward {
    background: rgba(255, 255, 255, 0.2);
    font-size: 20px;
    padding: 8px 12px;
}

/* Site name display */
.site-name {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    margin-right: auto;
}
