#airacam-panel-container {
    position: fixed;
    top: 0;
    right: 0;
    width: 380px;
    height: 100%;
    background-color: #1a1a2e;
    border-left: 1px solid #4b5563;
    box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    display: none;
}

#airacam-panel-container.open {
    transform: translateX(0);
}

#airacam-panel-content {
   height: 100%;
   overflow-y: auto;
   position: relative;
   color: #e0e0e0;
}

.airacam-view-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    padding: 1rem;
    box-sizing: border-box;
}

#airacam-camera-feed {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.airacam-action-button {
    position: absolute;
    bottom: 40px;
    background-color: #ec4899;
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 9999px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 14px 0 rgba(236, 72, 153, 0.39);
}

.airacam-top-controls {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.airacam-camera-selector {
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
}

#airacam-threat-view {
    text-align: center;
}

#airacam-captured-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #ec4899;
    margin-bottom: 1rem;
}

#airacam-threat-message {
    font-size: 1rem;
    line-height: 1.5;
    max-width: 90%;
}

#airacam-countdown {
    color: #ef4444;
    font-weight: bold;
}

#airacam-patreon-link {
    color: #a855f7;
    text-decoration: underline;
}

.airacam-password-container {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

#airacam-password-input {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid #4b5563;
    color: white;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    width: 90%;
}

#airacam-password-ok-button {
    background-color: #4f46e5;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
}

.airacam-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #4f46e5;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    animation: rotation 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (min-width: 769px) {
    #airacam-panel-container {
        display: block;
    }
}