/* Custom styles for skin analysis app */
:root {
    --primary: #2563EB;
    --secondary: #1D4ED8;
    --background: #F8FAFC;
    --text: #0F172A;
    --muted: #64748B;
    --primary-soft: #EFF6FF;
    --primary-border: #DBEAFE;
    --primary-text-dark: #1E40AF;

    --card-bg: #FFFFFF;
    --border-neutral: #E2E8F0;
    --text-secondary: #334155;

    --status-red-text: #B91C1C;
    --status-red-bg: #FEE2E2;
    --status-red-border: #FCA5A5;
    --status-orange-text: #B45309;
    --status-orange-bg: #FFEDD5;
    --status-orange-border: #FDBA74;
    --status-green-text: #166534;
    --status-green-bg: #DCFCE7;
    --status-green-border: #86EFAC;
    --status-purple-text: #5B21B6;
    --status-purple-bg: #EDE9FE;
    --status-purple-border: #C4B5FD;
}

body {
    background-color: var(--background);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-neutral);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.card ul {
    text-align: left;
    padding-left: 20px;
}

.section-header-custom {
    background-color: var(--primary-soft) !important;
    border-bottom: 1px solid var(--primary-border) !important;
    padding: 1rem 1.25rem;
}

.section-header-custom h4 {
    color: var(--primary) !important;
    font-weight: 700;
    font-size: 1.15rem;
    margin: 0;
}

.section-header-custom i {
    color: var(--primary) !important;
}

.badge-custom {
    padding: 6px 10px;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 6px;
    border: 1px solid transparent;
}

.badge-primary {
    background-color: var(--primary-soft);
    border-color: var(--primary-border);
    color: var(--primary);
}

.badge-blue {
    background-color: var(--primary-soft);
    border-color: var(--primary-border);
    color: var(--primary);
}

.badge-red {
    background-color: var(--status-red-bg);
    border-color: var(--status-red-border);
    color: var(--status-red-text);
}

.badge-orange {
    background-color: var(--status-orange-bg);
    border-color: var(--status-orange-border);
    color: var(--status-orange-text);
}

.badge-green {
    background-color: var(--status-green-bg);
    border-color: var(--status-green-border);
    color: var(--status-green-text);
}

.badge-purple {
    background-color: var(--status-purple-bg);
    border-color: var(--status-purple-border);
    color: var(--status-purple-text);
}

.progress {
    background-color: var(--border-neutral);
    height: 12px !important;
    border-radius: 6px;
}

