/**
 * Fort Sentrix - Demo Landing Page Styles
 * SOC-themed dark styling with glass transparency and eagle watermark
 * Session 110: Redesigned two-column layout
 */

/* Page Layout */
.demo-landing {
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0e1a 0%, #1a1f2e 50%, #0d1117 100%);
    color: #e6edf3;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    position: relative;
    overflow-x: hidden;
}

/* =============================================================================
   EAGLE WATERMARK (Session 110)
   Semi-transparent centered watermark, visible through glass panels
   ============================================================================= */
.eagle-watermark {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1; /* Above background, below content text */
    pointer-events: none;
    user-select: none;
}

.eagle-logo {
    width: 500px;
    height: 500px;
    object-fit: contain;
    opacity: 0.25; /* Much higher visibility */
    filter: grayscale(10%) brightness(1.4);
}

/* =============================================================================
   GLASS PANEL EFFECT (Session 110)
   True glass transparency - eagle watermark visible through panels
   ============================================================================= */
.glass-panel {
    background: rgba(22, 27, 34, 0.35); /* Even more transparent for eagle visibility */
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(56, 139, 253, 0.3);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 2; /* Above eagle watermark */
}

/* =============================================================================
   TWO COLUMN LAYOUT (Session 110)
   Quick Access LEFT, Camera Connect RIGHT - Compact for visible canvas
   ============================================================================= */
.two-column-container {
    display: grid;
    grid-template-columns: 420px 1fr; /* Wider Quick Access */
    gap: 1.5rem;
    margin-top: 0.5rem; /* Reduced from 2rem - less top space */
    position: relative;
    z-index: 3; /* Above eagle watermark */
}

.left-column {
    display: flex;
    flex-direction: column;
}

.right-column {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 200px); /* Fit in viewport */
    overflow-y: auto; /* Scroll if needed */
}

/* Vertical access cards */
.access-cards-vertical {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.access-cards-vertical .access-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    text-align: left;
}

.access-cards-vertical .card-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.access-cards-vertical .card-content {
    flex: 1;
}

.access-cards-vertical .card-content h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
}

.access-cards-vertical .card-content p {
    margin: 0 0 0.75rem 0;
    font-size: 0.85rem;
}

/* Compact Important Notes */
.important-notes-compact {
    background: rgba(248, 81, 73, 0.1);
    border: 1px solid rgba(248, 81, 73, 0.3);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.important-notes-compact h4 {
    margin: 0 0 0.5rem 0;
    color: #f85149;
    font-size: 0.9rem;
}

.important-notes-compact ul {
    margin: 0;
    padding-left: 1.25rem;
    font-size: 0.85rem;
}

.important-notes-compact li {
    margin-bottom: 0.25rem;
    color: #e6edf3;
}

/* Compact Quick Links */
.quick-links-compact {
    text-align: center;
    padding: 1rem;
    background: rgba(13, 17, 23, 0.5);
    border-radius: 10px;
}

.quick-links-compact p {
    margin: 0 0 0.75rem 0;
    color: #8b949e;
    font-size: 0.9rem;
}

.link-buttons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

/* Responsive for mobile */
@media (max-width: 900px) {
    .two-column-container {
        grid-template-columns: 1fr;
    }

    .eagle-logo {
        width: 300px;
        height: 300px;
    }
}

/* Header - Compact */
.demo-header {
    text-align: center;
    padding: 1.5rem 1rem 1rem; /* Reduced from 3rem/2rem */
    background: linear-gradient(180deg, rgba(20, 120, 200, 0.1) 0%, transparent 100%);
    border-bottom: 1px solid rgba(56, 139, 253, 0.2);
    position: relative;
    z-index: 3;
}

.header-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.header-brand .logo {
    height: 48px;
    width: auto;
}

.header-brand h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #58a6ff 0%, #1f6feb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.header-tagline {
    color: #8b949e;
    font-size: 1.1rem;
    margin: 0;
}

/* Main Content - Compact */
.demo-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1rem; /* Reduced from 2rem */
    position: relative;
    z-index: 2;
}

/* Quick Access Section */
.quick-access {
    padding: 1.5rem;
    height: fit-content;
}

.quick-access h2 {
    text-align: center;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #58a6ff;
}

.access-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.access-card {
    background: rgba(22, 27, 34, 0.8);
    border: 1px solid rgba(56, 139, 253, 0.3);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.access-card:hover {
    border-color: #58a6ff;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(56, 139, 253, 0.15);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.access-card h3 {
    font-size: 1.3rem;
    margin: 0 0 0.5rem 0;
    color: #e6edf3;
}

.access-card p {
    color: #8b949e;
    margin: 0 0 1.5rem 0;
    font-size: 0.9rem;
}

/* Section Divider */
.section-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(56, 139, 253, 0.5), transparent);
    margin: 3rem 0;
}

/* Setup Wizard - Compact */
.setup-wizard {
    padding: 1rem;
    background: rgba(22, 27, 34, 0.35); /* Extra transparent */
}

.setup-wizard > h2 {
    text-align: center;
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    color: #e6edf3;
}

