@import url(https://fonts.googleapis.com/css?family=Lato:300,400,700);

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
    padding: 20px;
    font-weight: 300;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.header {
    background: linear-gradient(135deg, #495057 0%, #6c757d 100%);
    color: white;
    padding: 30px;
}

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

.title-section {
    text-align: left;
}

.title-section h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.title-section p {
    font-size: 1.2rem;
    opacity: 0.95;
    font-weight: 400;
    letter-spacing: 1px;
}

.auth-section {
    display: flex;
    align-items: center;
}

#authContainer {
    display: flex;
    align-items: center;
}

.google-signin-button {
    display: flex;
    align-items: center;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.user-name {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.sign-out-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sign-out-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.demo-signin-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: #333;
    border: 1px solid #dadce0;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.demo-signin-btn:hover {
    background: #f8f9fa;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.demo-signin-btn img {
    flex-shrink: 0;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* User Section Styles */
.user-section {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.user-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.user-status {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-status.free {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.user-status.premium {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.login-form {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.login-form input[type="email"] {
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 0.9rem;
    min-width: 250px;
    outline: none;
    transition: all 0.3s ease;
}

.login-form input[type="email"]:focus {
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.btn.upgrade {
    background: linear-gradient(135deg, #ffc107 0%, #ff8f00 100%);
    color: #333;
    font-weight: 700;
    text-shadow: none;
    border: none;
    animation: pulse-glow 2s infinite;
}

.btn.upgrade:hover {
    background: linear-gradient(135deg, #ffca28 0%, #ffa000 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.3);
}

.btn.small {
    padding: 6px 12px;
    font-size: 0.8rem;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
    }
    50% {
        box-shadow: 0 6px 20px rgba(255, 193, 7, 0.5);
    }
}

/* Usage Bar Styles */
.usage-info {
    margin-top: 10px;
    text-align: center;
}

.usage-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 5px;
}

.usage-progress {
    height: 100%;
    background: linear-gradient(90deg, #28a745 0%, #ffc107 70%, #dc3545 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.usage-text {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    padding: 40px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.95));
}

.video-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 3px solid #6c757d;
    transition: all 0.3s ease;
}

.video-section:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.video-container {
    position: relative;
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

#webcamFeed {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: all 0.3s ease;
}

/* Video pause effect - brightens and adds border when analyzing */
#webcamFeed.analyzing {
    filter: brightness(1.1) contrast(1.1) saturate(1.2);
    border: 3px solid #ff5722;
    border-radius: 7px;
}

#captureCanvas {
    display: none;
}

/* Flash effect overlay */
.flash-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 50%, rgba(255,255,255,0.3) 100%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.1s ease;
    z-index: 10;
}

.flash-overlay.flash {
    opacity: 1;
}

/* Analysis indicator badge */
.analysis-indicator {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ff5722 0%, #f44336 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0;
    transform: translateY(-20px) scale(0.8);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 11;
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.4);
}

.analysis-indicator.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Pulse animation for analysis indicator */
.analysis-indicator.active {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(255, 87, 34, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(255, 87, 34, 0.8);
        transform: translateY(0) scale(1.05);
    }
    100% {
        box-shadow: 0 4px 15px rgba(255, 87, 34, 0.4);
    }
}

/* Frame freeze indicator */
.frame-indicator {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 11;
}

.frame-indicator.active {
    opacity: 1;
    transform: translateY(0);
}

.status-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-align: center;
    transition: opacity 0.3s ease;
}

.status-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.camera-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.camera-controls label {
    font-weight: 600;
    color: #495057;
}

.camera-controls select {
    padding: 8px 12px;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    font-size: 1rem;
    flex: 1;
}

.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

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

.btn.primary {
    background: linear-gradient(135deg, #F06060 0%, #FA987D 100%);
    color: white;
}

.btn.primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(240, 96, 96, 0.4);
}

.btn.danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
}

.btn.success {
    background: linear-gradient(135deg, #72CCA7 0%, #4BBE8E 100%);
    color: white;
}

.btn.success:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(114, 204, 167, 0.4);
}

/* Special effect for analyze button when clicked */
.btn.success.analyzing {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    transform: scale(0.95);
}

.btn.warning {
    background: linear-gradient(135deg, #ffd43b 0%, #fab005 100%);
    color: #333;
}

.btn.secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
}

.interval-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.interval-control input {
    width: 80px;
    padding: 8px;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    font-size: 1rem;
}

.prompts-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 3px solid #6c757d;
    transition: all 0.3s ease;
}

.prompts-section:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Research Options Panel */
.research-options {
    margin-bottom: 20px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background: #f8f9fa;
}

.options-header {
    padding: 12px 16px;
    background: #e9ecef;
    border-bottom: 1px solid #dee2e6;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #495057;
    user-select: none;
}

.options-header:hover {
    background: #dee2e6;
}

.options-title {
    font-size: 1rem;
}

.collapse-icon {
    font-size: 1.2rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.collapse-icon.collapsed {
    transform: rotate(90deg);
}

.options-panel {
    padding: 16px;
    max-height: 1000px;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.options-panel.collapsed {
    max-height: 0;
    padding: 0 16px;
    opacity: 0;
}

/* Filter Group */
.filter-group {
    margin-bottom: 16px;
}

.filter-label, .control-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.filter-btn {
    padding: 6px 12px;
    border: 1px solid #ced4da;
    background: white;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6c757d;
}

.filter-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.filter-btn.active {
    background: #0d6efd;
    border-color: #0d6efd;
    color: white;
}

/* Control Groups */
.control-group {
    margin-bottom: 16px;
}

.control-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    color: #495057;
}

.radio-option input[type="radio"] {
    margin: 0;
}

.tone-select {
    padding: 6px 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: white;
    font-size: 0.9rem;
    color: #495057;
    width: 200px;
}

/* Preset Group */
.preset-group {
    margin-bottom: 0;
}

.preset-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.preset-btn {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    background: white;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #495057;
}

.preset-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    color: #495057;
}

.results-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 3px solid #6c757d;
    transition: all 0.3s ease;
}

.results-section:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.section-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #495057;
    letter-spacing: 0.5px;
    text-align: left;
    padding-bottom: 8px;
    border-bottom: 1px solid #dee2e6;
}

