/* inDrive Color Palette */
:root {
    --bright-green: #C0F11C;
    --white: #FFFFFF;
    --black: #000000;
    --dark-gray: #1a1a1a;
    --light-gray: #f5f5f5;
    --medium-gray: #666666;
    --border-gray: #e0e0e0;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--white);
    color: var(--black);
    min-height: 100vh;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Navbar */
.navbar {
    background: linear-gradient(135deg, var(--black), #2d2d2d);
    color: var(--white);
    padding: 12px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.navbar-left {
    display: flex;
    align-items: center;
}

.navbar-brand {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.navbar-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.navbar-link:hover {
    background: rgba(192, 241, 28, 0.2);
    color: var(--bright-green);
    transform: translateY(-1px);
}

.navbar-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(192, 241, 28, 0.3), transparent);
    transition: left 0.5s ease;
}

.navbar-link:hover::before {
    left: 100%;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
}

.title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--bright-green), #a8d708);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: var(--medium-gray);
    font-size: 1.1rem;
    font-weight: 400;
}

/* Main Content Layout */
.main-content {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
    min-height: 600px;
}

/* Left Sidebar */
.sidebar {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px var(--shadow);
    border: 1px solid var(--border-gray);
    height: fit-content;
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    background: var(--light-gray);
    border-radius: 15px;
    padding: 6px;
    margin-bottom: 30px;
    box-shadow: inset 0 2px 4px var(--shadow);
}

.tab-button {
    flex: 1;
    padding: 15px 20px;
    border: none;
    background: transparent;
    color: var(--medium-gray);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.tab-button:hover {
    background: rgba(192, 241, 28, 0.1);
    color: var(--black);
}

.tab-button.active {
    background: var(--bright-green);
    color: var(--black);
    box-shadow: 0 4px 15px rgba(192, 241, 28, 0.3);
}

.tab-icon {
    font-size: 1.2rem;
}

.tab-text {
    font-weight: 600;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Control Section */
.control-section {
    /* margin-bottom: 20px; */
    margin-bottom: 0;
}

.start-button {
    background: var(--bright-green);
    color: var(--black);
    border: none;
    padding: 15px 25px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(192, 241, 28, 0.3);
    margin-bottom: 20px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.start-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(192, 241, 28, 0.4);
}

.start-button:active {
    transform: translateY(0);
}

.start-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.stop-button {
    background: #e53e3e;
    color: var(--white);
    border: none;
    padding: 15px 25px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(229, 62, 62, 0.3);
    margin-bottom: 20px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.stop-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(229, 62, 62, 0.4);
    background: #c53030;
}

.stop-button:active {
    transform: translateY(0);
}

.button-icon {
    font-size: 1.1rem;
}

/* Loading */
.loading {
    display: none;
    color: var(--bright-green);
    font-weight: 500;
    text-align: center;
    padding: 15px;
    background: rgba(192, 241, 28, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(192, 241, 28, 0.2);
}

.loading.show {
    display: block;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(192, 241, 28, 0.3);
    border-top: 3px solid var(--bright-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

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

/* File Upload */
.file-upload-section {
    text-align: center;
}

.file-upload-area {
    border: 3px dashed var(--border-gray);
    border-radius: 15px;
    padding: 40px 20px;
    background: var(--light-gray);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.file-upload-area:hover {
    border-color: var(--bright-green);
    background: rgba(192, 241, 28, 0.05);
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.upload-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 5px;
}

.upload-subtext {
    color: var(--medium-gray);
    font-size: 0.9rem;
}

.image-preview {
    background: var(--white);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px var(--shadow);
    margin-bottom: 20px;
}

.analyze-button {
    background: var(--bright-green);
    color: var(--black);
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(192, 241, 28, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.analyze-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(192, 241, 28, 0.4);
}

.analyze-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Status Messages */
.status {
    margin-top: 20px;
    padding: 15px;
    border-radius: 12px;
    font-weight: 500;
    text-align: center;
}

.status.success {
    background: rgba(192, 241, 28, 0.1);
    color: var(--black);
    border: 1px solid rgba(192, 241, 28, 0.3);
}

.status.error {
    background: #fed7d7;
    color: #742a2a;
    border: 1px solid #feb2b2;
}

/* Right Panel - Main Content */
.main-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Main Card */
.main-card {
    background: var(--white);
    border-radius: 20px;
    padding: 12px;
    box-shadow: 0 10px 30px var(--shadow);
    border: 1px solid var(--border-gray);
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

/* Placeholder Styles */
.camera-placeholder,
.file-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* padding: 60px 40px; */
    min-height: 400px;
}

.placeholder-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.6;
}

.placeholder-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 15px;
}

.placeholder-text {
    font-size: 1rem;
    color: var(--medium-gray);
    margin-bottom: 30px;
    line-height: 1.6;
}

.placeholder-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 300px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--light-gray);
    border-radius: 12px;
    border-left: 3px solid var(--bright-green);
}

.feature-icon {
    font-size: 1.2rem;
}

.feature-text {
    font-weight: 500;
    color: var(--black);
    font-size: 0.9rem;
}

/* Active Camera Section */
.active-camera-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.camera-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-gray);
}

.camera-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--black);
}

