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

:root {
    --bg-color: #F5F2EA;      
    --primary-color: #0B2D26; 
    --font-main: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    font-family: var(--font-main);
    color: var(--primary-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

/* Header Styles */
.navbar {
    padding: 30px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img.brand-logo {
    height: 45px; 
    width: auto;
    object-fit: contain;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-color);
    margin-left: 40px;
    font-size: 16px;
    transition: opacity 0.2s;
}

.nav-links a:hover {
    opacity: 0.7;
}

.nav-links a.active {
    border-bottom: 1.5px solid var(--primary-color);
    padding-bottom: 2px;
}

/* Spacer */
.content-spacer {
    flex-grow: 1;
}

/* -------------------------
   NEW FOOTER STYLES
------------------------- */
.footer {
    padding: 60px 0 40px 0;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.footer-left, .footer-center, .footer-right {
    flex: 1; /* Ensures all three columns take up equal space */
}

/* Left Column */
.footer-left {
    display: flex;
    justify-content: flex-start;
}

.footer-brand-logo {
    height: 45px;
    width: auto;
    object-fit: contain;
}

/* Center Column */
.footer-center {
    text-align: center;
    font-size: 15px;
    line-height: 1.5;
    opacity: 0.8;
}

/* Right Column & Social Icons */
.footer-right {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.social-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-icon:hover {
    transform: translateY(-2px);
    opacity: 0.8;
}

/* Brand colors for icons */
.social-icon.fb { background-color: #1877F2; }
.social-icon.ig { background-color: #E1306C; }
.social-icon.yt { background-color: #FF0000; }
.social-icon.x { background-color: #000000; }
.social-icon.in { background-color: #0A66C2; }
.social-icon.tt { background-color: #000000; }

/* Bottom Copyright Section */
.footer-bottom {
    padding-top: 25px;
    border-top: 1px solid rgba(11, 45, 38, 0.4); /* Dark separator line */
    text-align: left;
}

.footer-bottom p {
    font-size: 14px;
    opacity: 0.8;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-top {
        flex-direction: column;
        gap: 30px;
    }

    .footer-left, .footer-right {
        justify-content: center;
    }
    
    .footer-bottom {
        text-align: center;
    }
}
/* -------------------------
   AI MODEL SECTION STYLES
------------------------- */
.ai-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
}

.ai-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(11, 45, 38, 0.08); /* Soft shadow */
    text-align: center;
    width: 100%;
    max-width: 450px;
}

.ai-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.ai-description {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 30px;
}

/* Button Styling */
.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-family: var(--font-main);
    margin-bottom: 30px;
    width: 100%;
}

.btn-primary:hover {
    background-color: #061f1a;
}

.btn-primary:disabled {
    background-color: #888;
    cursor: not-allowed;
}

/* Webcam Canvas Box */
.webcam-box {
    margin: 0 auto 20px auto;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-color); /* Matches page background before camera loads */
    min-height: 250px;
}

.webcam-box canvas {
    display: block;
    border-radius: 12px;
}

/* Predictions Label Box */
.labels-box {
    display: none;
    flex-direction: column;
    gap: 10px;
}

.labels-box div {
    background: var(--bg-color);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(11, 45, 38, 0.1);
    color: var(--primary-color);
}
.btn-secondary {
    background-color: #E1306C; /* A distinct color for the action button */
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
}

.result-display {
    margin-top: 20px;
}

.diagnosis-card {
    background: #f0f7f4;
    border-left: 5px solid var(--primary-color);
    padding: 15px;
    border-radius: 4px;
    text-align: left;
}

.diagnosis-card h3 {
    margin: 0;
    font-size: 18px;
    color: var(--primary-color);
}

.diagnosis-card p {
    margin: 5px 0 0 0;
    font-size: 14px;
    opacity: 0.7;
}
.button-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

#captured-photo {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

/* Ensure the retake button is a different color to distinguish from capture */
#retake-btn {
    background-color: var(--primary-color);
    width: 100%;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 15px 0;
    opacity: 0.3;
}
.divider::before, .divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--primary-color);
}
.divider span { padding: 0 10px; font-size: 12px; }

.btn-upload {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-weight: 500;
}

#captured-photo {
    width: 100%;
    border-radius: 12px;
}

#switch-upload-btn {
    border: 1px solid rgba(11, 45, 38, 0.3);
    font-size: 13px;
    padding: 8px;
    background-color: transparent;
}

.btn-hard-reset {
    /* --- Base Styling --- */
    background-color: #e4fcead8; /* Very light pink/red background */
    color: #18c256d8; /* Darker red-ish text color */
    border: 1px solid #bbf8c6d3; /* Subtle border that matches */
    border-radius: 8px; /* Smooth, rounded corners */
    padding: 6px 12px; /* Comfortable padding for a good clickable area */
    
    /* --- Typography & Alignment --- */
    font-size: 12px;
    font-weight: 600; /* Medium-bold font for clarity */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px; /* Space between the icon and text */
    margin: 0 auto; /* Keep it centered */
    
    /* --- Modern Transitions --- */
    transition: all 0.3s ease; /* Smooth fade/move effect on hover */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* Very subtle shadow for depth */
}

/* --- Professional Hover & Active States --- */
.btn-hard-reset:hover {
    background-color: #21331b; /* Darker background on hover */
    color: #ffffff; /* White text on hover */
    border-color: #18c28fd6; /* Match border to background */
    box-shadow: 0 4px 10px rgba(24, 194, 98, 0.2); /* Soft red shadow on hover */
}

.btn-hard-reset:active {
    transform: translateY(1px); /* Little "click" effect */
    box-shadow: 0 2px 4px rgba(24, 194, 115, 0.1); /* Reduce shadow when clicked */
}

/* --- Minor Icon Adjustment --- */
.btn-hard-reset i {
    font-size: 11px;
    transition: transform 0.4s ease; /* Icon rotation animation */
}

.btn-hard-reset:hover i {
    transform: rotate(180deg); /* Icon spins on hover! */
}

.btn-reset-app:hover {
    opacity: 1;
}

.diagnosis-card {
    background: #ffffff;
    border-left: 5px solid #0B2D26;
    padding: 20px;
    border-radius: 8px;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.confidence-badge {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.diagnosis-card hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: 15px 0;
}

.disease-desc, .disease-action {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
    color: #444;
}

.disease-action strong {
    color: #0B2D26;
}

/* Layout Wrapper */
.ai-dashboard {
    display: flex;
    gap: 40px;
    padding: 60px 20px;
    align-items: flex-start;
}

.scanner-section {
    flex: 1; /* Takes 1 part of the space */
    max-width: 450px;
}

.info-section {
    flex: 1.5; /* Takes 1.5 parts - makes it wider for text */
}

/* Side Panel Styling */
.side-panel {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    min-height: 500px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-top: 6px solid var(--primary-color);
}

.side-panel h2 {
    font-size: 32px; /* Bigger Title */
    margin-bottom: 20px;
    color: var(--primary-color);
}

.confidence-large {
    display: inline-block;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 6px 15px;
    border-radius: 8px;
    font-weight: 600;
    margin-bottom: 30px;
}

.detailed-desc {
    font-size: 18px; /* Clearer, bigger text */
    line-height: 1.8;
    color: #444;
    margin-bottom: 30px;
}

.action-box {
    background: #f9fbf9;
    padding: 25px;
    border-radius: 12px;
    border: 1px dashed var(--primary-color);
}

.placeholder-msg {
    text-align: center;
    padding-top: 100px;
    opacity: 0.3;
}

.placeholder-msg i { font-size: 50px; margin-bottom: 20px; }

/* Responsive: Stack columns on mobile */
@media (max-width: 900px) {
    .ai-dashboard { flex-direction: column; align-items: center; }
    .info-section, .scanner-section { width: 100%; max-width: 500px; }
}

/* This removes the extra space above the bulleted list */
ul {
    margin-top: 0;
    padding-top: 0;
}

/* Optional: If you want the bullets closer to the text, 
   you can even use a small negative margin */
ul {
    margin-top: -5px; 
}

/* Forces nested lists in the action box to indent */
.action-box ul ul {
    margin-left: 25px;
    margin-top: 8px;
    margin-bottom: 8px;
    list-style-type: circle; /* Ensures the hollow bullet point */
}

/* Optional: Adds a bit of spacing between the main bullet points so it's easier to read */
.action-box > ul > li {
    margin-bottom: 12px;
}