.wizard-subtitle {
    text-align: center;
    color: #8b949e;
    margin-bottom: 1rem; /* Reduced from 2rem */
    font-size: 0.85rem;
}

/* Wizard Steps - Compact */
.wizard-step {
    background: rgba(22, 27, 34, 0.5);
    border: 1px solid rgba(48, 54, 61, 0.8);
    border-radius: 10px;
    margin-bottom: 0.5rem; /* Reduced from 1rem */
    overflow: hidden;
    transition: all 0.3s ease;
}

.wizard-step:not(.disabled):hover {
    border-color: rgba(56, 139, 253, 0.5);
}

.wizard-step.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem; /* Reduced padding */
    background: rgba(30, 35, 44, 0.5);
    border-bottom: 1px solid rgba(48, 54, 61, 0.5);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, #1f6feb, #388bfd);
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.8rem;
}

.step-header h3 {
    margin: 0;
    font-size: 0.95rem;
    color: #e6edf3;
}

.step-content {
    padding: 0.75rem 1rem; /* Reduced from 1.5rem */
}

/* Form Elements - Compact */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.form-group label {
    font-size: 0.75rem;
    color: #8b949e;
    font-weight: 500;
}

.form-group input,
.form-group select {
    padding: 0.5rem 0.75rem;
    background: rgba(13, 17, 23, 0.8);
    border: 1px solid rgba(48, 54, 61, 0.8);
    border-radius: 6px;
    color: #e6edf3;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #58a6ff;
    box-shadow: 0 0 0 3px rgba(56, 139, 253, 0.15);
}

.form-group input::placeholder {
    color: #484f58;
}

/* Radio Group */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: #e6edf3;
}

.radio-group input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #58a6ff;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #1f6feb, #388bfd);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #388bfd, #58a6ff);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(56, 139, 253, 0.3);
}

.btn-secondary {
    background: rgba(48, 54, 61, 0.8);
    color: #e6edf3;
    border: 1px solid rgba(56, 139, 253, 0.3);
}

.btn-secondary:hover {
    background: rgba(56, 139, 253, 0.2);
    border-color: #58a6ff;
}

.btn-outline {
    background: transparent;
    color: #58a6ff;
    border: 1px solid rgba(56, 139, 253, 0.5);
}

