/* Common styles used across all pages */

body {
    margin: 0;
    padding: 0;
    background: #0a0a0a;
    font-family: 'IBM Plex Mono', monospace;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.site-header {
    background: #0a0a0a;
    border-bottom: 1px solid #2a2a2a;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.hamburger-button {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    transition: background 0.2s;
}

.hamburger-button:hover {
    background: #2a2a2a;
}

/* Sidebar Menu */
.sidebar-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: #1a1a1a;
    border-right: 1px solid #2a2a2a;
    transition: left 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
}

.sidebar-menu.open {
    left: 0;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-title {
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
}

.close-button {
    background: none;
    border: none;
    color: #999999;
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.close-button:hover {
    background: #2a2a2a;
    color: #ffffff;
}

.sidebar-webcams {
    padding: 16px 0;
}

.sidebar-webcam-link {
    display: block;
    padding: 16px 20px;
    color: #cccccc;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.sidebar-webcam-link:hover {
    background: #2a2a2a;
    border-left-color: #ff0080;
    color: #ffffff;
}

.sidebar-webcam-link.active {
    background: #2a2a2a;
    border-left-color: #ff0080;
    color: #ffffff;
}

.sidebar-webcam-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.sidebar-webcam-status {
    font-size: 12px;
    color: #999999;
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.sidebar-overlay.open {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .site-header {
        padding: 12px 16px;
    }

    .sidebar-menu {
        width: 280px;
        left: -280px;
    }
}

h1 {
    text-align: center;
    font-weight: 500;
    color: #ffffff;
}

.error {
    text-align: center;
    color: #ff4444;
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 68, 68, 0.08);
    border-radius: 8px;
    border: 1px solid #ff4444;
}

footer {
    text-align: center;
    padding: 20px;
    background: #1a1a1a;
    color: #999999;
    font-size: 12px;
    border-top: 1px solid #3a3a3a;
    margin-top: 20px;
}

@media (max-width: 768px) {
    footer {
        padding: 16px;
        font-size: 11px;
    }
}

body.embedded .site-header,
body.embedded footer,
body.embedded .home-button {
    display: none;
}