.preset-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.preset-btn {
    padding: 10px 16px;
    border: 2px solid #e9ecef;
    background: white;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 3px;
}

.preset-btn:hover {
    background: #FA987D;
    border-color: #FA987D;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(250, 152, 125, 0.3);
}

.prompt-group {
    margin-bottom: 25px;
}

.prompt-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #495057;
}

.prompt-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.3s ease;
}

.prompt-group textarea:focus {
    outline: none;
    border-color: #FA987D;
    box-shadow: 0 0 0 3px rgba(250, 152, 125, 0.2);
}

.status-info {
    background: linear-gradient(135deg, rgba(240, 96, 96, 0.1), rgba(250, 152, 125, 0.1));
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 20px;
    border-left: 4px solid #F06060;
    border: 1px solid rgba(240, 96, 96, 0.2);
}

.responses-table {
    width: 100%;
    background: white;
    border-radius: 15px;
    margin-top: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.table-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-header h3 {
    font-size: 1.5rem;
}

.table-controls {
    display: flex;
    gap: 10px;
}

.table-controls .btn {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.table-content {
    max-height: 600px;
    overflow-y: auto;
    padding: 20px;
}

.response-entry {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.response-entry:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.response-entry.error {
    border-color: #ff6b6b;
    background: #fff5f5;
}

.response-header {
    background: #f8f9fa;
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
    color: #495057;
}

.primary-response {
    padding: 20px;
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
}

.secondary-response {
    padding: 20px;
    background: #f3e5f5;
    border-left: 4px solid #9c27b0;
    margin-left: 20px;
    border-radius: 0 0 8px 8px;
}

.response-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.response-text {
    line-height: 1.6;
    color: #333;
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

@keyframes gentlePulse {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-2px) scale(1.02); }
    100% { transform: translateY(0) scale(1); }
}

/* Analysis Progress Card */
.analysis-progress-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.analysis-progress-card.show {
    transform: translateY(0);
    opacity: 1;
}

.progress-content {
    display: flex;
    align-items: center;
    gap: 20px;
    color: white;
}

.progress-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.progress-text h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.progress-text p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

/* Latest Result Card */
.latest-result-card {
    background: white;
    border-radius: 15px;
    margin-top: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid #e9ecef;
    overflow: hidden;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.latest-result-card.show {
    transform: translateY(0);
    opacity: 1;
}

.result-header {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.result-timestamp {
    font-size: 0.85rem;
    opacity: 0.9;
}

.result-content {
    padding: 0;
}

.result-section {
    padding: 20px;
}

.result-section.primary {
    background: #e8f5e8;
    border-left: 4px solid #28a745;
}

.result-section.secondary {
    background: #f8f9fa;
    border-left: 4px solid #6c757d;
    border-top: 1px solid #e9ecef;
}

.result-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-text {
    line-height: 1.6;
    color: #333;
    white-space: pre-wrap;
}

@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }

    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .title-section {
        text-align: center;
    }

    .title-section h1 {
        font-size: 2rem;
    }

    .controls {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .secondary-response {
        margin-left: 10px;
    }

    .preset-buttons {
        justify-content: center;
    }

    .camera-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .video-section, .prompts-section, .results-section {
        padding: 20px;
        transform: none !important;
    }

    .section-title {
        font-size: 1.2rem;
    }
}

/* Help Button */
.help-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.help-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Walkthrough Overlay */
.walkthrough-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    pointer-events: none;
    transition: all 0.3s ease;
}

.walkthrough-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.walkthrough-overlay:not(.hidden) {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.walkthrough-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
}

.walkthrough-highlight {
    position: absolute;
    border: 3px solid #667eea;
    border-radius: 10px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.7);
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 10001;
}

.walkthrough-tooltip {
    position: absolute;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    padding: 0;
    max-width: 350px;
    min-width: 300px;
    z-index: 10002;
    transition: all 0.3s ease;
}

.walkthrough-content {
    padding: 25px;
}

.walkthrough-content h3 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.walkthrough-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 1rem;
}

.walkthrough-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.walkthrough-navigation {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-walkthrough {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.btn-walkthrough.skip {
    background: transparent;
    color: #666;
    border: 1px solid #ddd;
}

.btn-walkthrough.skip:hover {
    background: #f5f5f5;
    color: #333;
}

.btn-walkthrough.nav {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #e9ecef;
}

.btn-walkthrough.nav:hover:not(:disabled) {
    background: #e9ecef;
}

.btn-walkthrough.nav.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.btn-walkthrough.nav.primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

#walkthroughProgress {
    font-size: 0.85rem;
    color: #666;
    font-weight: 600;
}

/* Mobile responsiveness for walkthrough */
@media (max-width: 768px) {
    .help-btn {
        top: 15px;
        right: 15px;
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .walkthrough-tooltip {
        max-width: 90vw;
        min-width: 280px;
        margin: 0 20px;
    }
    
    .walkthrough-content {
        padding: 20px;
    }
    
    .walkthrough-content h3 {
        font-size: 1.2rem;
    }
    
    .walkthrough-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .walkthrough-navigation {
        width: 100%;
        justify-content: space-between;
    }
    
    .btn-walkthrough.skip {
        width: 100%;
    }
}
}