/* Camera page specific styles */
body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

.header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
    display: flex;
    z-index: 150;
    position: absolute;
    width: 100%;
    padding: 20px;
}

.leftpart {
    display: flex;
    flex: 1;
}

.middlepart {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    color: white;
}

.rightpart {
    display: flex;
    height: 70px;
    flex: 1;
    justify-content: center;
    max-width: 200px;
    margin-top: 20px;
}

.demo-button {
    background-color: blue;
    border-radius: 5px;
    height: 45px;
    margin-top: 10px;
    width: 100px;
    font-family: roboto, gill sans arial,;
    transition: background-color 0.2s;
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
}

.demo-button:hover {
    background-color: turquoise;
    border-width: 3px;
    border-color: white;
    color: black;
}

.sizer {
    height: 110px;
    width: 155px;
    margin-top: -5px;
    margin-left: 20px;
}

#video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#video.hidden {
    opacity: 0;
}

#photo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    z-index: 50;
}

#photo.visible {
    display: block;
}

.status-message {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    padding: 14px 24px;
    border-radius: 10px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    z-index: 120;
    min-width: 220px;
    max-width: 90%;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.status-message.success {
    background: rgba(76, 175, 80, 0.9);
}

.status-message.error {
    background: rgba(255, 76, 76, 0.9);
}

.status-message.info {
    background: rgba(33, 150, 243, 0.9);
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
    z-index: 140;
}

.spinner {
    width: 64px;
    height: 64px;
    border: 6px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
    text-align: center;
}

.controls {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 130;
}

button {
    padding: 12px 24px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-weight: 500;
    transition: background 0.3s;
}

button:hover {
    background: rgba(255, 255, 255, 1);
}

button:disabled {
    background: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .camera-nav {
        top: 10px;
        left: 10px;
    }

    .camera-nav .nav-link {
        padding: 10px 16px;
        font-size: 14px;
    }
}

