/* Closeup – Custom Styles */

::selection {
    background-color: #0a0a0a;
    color: #fff;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles */
:focus-visible {
    outline: 2px solid #0a0a0a;
    outline-offset: 2px;
}

/* Button base */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.75rem;
    transition: all 0.15s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: #0a0a0a;
    color: #fff;
}

.btn-primary:hover {
    background-color: #262626;
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background-color: #f5f5f5;
    color: #0a0a0a;
}

.btn-secondary:hover {
    background-color: #e5e5e5;
}

.btn-danger {
    background-color: #ef4444;
    color: #fff;
}

.btn-danger:hover {
    background-color: #dc2626;
}

/* Form inputs */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e5e5;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    background: #fff;
}

.form-input:focus {
    border-color: #0a0a0a;
    box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.08);
    outline: none;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #525252;
    margin-bottom: 0.5rem;
}

/* Card */
.card {
    background: #fff;
    border: 1px solid #f5f5f5;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Video preview */
.video-preview {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #171717;
    border-radius: 1rem;
    overflow: hidden;
    object-fit: cover;
}

/* Daily.co container */
#daily-container {
    width: 100%;
    min-height: 60vh;
    border-radius: 1rem;
    overflow: hidden;
    background: #171717;
}

#daily-container iframe {
    width: 100%;
    height: 100%;
    min-height: 60vh;
    border: none;
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #0a0a0a;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Pulse animation for live indicator */
@keyframes pulse-live {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.live-dot {
    animation: pulse-live 2s ease-in-out infinite;
}

/* Loading spinner */
.spinner {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #e5e5e5;
    border-top-color: #0a0a0a;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
