/* Global Styles */
body {
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow-x: hidden;
    background: url('../img/background.jpg') no-repeat center center fixed;
    background-size: cover;
}

#waitingMessage {
    font-size: 18px;
}

/* Header Styles */
.main-header {
    background: rgba(255, 255, 255, 0.5);
    color: #2c3e50;
    padding: 0.75rem 0;
    height: 90px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.logo-container {
    width: 120px;
}

.logo {
    max-width: 100%;
    height: auto;
    max-height: 70px;
}

.header-title {
    font-size: 1.5rem;
    margin: 0;
    font-weight: 500;
    color: #040404;
    text-align: center;
}

.header-actions {
    min-width: 120px;
}

/* Main Container Layout */
.main-container {
    min-height: calc(100vh - 150px);
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

.content-wrapper {
    width: 100%;
    max-width: 600px;
    margin: 2rem auto;
    flex-shrink: 0;
}

/* Status Badge Styles */
.badge {
    padding: 0.4em 0.8em;
    font-weight: 500;
    font-size: 0.85em;
}

.user-status-info {
    background: rgba(0,0,0,0.02);
    border-radius: 8px;
    padding: 0.75rem;
    border: 1px solid rgba(0,0,0,0.05);
}

.user-status-info p {
    margin: 0;
}

.badge.bg-success {
    background-color: #34d399 !important;
}

.badge.bg-secondary {
    background-color: #9ca3af !important;
}

.badge.bg-warning {
    background-color: #fbbf24 !important;
    color: #1f2937;
}

.small {
    font-size: 0.7em;
}

/* Centered Section Styles */
.centered-section {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}



.section-content {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}

/* Form Styles */
.section-form {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.8);
}

.form-content {
    text-align: left;
}

.form-label {
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-control-lg {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.1);
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.2s ease;
}

.form-control-lg:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 4px rgba(26,115,232,0.1);
    background: #ffffff;
}

.form-control-lg::placeholder {
    color: #9ca3af;
}

/* Share Options Styles */
.share-options-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.8);
}

.share-option {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.share-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    background: rgba(255, 255, 255, 0.95);
}

.share-option.primary {
    border: 2px solid #1a73e8;
    background: rgba(255, 255, 255, 0.97);
}

.share-option h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.share-option p {
    color: #64748b;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

/* Button Styles */
.btn-lg {
    padding: 0.875rem 1.5rem;
    font-weight: 500;
}

.btn-primary {
    background-color: #1a73e8;
    border-color: #1a73e8;
}

.btn-primary:hover {
    background-color: #1557b0;
    border-color: #1557b0;
    box-shadow: 0 2px 4px rgba(26,115,232,0.2);
}

.btn-outline-primary {
    color: #1a73e8;
    border-color: #1a73e8;
}

.btn-outline-primary:hover {
    background-color: #1a73e8;
    border-color: #1a73e8;
    box-shadow: 0 2px 4px rgba(26,115,232,0.2);
}

/* Divider Styles */
.divider {
    text-align: center;
    position: relative;
    padding: 0.5rem 0;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background-color: rgba(0,0,0,0.1);
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.divider span {
    background: rgba(255, 255, 255, 0.9);
    padding: 0 1rem;
    color: #64748b;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

/* Download Option Styles */
.download-option {
    text-align: center;
    padding: 1rem;
    border-top: 1px solid rgba(0,0,0,0.05);
    margin-top: 1rem;
}

.download-option p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: #64748b;
}

.download-link {
    color: #1a73e8;
    text-decoration: none;
    font-size: 0.9rem;
}

.download-link:hover {
    text-decoration: underline;
}

/* Modal Styles */
.modal-static {
    transform: none !important;
}

.modal-static .modal-dialog {
    transform: none !important;
    transition: none !important;
}

.modal-backdrop {
    animation: none !important;
    transition: none !important;
}

.modal-content {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.8);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.modal-header {
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.modal-footer {
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* Session Status Styles */
.session-status {
    max-width: 400px;
    margin: 0 auto;
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    border-radius: 8px;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.start-sharing-info {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.8);
    max-width: 400px;
    margin: 0 auto;
}

/* Waiting Spinner */
.waiting-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(26,115,232,0.1);
    border-top: 4px solid #1a73e8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

.slide-up {
    animation: slideUp 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* App Container */
.app-container {
    position: fixed;
    top: 73px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
}

.app-frame {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
}

/* Content Card */
.content-card {
    background: transparent;
    box-shadow: none;
    border: none;
    backdrop-filter: none;
    padding: 0;
    margin: 0;
}

/* Common Title Styles */
.centered-section h3 {
    text-shadow: #fff 1px 0 10px;
    color: #998472;
}

.option-content h3 {
    color: #1a73e8;
}

/* Active Session Info */
#activeSessionInfo {
    max-width: 400px;
    margin: 0 auto;
}

/* Responsive Adjustments */
@media (max-width: 640px) {
    .main-container {
        height: calc(100vh - 65px);
    }
    
    .main-header {
        height: 90px;
    }
    
    .app-container {
        top: 65px;
    }
    
    .header-content {
        padding: 0 1rem;
    }
    
    .header-title {
        font-size: 1.25rem;
    }
    
    .section-form,
    .share-options-stack,
    .start-sharing-info {
        padding: 1.5rem;
    }
}