.btn-outline:hover {
    background: rgba(56, 139, 253, 0.1);
    border-color: #58a6ff;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.button-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* OS Buttons */
.os-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.detected-os {
    color: #8b949e;
    margin-bottom: 1rem;
}

.detected-os span {
    color: #58a6ff;
    font-weight: 600;
}

/* VPN IP Display */
.vpn-ip-display {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.vpn-ip-display strong {
    color: #58a6ff;
    font-family: 'Fira Code', monospace;
}

/* Instructions */
.instructions {
    background: rgba(13, 17, 23, 0.5);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin: 1rem 0;
}

.instructions h4 {
    margin: 0 0 0.5rem 0;
    color: #e6edf3;
}

.instructions ol {
    margin: 0;
    padding-left: 1.5rem;
    color: #8b949e;
}

.instructions li {
    margin-bottom: 0.25rem;
}

/* Connection Status */
.connection-status,
.camera-status {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 500;
}

.connection-status.checking,
.camera-status.checking {
    background: rgba(136, 87, 44, 0.2);
    color: #d29922;
}

.connection-status.connected,
.camera-status.connected {
    background: rgba(46, 160, 67, 0.2);
    color: #3fb950;
}

.connection-status.disconnected,
.connection-status.error,
.camera-status.error {
    background: rgba(248, 81, 73, 0.2);
    color: #f85149;
}

/* Credentials Box - Compact */
.credentials-box {
    background: rgba(136, 87, 44, 0.1);
    border: 1px solid rgba(210, 153, 34, 0.3);
    border-radius: 6px;
    padding: 0.6rem 0.75rem;
    margin-bottom: 0.5rem;
}

.credentials-box h4 {
    margin: 0 0 0.5rem 0;
    color: #d29922;
    font-size: 0.8rem;
}

/* RTSP Preview - Compact */
.rtsp-preview {
    background: rgba(13, 17, 23, 0.8);
    border: 1px solid rgba(48, 54, 61, 0.8);
    border-radius: 6px;
    padding: 0.6rem 0.75rem;
    margin-bottom: 0.5rem;
}

.rtsp-preview h4 {
    margin: 0 0 0.4rem 0;
    color: #e6edf3;
    font-size: 0.85rem;
}

.rtsp-url-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    overflow-x: auto;
}

.rtsp-url-box code {
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    color: #58a6ff;
    flex: 1;
    white-space: nowrap;
}

.hint {
    font-size: 0.85rem;
    color: #8b949e;
    margin: 0.5rem 0 0 0;
    text-align: center;
}

/* Important Notes */
.important-notes {
    background: rgba(248, 81, 73, 0.1);
    border: 1px solid rgba(248, 81, 73, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.important-notes h3 {
    margin: 0 0 1rem 0;
    color: #f85149;
}

.important-notes ul {
    margin: 0;
    padding-left: 1.5rem;
    color: #e6edf3;
}

.important-notes li {
    margin-bottom: 0.5rem;
}

.important-notes code {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    color: #58a6ff;
}

/* Already Setup Section */
.already-setup {
    text-align: center;
    padding: 2rem;
    background: rgba(22, 27, 34, 0.5);
    border-radius: 12px;
}

.already-setup p {
    margin: 0 0 1rem 0;
    color: #8b949e;
}

.quick-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Footer */
.demo-footer {
    text-align: center;
    padding: 2rem 1rem;
    border-top: 1px solid rgba(48, 54, 61, 0.5);
    color: #484f58;
}

/* =============================================================================
   DEMO SCHEDULING STYLES (Session 110)
   ============================================================================= */

/* Scheduling Section */
.demo-scheduling {
    margin-bottom: 2rem;
    padding: 1.5rem;
}

.demo-scheduling h2 {
    text-align: center;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #58a6ff;
}

/* Status Banner */
.demo-status-banner {
    background: rgba(22, 27, 34, 0.8);
    border: 1px solid rgba(48, 54, 61, 0.8);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.status-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: #8b949e;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(56, 139, 253, 0.3);
    border-top-color: #58a6ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.status-available,
.status-pending,
.status-active,
.status-busy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-weight: 500;
}

.status-icon {
    font-size: 1.5rem;
}

.status-available {
    color: #3fb950;
}

.status-pending {
    color: #d29922;
}

.status-active {
    color: #58a6ff;
}

.status-busy {
    color: #f85149;
}

/* User Booking Status */
.user-booking-status {
    background: rgba(22, 27, 34, 0.8);
    border: 1px solid rgba(56, 139, 253, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.user-booking-status h3 {
    margin: 0 0 1rem 0;
    color: #e6edf3;
}

.booking-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.booking-info p {
    margin: 0.25rem 0;
    color: #8b949e;
}

.booking-info strong {
    color: #e6edf3;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-badge.pending {
    background: rgba(210, 153, 34, 0.2);
    color: #d29922;
}

.status-badge.active {
    background: rgba(56, 139, 253, 0.2);
    color: #58a6ff;
}

/* Book Demo Form */
.book-demo-form {
    background: rgba(22, 27, 34, 0.8);
    border: 1px solid rgba(48, 54, 61, 0.8);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.book-demo-form h3 {
    margin: 0 0 0.5rem 0;
    color: #e6edf3;
}

.form-subtitle {
    color: #8b949e;
    margin: 0 0 1.5rem 0;
    font-size: 0.9rem;
}

.eligibility-status {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 500;
}

.eligibility-status.success {
    background: rgba(46, 160, 67, 0.2);
    color: #3fb950;
}

.eligibility-status.error {
    background: rgba(248, 81, 73, 0.2);
    color: #f85149;
}

/* Available Slots */
.available-slots {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(48, 54, 61, 0.5);
}

.available-slots h4 {
    margin: 0 0 1rem 0;
    color: #e6edf3;
}

.slots-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.date-group h5 {
    margin: 0 0 0.75rem 0;
    color: #8b949e;
    font-weight: 500;
}

.slots-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.slot-btn {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(48, 54, 61, 0.8);
    border-radius: 8px;
    background: rgba(13, 17, 23, 0.8);
    color: #e6edf3;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.slot-btn.available:hover {
    border-color: #58a6ff;
    background: rgba(56, 139, 253, 0.2);
}

.slot-btn.booked {
    opacity: 0.4;
    cursor: not-allowed;
    text-decoration: line-through;
}

.slots-grid .loading,
.slots-grid .no-slots,
.slots-grid .error {
    color: #8b949e;
    text-align: center;
    padding: 1rem;
}

.slots-grid .error {
    color: #f85149;
}

/* Demo In Progress */
.demo-in-progress {
    background: rgba(248, 81, 73, 0.1);
    border: 1px solid rgba(248, 81, 73, 0.3);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.progress-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.demo-in-progress h3 {
    margin: 0 0 0.5rem 0;
    color: #f85149;
}

.demo-in-progress p {
    color: #8b949e;
    margin: 0.25rem 0;
}

.time-remaining strong {
    color: #e6edf3;
    font-family: 'Fira Code', monospace;
    font-size: 1.2rem;
}

/* Quick Access Modifications */
.access-note {
    text-align: center;
    color: #8b949e;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.access-card.active {
    border-color: #3fb950;
    box-shadow: 0 0 20px rgba(46, 160, 67, 0.2);
}

.btn-danger {
    background: rgba(248, 81, 73, 0.2);
    color: #f85149;
    border: 1px solid rgba(248, 81, 73, 0.5);
}

.btn-danger:hover {
    background: rgba(248, 81, 73, 0.3);
}

/* Hidden utility */
.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 600px) {
    .header-brand h1 {
        font-size: 1.8rem;
    }

    .access-cards {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .button-group {
        flex-direction: column;
    }

    .rtsp-url-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .booking-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .slots-row {
        justify-content: center;
    }
}