.camera-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(192, 241, 28, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(192, 241, 28, 0.3);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--bright-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.status-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--black);
}

.camera-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

#webcam-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

#webcam-container canvas {
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow);
    border: 3px solid var(--bright-green);
    max-width: 100%;
    height: auto;
}

/* File Image Section */
.file-image-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.image-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-gray);
}

.image-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--black);
}

.change-image-button {
    background: var(--bright-green);
    color: var(--black);
    border: none;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.change-image-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(192, 241, 28, 0.3);
}

.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.image-container img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow);
    border: 3px solid var(--bright-green);
}

.analyze-section {
    display: flex;
    justify-content: center;
    padding-top: 20px;
    border-top: 2px solid var(--light-gray);
    margin-top: 20px;
}

.analyze-button {
    background: var(--bright-green);
    color: var(--black);
    border: none;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(192, 241, 28, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.analyze-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(192, 241, 28, 0.4);
}

.analyze-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Results Section */
.results-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--light-gray);
}

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

.results-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--black);
}

.confidence-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.confidence-label {
    font-size: 0.8rem;
    color: var(--medium-gray);
    font-weight: 500;
}

#label-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.prediction-item {
    background: var(--light-gray);
    padding: 12px 16px;
    border-radius: 10px;
    box-shadow: 0 2px 8px var(--shadow);
    border-left: 3px solid var(--bright-green);
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.prediction-item:hover {
    transform: translateX(3px);
    box-shadow: 0 4px 15px var(--shadow-hover);
}

/* Mobile Responsive Design */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .sidebar {
        order: 2;
    }
    
    .main-panel {
        order: 1;
    }
    
    .combined-card {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .image-section {
        min-height: 250px;
    }
    
    .navbar-container {
        padding: 0 15px;
    }
    
    .navbar-brand {
        font-size: 0.9rem;
    }
    
    .navbar-right {
        gap: 16px;
    }
    
    .navbar-link {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .sidebar {
        padding: 20px;
    }
    
    .main-panel {
        gap: 15px;
    }
    
    .combined-card {
        padding: 20px;
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .image-section {
        min-height: 200px;
    }
    
    .predictions-section {
        /* No padding needed - inherits from combined card */
        padding: 0;
    }
    
    .tab-button {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .tab-text {
        display: none;
    }
    
    .tab-icon {
        font-size: 1.5rem;
    }
    
    .file-upload-area {
        padding: 30px 15px;
    }
    
    .upload-icon {
        font-size: 2.5rem;
    }
    
    .predictions-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .prediction-item {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .prediction-probability {
        align-self: center;
    }
    
    /* Navbar mobile styles */
    .navbar-container {
        padding: 0 10px;
        flex-direction: column;
        gap: 10px;
    }
    
    .navbar-brand {
        font-size: 0.8rem;
        text-align: center;
    }
    
    .navbar-right {
        gap: 12px;
    }
    
    .navbar-link {
        font-size: 0.85rem;
        padding: 6px 10px;
    }
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--black), #1a1a1a);
    color: var(--white);
    margin-top: 60px;
    padding: 50px 0 20px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--bright-green), #a8d708, var(--bright-green));
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bright-green);
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.footer-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--bright-green);
    padding-bottom: 8px;
    display: inline-block;
}