.progress-bar-danger { background-color: #DC2626 !important; }
.progress-bar-warning { background-color: #D97706 !important; }
.progress-bar-success { background-color: #16A34A !important; }

.privacy-box-blue {
    background-color: var(--primary-soft);
    border: 1px solid var(--primary-border);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    border-radius: 8px;
}

.privacy-box-blue h5 {
    color: var(--text);
    font-weight: 700;
}

.privacy-box-blue p {
    color: var(--text-secondary);
}

.privacy-box-blue i {
    color: var(--primary);
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #FFFFFF;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
}

.btn-primary:hover {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

.btn-outline-primary {
    border-color: var(--primary-border);
    color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #FFFFFF;
}

.hero-section {
    min-height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1rem;
    background-color: var(--primary-soft);
    border-radius: 16px;
    margin-bottom: 2rem;
    color: #000000;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 1rem 0.5rem;
    }
    
    .hero-section h1 {
        font-size: 2.25rem;
        font-weight: 800;
        margin-bottom: 0.75rem;
        line-height: 1.2;
    }
    
    .hero-section .lead {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .action-button.btn-danger {
        padding: 0.75rem 1.25rem;
        font-size: 1rem;
        margin-top: 0.5rem;
        min-height: 54px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .action-button {
        padding: 0.7rem 1.25rem;
        font-size: 0.95rem;
        min-width: auto;
        width: 100%;
        min-height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.hero-section .card {
    color: #000000;
}

.hero-section .card-title, .hero-section li {
    color: #000000 !important;
}

.action-button.btn-danger {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #FFFFFF !important;
    padding: 1.25rem 2rem;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.action-button.btn-danger:hover {
    background-color: var(--secondary) !important;
    border-color: var(--secondary) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.action-button {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    margin: 0.5rem;
    min-width: 250px;
    margin-top: 1rem;
}

.privacy-notice {
    font-size: 0.9rem;
}

.btn-danger {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #FFFFFF;
}

.btn-danger:hover {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

.container {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.image-preview-container {
    max-width: 100%;
    margin: 1rem auto;
    text-align: center;
}

#imagePreview {
    max-width: 100%;
    max-height: 50vh;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.analysis-result-item {
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 8px;
    background-color: #FFFFFF;
}

.result-label {
    font-weight: bold;
    margin-right: 8px;
    color: var(--text);
}

.result-value {
    font-size: 1.1rem;
    color: var(--text);
}

.product-card {
    border-radius: 10px;
    transition: transform 0.3s ease;
    height: 100%;
    background-color: #FFFFFF;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-img-container {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-img {
    max-height: 160px;
    max-width: 100%;
    object-fit: contain;
}

.product-price {
    font-weight: bold;
    color: var(--primary);
}

.steps-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
    position: relative;
}

.step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 2.5rem;
    font-size: 1rem;
    position: relative;
    z-index: 2;
}

.step.active {
    background-color: var(--primary);
    color: #FFFFFF;
}

.step-label {
    position: absolute;
    top: 45px;
    white-space: nowrap;
    font-size: 0.9rem;
    color: #666;
}

.step.active .step-label {
    color: var(--primary);
    font-weight: bold;
}

.steps-container::before {
    content: '';
    position: absolute;
    width: 80%;
    height: 2px;
    background-color: #e0e0e0;
    top: 20px;
    z-index: 1;
}

.camera-container-kenali {
    position: relative;
    width: 100%;
    margin: 0 auto;
    background-color: #F3F4F6;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.camera-container-kenali video,
.camera-container-kenali canvas {
    width: 100%;
    max-width: 100%;
    border-radius: 12px;
    object-fit: cover;
}

.btn-capture-kenali {
    background-color: var(--primary);
    border: none;
    color: #FFFFFF;
    padding: 0.6rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
}

.btn-capture-kenali:hover {
    background-color: var(--secondary);
    color: #FFFFFF;
}

#cameraFeed, #captureCanvas {
    width: 100%;
    max-width: 100%;
    border-radius: 12px;
    max-height: 70vh;
    object-fit: cover;
}

.optin-modal-kenali {
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.optin-header {
    background-color: #FFFFFF;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #E5E7EB;
    font-weight: 600;
    font-size: 1.1rem;
    color: #1F2937;
}

.optin-body {
    padding: 1.5rem;
    background-color: #FFFFFF;
}

.optin-description {
    color: #6B7280;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.optin-label {
    font-weight: 500;
    color: #374151;
    font-size: 0.9rem;
}

.optin-input {
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
}

.optin-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.optin-info-box {
    background-color: #FDF2F8;
    border: 1px solid #FBCFE8;
    border-radius: 8px;
    padding: 1rem;
    font-size: 0.9rem;
    color: #9D174D;
}

.optin-info-box i {
    color: #EC4899;
}

.btn-optin-submit {
    background-color: var(--primary);
    border: none;
    color: #FFFFFF;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
}

.btn-optin-submit:hover {
    background-color: var(--secondary);
    color: #FFFFFF;
}

.whatsapp-cta-section {
    background: linear-gradient(135deg, var(--primary-soft) 0%, #ffffff 100%);
    padding: 3rem 0;
    margin: 2rem 0;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.whatsapp-cta-section.footer-cta {
    margin: 3rem 0 1rem 0;
}

.whatsapp-cta-section.above-fold {
    margin: 1rem 0 2rem 0;
}

.whatsapp-cta-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1rem;
}

.whatsapp-cta-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.whatsapp-cta-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.5;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.whatsapp-cta-btn {
    background-color: var(--primary);
    border: none;
    color: #FFFFFF;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 280px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.whatsapp-cta-btn:hover {
    background-color: var(--secondary);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.whatsapp-cta-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

.whatsapp-cta-btn i {
    font-size: 1.3rem;
}

@media (max-width: 768px) {
    .whatsapp-cta-section {
        padding: 2rem 1rem;
        margin: 1.5rem 0;
    }
    
    .whatsapp-cta-title {
        font-size: 1.5rem;
    }
    
    .whatsapp-cta-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .whatsapp-cta-btn {
        width: 100%;
        min-width: auto;
        padding: 1.2rem 1.5rem;
        font-size: 1rem;
    }
}

.summary-card {
    border-left: 4px solid var(--primary);
}

.summary-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #212529 !important;
}

.characteristic-item {
    padding: 0.5rem 0;
}

.characteristic-label {
    font-weight: 700;
    color: #212529 !important;
    display: block;
    margin-bottom: 0.25rem;
}

.characteristic-value {
    font-size: 0.95rem;
    color: #212529 !important;
}

.focus-tags .badge {
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
    color: #ffffff !important;
}

.condition-item {
    padding: 1rem;
    background: #ffffff !important;
    border-radius: 8px;
    border-left: 5px solid var(--primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.condition-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #212529 !important;
}

.condition-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #212529 !important;
    margin-top: 1rem;
    display: block;
}

.condition-score .score-label {
    font-size: 0.9rem;
    color: var(--primary) !important;
    margin-right: 0.5rem;
    font-weight: 700;
}

.condition-score .score-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff !important;
}

.badge.bg-dark {
    background-color: #212529 !important;
    color: #ffffff !important;
}

.badge.bg-primary {
    background-color: var(--primary) !important;
    color: #ffffff !important;
}

.product-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
}

.product-card .card-text {
    font-size: 0.9rem;
}

.routine-card {
    border-radius: 12px;
    overflow: hidden;
}

.routine-card .card-header {
    background-color: var(--primary) !important;
    color: #FFFFFF !important;
}

.routine-card .card-body {
    background: #ffffff !important;
}

.routine-list {
    padding-left: 1.5rem;
    margin-bottom: 0;
    color: #212529 !important;
}

.routine-list li {
    color: #212529 !important;
}

.routine-step {
    border-bottom: 1px solid #eeeeee;
    padding-bottom: 0.75rem;
    color: #212529 !important;
}

.routine-step:last-child {
    border-bottom: none;
}

.routine-step strong {
    color: #212529 !important;
    font-size: 1.05rem;
    font-weight: 700;
    display: block;
}

.routine-step p,
.routine-step .text-muted,
.routine-step small,
.routine-instruction {
    font-size: 0.95rem;
    margin-top: 0.35rem;
    color: #333333 !important;
    opacity: 1 !important;
}

.routine-card .text-muted,
.routine-card .routine-instruction {
    color: #333333 !important;
}

.warning-list {
    list-style: none;
    padding-left: 0;
}

.warning-list li {
    padding: 0.5rem;
    background: #fff5f5;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.condition-tags .badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
}

.page-title-themed {
    color: var(--primary);
    font-weight: 700;
}

.card-border-themed {
    border-left: 4px solid var(--primary);
}

.text-themed {
    color: var(--primary) !important;
}

.bg-themed {
    background-color: var(--primary) !important;
    color: #FFFFFF !important;
}

@media (max-width: 768px) {
    .summary-text {
        font-size: 1rem;
    }
    
    .condition-header {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .condition-score {
        margin-top: 0.5rem;
    }
    
    .characteristic-item {
        text-align: center;
    }
    
    .focus-tags {
        text-align: center;
    }

    footer .col-md-6:first-child p {
        margin-bottom: 1.5rem !important;
    }
}
