/* Avatar Tab Styles */
.avatar-tab-container {
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: calc(100vh - 100px);
}

.avatar-tab-header {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #4CAF50;
}

.avatar-tab-header h2 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 2rem;
    font-weight: 600;
}

.header-description {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.5;
}

.avatar-content {
    display: flex;
    gap: 30px;
    flex: 1;
    min-height: 0;
}

.avatar-main-section {
    flex: 2;
    min-width: 0;
}

.property-summary-sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 300px;
}

.summary-card, .instructions-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-top: 4px solid #2196F3;
}

.summary-card h4, .instructions-card h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 600;
}

.property-info, .comparables-info, .quick-stats {
    margin-bottom: 20px;
}

.info-row, .stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.info-row:last-child, .stat-item:last-child {
    border-bottom: none;
}

.info-row strong, .stat-item .label {
    color: #555;
    font-weight: 600;
}

.info-row span:last-child, .stat-item .value {
    color: #2c3e50;
    font-weight: 500;
}

.comparable-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid #f0f0f0;
}

.comparable-item:last-child {
    border-bottom: none;
}

.comparable-item .address {
    color: #555;
    flex: 1;
}

.comparable-item .price {
    color: #2196F3;
    font-weight: 600;
    margin-left: 10px;
}

.more-comps {
    font-style: italic;
    color: #777;
    text-align: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.tips-list {
    margin: 0;
    padding-left: 20px;
    color: #555;
}

.tips-list li {
    margin-bottom: 8px;
    line-height: 1.4;
}

.no-data-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 40px;
}

.no-data-card {
    text-align: center;
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    border-top: 6px solid #FF9800;
}

.no-data-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
}

.no-data-card h3 {
    color: #2c3e50;
    margin: 0 0 20px 0;
    font-size: 1.5rem;
}

.no-data-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.steps-list {
    text-align: left;
    color: #555;
    margin: 20px 0;
    padding-left: 20px;
}

.steps-list li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.steps-list strong {
    color: #2196F3;
    font-weight: 600;
}

.help-text {
    font-style: italic;
    color: #777;
    margin-top: 20px;
}

/* SimpleHeyGenAvatarForm Basic Styles */
.heygen-avatar-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.avatar-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.avatar-header h3 {
    color: #2c3e50;
    margin-bottom: 8px;
}

.avatar-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.avatar-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.video-container {
    width: 400px;
    height: 300px;
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    position: relative;
}

.status-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #f0f0f0;
    color: #666;
    padding: 20px;
    text-align: center;
}

.status-message.error {
    color: #dc3545;
    background: #fff5f5;
    border: 2px solid #fed7d7;
}

.status-message.demo-mode {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border: 2px solid #2196F3;
    color: #1565C0;
}

.demo-avatar {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.demo-avatar-face {
    font-size: 4rem;
    animation: pulse 2s infinite;
}

.status-message.demo-mode .demo-avatar-face {
    animation: speaking 0.8s infinite;
}

.demo-status {
    font-weight: bold;
    color: #2196F3;
    padding: 5px 10px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.demo-hint {
    margin-top: 15px;
    padding: 10px;
    background: #e8f5e8;
    border: 1px solid #4caf50;
    border-radius: 6px;
}

.demo-hint p {
    margin: 0;
    font-size: 0.9rem;
    color: #2e7d32;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes speaking {
    0% { transform: scale(1) rotate(-2deg); }
    25% { transform: scale(1.05) rotate(2deg); }
    50% { transform: scale(1.1) rotate(-1deg); }
    75% { transform: scale(1.05) rotate(1deg); }
    100% { transform: scale(1) rotate(-2deg); }
}

.control-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.interaction-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.section {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fafafa;
}

.section h5 {
    margin: 0 0 10px 0;
    color: #333;
    font-weight: 600;
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

/* Feature Preview and API Key Notice Styles */
.feature-preview {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9ff;
    border: 1px solid #e3f2fd;
    border-radius: 8px;
    text-align: left;
}

.feature-preview h5 {
    margin-bottom: 10px;
    color: #1565C0;
    font-size: 1rem;
}

.feature-preview ul {
    margin: 0;
    padding-left: 20px;
    list-style: none;
}

.feature-preview li {
    margin-bottom: 5px;
    line-height: 1.4;
}

.api-key-notice {
    margin-top: 15px;
    padding: 15px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    text-align: center;
}

.api-key-notice h5 {
    margin-bottom: 10px;
    color: #856404;
}

.api-key-notice p {
    margin: 5px 0;
    font-size: 0.9rem;
}

.real-avatar-preview {
    margin-top: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 0.85rem;
}

.real-avatar-preview p {
    margin-bottom: 8px;
    font-weight: bold;
    color: #1976D2;
}

.real-avatar-preview ul {
    margin: 8px 0;
    padding-left: 15px;
    list-style: none;
}

.real-avatar-preview li {
    margin-bottom: 3px;
    font-size: 0.8rem;
}

.setup-steps {
    margin: 15px 0;
    padding: 15px;
    background: #e8f5e8;
    border: 1px solid #4caf50;
    border-radius: 8px;
    text-align: left;
}

.setup-steps h5 {
    margin-bottom: 10px;
    color: #2e7d32;
}

.setup-steps ol {
    margin: 0;
    padding-left: 20px;
}

.setup-steps li {
    margin-bottom: 5px;
    line-height: 1.4;
}

.setup-link {
    color: #1976D2;
    text-decoration: none;
    font-weight: bold;
}

.setup-link:hover {
    text-decoration: underline;
}

.demo-preview {
    margin: 15px 0;
    padding: 15px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
}

.demo-preview h5 {
    margin-bottom: 10px;
    color: #856404;
}

.demo-preview p {
    margin: 5px 0;
    font-size: 0.9rem;
}

.preview-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.what-you-get {
    margin: 15px 0;
    padding: 15px;
    background: #e3f2fd;
    border: 1px solid #2196F3;
    border-radius: 8px;
}

.what-you-get h5 {
    margin-bottom: 10px;
    color: #1565C0;
}

.feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.feature {
    background: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    border: 1px solid #e3f2fd;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Responsive design */
@media (max-width: 1024px) {
    .avatar-content {
        flex-direction: column;
    }

    .property-summary-sidebar {
        min-width: auto;
    }

    .avatar-tab-header h2 {
        font-size: 1.5rem;
    }

    .header-description {
        font-size: 1rem;
    }

    .video-container {
        width: 320px;
        height: 240px;
    }
}

@media (max-width: 768px) {
    .avatar-tab-container {
        padding: 15px;
    }

    .avatar-tab-header {
        padding: 15px;
    }

    .summary-card, .instructions-card {
        padding: 15px;
    }

    .no-data-card {
        padding: 30px 20px;
    }

    .video-container {
        width: 280px;
        height: 210px;
    }

    .config-instructions {
        max-width: 100%;
    }
}