.footer-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #cccccc;
    margin-bottom: 20px;
}

.footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.badge {
    background: linear-gradient(135deg, var(--bright-green), #a8d708);
    color: var(--black);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(192, 241, 28, 0.3);
    transition: transform 0.3s ease;
}

.badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(192, 241, 28, 0.4);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #cccccc;
    transition: color 0.3s ease;
}

.footer-links li:hover {
    color: var(--bright-green);
}

.link-icon {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-link {
    color: #cccccc;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.social-link:hover {
    color: var(--bright-green);
    background: rgba(192, 241, 28, 0.1);
    border-color: rgba(192, 241, 28, 0.3);
    transform: translateX(5px);
}

.social-icon {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #999;
}

.copyright-text {
    font-weight: 500;
}

.copyright-emoji {
    font-size: 1.2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

.footer-motto {
    font-style: italic;
    color: var(--bright-green);
    font-size: 0.9rem;
    font-weight: 500;
    text-align: right;
}

.motto-text {
    position: relative;
}

.motto-text::before {
    content: '"';
    font-size: 1.5rem;
    color: var(--bright-green);
    position: absolute;
    left: -15px;
    top: -5px;
}

.motto-text::after {
    content: '"';
    font-size: 1.5rem;
    color: var(--bright-green);
    position: absolute;
    right: -15px;
    top: -5px;
}

/* Footer Mobile Responsive */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-motto {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-container {
        padding: 0 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .footer-title {
        font-size: 1.3rem;
    }
    
    .footer-badges {
        justify-content: center;
    }
    
    .footer-social {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-copyright {
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 30px 0 15px;
    }
    
    .footer-title {
        font-size: 1.2rem;
    }
    
    .footer-subtitle {
        font-size: 1rem;
    }
    
    .badge {
        font-size: 0.75rem;
        padding: 5px 10px;
    }
    
    .footer-links li {
        font-size: 0.85rem;
    }
    
    .social-link {
        font-size: 0.85rem;
        padding: 6px 10px;
    }
    
    .footer-copyright {
        font-size: 0.8rem;
    }
    
    .footer-motto {
        font-size: 0.8rem;
    }
}

/* Final Result Section */
.final-result-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* File Final Result Section */
.file-final-result-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 16px;
}

.file-result-card {
    background: linear-gradient(135deg, var(--bright-green), #a8d708);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(192, 241, 28, 0.3);
    border: 1px solid rgba(192, 241, 28, 0.5);
    text-align: center;
}

.final-result-card {
    background: linear-gradient(135deg, var(--bright-green), #a8d708);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(192, 241, 28, 0.3);
    border: 1px solid rgba(192, 241, 28, 0.5);
    text-align: center;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.final-result-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--black);
}

.result-badge {
    background: rgba(255, 255, 255, 0.3);
    color: var(--black);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.final-result-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.result-icon {
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.result-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.result-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--black);
    opacity: 0.8;
}

.result-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--black);
    background: rgba(255, 255, 255, 0.3);
    padding: 15px 25px;
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    text-align: center;
    min-width: 200px;
}

.result-confidence {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.2);
    padding: 12px 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.confidence-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--black);
    opacity: 0.8;
}

.confidence-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--black);
}

.restart-button {
    background: rgba(255, 255, 255, 0.3);
    color: var(--black);
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto;
}

.restart-button:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* Mobile responsive for final result */
@media (max-width: 768px) {
    .final-result-card {
        padding: 20px;
    }
    
    .final-result-title {
        font-size: 1.1rem;
    }
    
    .result-icon {
        font-size: 2.5rem;
    }
    
    .result-value {
        font-size: 1.2rem;
        padding: 8px 16px;
    }
    
    .confidence-value {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .title {
        font-size: 1.8rem;
    }
    
    .sidebar {
        padding: 15px;
    }
    
    .image-section {
        padding: 15px;
    }
    
    .predictions-section {
        padding: 15px;
    }
    
    .tab-navigation {
        padding: 4px;
    }
    
    .tab-button {
        padding: 10px 12px;
    }
}