/* Main styles */
:root {
    --primary-color: #2a4b9b;
    --secondary-color: #1e3872;
    --accent-color: #4CAF50;
    --text-light: #f8f9fa;
    --text-dark: #212529;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header styles */
.navbar {
    background-color: var(--primary-color) !important;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    color: var(--text-light) !important;
    font-size: 1.5rem;
}

.navbar-brand img {
    height: 40px;
    max-height: 40px;
}

/* Main container padding for fixed navbar */
.main-container {
    padding-top: 80px;
}

/* Updated Header Styles */
.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1rem;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #ffffff;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.dropdown-item {
    padding: 0.7rem 1.5rem;
}

.dropdown-item.active {
    background-color: var(--primary-color);
}

.dropdown-item:active {
    background-color: var(--secondary-color);
}

/* Download menu icons */
.dropdown-item .bi-android2,
.dropdown-item .bi-apple {
    font-size: 1.2em;
    margin-right: 8px;
    vertical-align: -2px;
}

.dropdown-item .bi-android2 {
    color: #3DDC84;  /* Android brand color */
}

.dropdown-item .bi-apple {
    color: #555555;  /* Apple dark gray */
}

/* Download menu icons */
.app-icon {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    vertical-align: -3px;
}

.dropdown-item.android-item img,
.dropdown-item.ios-item .bi-apple {
    font-size: 1.2em;
    margin-right: 8px;
    vertical-align: -2px;
}

.dropdown-item.ios-item .bi-apple {
    color: #555555;  /* Apple dark gray */
}

/* Mobile responsive */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: var(--primary-color);
        padding: 1rem;
        margin-top: 1rem;
        border-radius: 8px;
    }
    
    .dropdown-menu {
        background-color: rgba(0, 0, 0, 0.1);
        border: none;
        box-shadow: none;
    }
    
    .dropdown-item {
        color: rgba(255, 255, 255, 0.9);
    }
    
    .dropdown-item:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: #ffffff;
    }
}

/* Main container styles */
.container {
    max-width: 1200px;
    padding: 2rem 15px;
}

.main-container {
    background-color: #fff;
    padding: 2rem 0;
    flex: 1;
    padding-bottom: calc(2rem + 64px) !important;
}

/* Form styles */
.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input[type="text"] {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    background: white;
    color: var(--text-dark);
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-group input[type="text"]::placeholder {
    color: #6c757d;
}

.form-group input[type="text"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.5);
}

/* Custom form container */
.gradient-form {
    background: linear-gradient(90deg, rgba(255,111,48,1) 0%, rgba(255,215,0,1) 49%, rgba(109,190,69,1) 100%);
    padding: 2.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.form-group label {
    color: white;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.75rem 2rem;
    font-weight: 500;
}

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

/* Verification result styles */
.verification-result {
    margin: 2rem 0;
    padding: 2rem;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.verification-success {
    border-left: 5px solid var(--accent-color);
}

.verification-error {
    border-left: 5px solid #dc3545;
}

/* Verification Results Container */
.verification-results {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 2rem 0;
    overflow: hidden;
}

/* Section colors */
.section-primary {
    border-left: 5px solid var(--primary-color);
    margin: 0;
    padding: 2rem;
}

.section-success {
    border-left: 5px solid var(--accent-color);
    margin: 0;
    padding: 2rem;
    background-color: rgba(76, 175, 80, 0.05);
}

.section-warning {
    border-left: 5px solid #ff9800;
    margin: 0;
    padding: 2rem;
    background-color: rgba(255, 152, 0, 0.05);
}

.section-info {
    border-left: 5px solid #2196F3;
    margin: 0;
    padding: 2rem;
    background-color: rgba(33, 150, 243, 0.05);
}

/* Section dividers */
.section-divider {
    margin: 0;
    border-top: 1px solid #eee;
}

/* Debug section */
.debug-section {
    margin-top: 2rem;
}

.debug-toggle {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.debug-toggle:hover {
    background: #e9ecef;
}

.debug-toggle .icon {
    transition: transform 0.3s ease;
}

.debug-toggle.active .icon {
    transform: rotate(180deg);
}

/* Hash display styles */
.hash-display {
    font-family: monospace;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 4px;
    word-break: break-all;
    margin: 0.5rem 0;
}

.hash-match {
    border-left: 4px solid var(--accent-color);
}

.hash-mismatch {
    border-left: 4px solid #dc3545;
}

/* Image gallery styles */
.image-container {
    margin: 2rem 0;
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.image-preview {
    max-width: 100%;
    max-height: 400px;
    cursor: pointer;
    border-radius: 4px;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 20px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 980px !important;  /* Fixed width */
    height: auto !important;  /* Auto height */
    max-height: 90vh;        /* Prevent image from being too tall */
}

@media (max-width: 1024px) {
    .modal-content {
        width: 90% !important;  /* Responsive width for mobile */
    }
}

/* Share section styles */
.share-section {
    margin: 2rem 0;
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.share-url-input {
    width: calc(100% - 130px); /* Adjust width to accommodate button */
    padding: 0.75rem;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    font-size: 1rem;
}

.share-btn {
    width: 120px;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    height: 100%;
    white-space: nowrap;
}

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

.copy-tooltip {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    z-index: 1000;
}

.copy-tooltip.show {
    display: block;
    animation: fadeInOut 2s ease-in-out;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { opacity: 0; }
}

/* Share URL styles */
.share-url {
    flex-grow: 1;
    max-width: 600px;
    margin-left: 1rem;
}

.share-url .input-group {
    width: 100%;
}

.share-url input {
    font-size: 0.9rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 0.5rem;
}

.share-url .btn {
    border-color: #dee2e6;
}

.share-url .btn:hover {
    background-color: #e9ecef;
}

/* Footer styles */
.footer {
    background-color: #0f1824;  /* Change to dark blue like scan directory */
    padding: 3rem 0 1rem;
}

.footer-section h5 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: #9aa7b8;  /* Change to lighter gray for better readability */
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-section ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1.2rem;
}

.social-link {
    color: #9aa7b8;  /* Match the link color */
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: #fff;
    transform: translateY(-2px);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 2rem 0;
}

.footer p {
    color: #9aa7b8;  /* Match the link color */
}

@media (max-width: 768px) {
    .footer-section {
        margin-bottom: 2rem;
    }
    
    .footer .text-end,
    .footer .text-center {
        text-align: center !important;
        margin: 1rem 0;
    }
    
    .social-links {
        justify-content: center;
        margin-bottom: 1rem;
    }
}

/* Form layout improvements */
.form-group.mb-0 {
    margin-bottom: 0 !important;
}

.gap-3 {
    gap: 1rem !important;
}

@media (max-width: 576px) {
    form.d-flex {
        flex-direction: row !important;  /* Keep row direction */
        gap: 0.5rem !important;         /* Reduce gap on mobile */
    }
    
    form.d-flex .form-group {
        flex: 1;                        /* Let input take remaining space */
    }
    
    form.d-flex .btn {
        white-space: nowrap;            /* Prevent button text wrapping */
        padding-left: 1rem;             /* Reduce padding for mobile */
        padding-right: 1rem;
    }
}

/* Results sections styling */
.section-success,
.section-primary,
.section-info,
.section-warning {
    margin: 0;
    padding: 2rem;
    border-radius: 0;
    position: relative;
    background: white;
}

/* Gradient backgrounds for sections */
.section-success {
    background: linear-gradient(90deg, rgba(255,111,48,.1) 0%, rgba(255,215,0,.1) 49%, rgba(109,190,69,.1) 100%);
    border-left: 5px solid var(--accent-color);
}

.section-primary {
    background: linear-gradient(90deg, rgba(42,75,155,.1) 0%, rgba(30,56,114,.1) 100%);
    border-left: 5px solid var(--primary-color);
}

.section-info {
    background: linear-gradient(90deg, rgba(33,150,243,.1) 0%, rgba(13,71,161,.1) 100%);
    border-left: 5px solid #2196F3;
}

.section-warning {
    background: linear-gradient(90deg, rgba(255,152,0,.1) 0%, rgba(230,81,0,.1) 100%);
    border-left: 5px solid #ff9800;
}

/* Section headers */
.section-success h3,
.section-primary h2,
.section-info h2,
.section-warning h2 {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Section dividers */
.section-divider {
    margin: 0;
    border-top: 1px solid rgba(0,0,0,0.1);
}

/* Content containers */
.verification-results {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 2rem 0;
    overflow: hidden;
}

/* Content sections styling */
.content-wrapper {
    padding: 1rem 0;
}

.section-success,
.section-primary,
.section-info,
.section-warning {
    position: relative;
    padding: 2rem;
}

.section-success h3,
.section-primary h2,
.section-info h2,
.section-warning h2 {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

/* Ensure content stays within sections */
.section-success .content-wrapper,
.section-primary .content-wrapper,
.section-info .content-wrapper,
.section-warning .content-wrapper {
    margin-top: 1rem;
}

/* Content sections styling */
.verification-results {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 2rem 0;
    overflow: hidden;
}

.content-wrapper {
    padding: 1.5rem 0;
}

/* Section styles */
.section-success,
.section-primary,
.section-info,
.section-warning {
    position: relative;
    padding: 2rem;
    background: white;
}

/* Apply gradient backgrounds */
.section-success {
    background: linear-gradient(90deg, rgba(76,175,80,.05) 0%, rgba(165,214,167,.05) 100%);
}

.section-primary {
    background: linear-gradient(90deg, rgba(33,150,243,.05) 0%, rgba(144,202,249,.05) 100%);
}

.section-info {
    background: linear-gradient(90deg, rgba(0,188,212,.05) 0%, rgba(128,222,234,.05) 100%);
}

.section-warning {
    background: linear-gradient(90deg, rgba(255,152,0,.05) 0%, rgba(255,183,77,.05) 100%);
}

/* Section headers */
.section-success h3,
.section-primary h2,
.section-info h2,
.section-warning h2 {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* Hash display styling */
.hash-display {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
}

.hash-display .hash-value {
    font-family: monospace;
    word-break: break-all;
    padding: 0.5rem;
    background: rgba(0,0,0,0.05);
    border-radius: 4px;
}

/* Divider styling */
.section-divider {
    margin: 0;
    border: none;
    border-top: 1px solid rgba(0,0,0,0.1);
}

/* Content sections styling - updated */
.content-wrapper {
    padding: 1.5rem;
    max-width: 100%;
    overflow-x: hidden;
    word-break: break-word;
}

.content-wrapper p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.content-wrapper strong {
    font-weight: 600;
    color: var(--text-dark);
}

/* Table responsive fixes */
.table-responsive {
    margin: 1rem 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    margin-bottom: 0;
    font-size: 0.95rem;
}

.table th {
    white-space: nowrap;
    background: rgba(0,0,0,0.02);
    padding: 1rem;
    font-weight: 600;
}

.table td {
    padding: 1rem;
    vertical-align: top;
}

/* Hash display improvements */
.hash-display {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    margin: 0.5rem 0;
    font-size: 0.9rem;
    word-break: break-all;
    overflow-wrap: break-word;
}

.hash-value {
    font-family: monospace;
    font-size: 0.85rem;
    line-height: 1.4;
    padding: 0.75rem;
    background: rgba(0,0,0,0.03);
    border-radius: 4px;
    overflow-x: auto;
}

/* Section header improvements */
.section-success h3,
.section-primary h2,
.section-info h2,
.section-warning h2 {
    font-size: calc(1.1rem + 0.3vw);
    line-height: 1.4;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

/* Mobile responsiveness improvements */
@media (max-width: 768px) {
    .content-wrapper {
        padding: 1rem;
    }
    
    .table {
        font-size: 0.9rem;
    }
    
    .table td, 
    .table th {
        padding: 0.75rem;
    }
    
    .hash-display {
        font-size: 0.85rem;
        padding: 0.75rem;
    }
    
    .section-success h3,
    .section-primary h2,
    .section-info h2,
    .section-warning h2 {
        font-size: 1.2rem;
        padding-bottom: 0.75rem;
        margin-bottom: 1rem;
    }
}

/* Image container improvements */
.image-container {
    margin: 1.5rem 0;
    padding: 1.5rem;
}

.image-preview {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Expandable content improvements */
.expandable-content {
    position: relative;
    max-height: 150px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.expandable-content.expanded {
    max-height: none;
}

.expand-button {
    display: inline-block;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

/* Coordinates display improvements */
.coordinate-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

/* Map provider selection styles */
.map-provider-selection {
    background: rgba(42, 75, 155, 0.05);
    border: 1px solid rgba(42, 75, 155, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.map-provider-selection .form-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.map-provider-selection .form-check {
    background: white;
    border: 2px solid rgba(42, 75, 155, 0.1);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.map-provider-selection .form-check:hover {
    border-color: rgba(42, 75, 155, 0.3);
    background: rgba(42, 75, 155, 0.02);
}

.map-provider-selection .form-check-input:checked ~ .form-check-label {
    color: var(--primary-color);
    font-weight: 600;
}

.map-provider-selection .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.map-provider-selection .form-check-label {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

/* Coordinates container improvements */
.coordinates-container {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.coordinate-item {
    background: rgba(76, 175, 80, 0.05);
    border: 1px solid rgba(76, 175, 80, 0.2);
    border-radius: 6px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.coordinate-item:last-child {
    margin-bottom: 0;
}

.coordinate-item i {
    color: var(--accent-color);
    font-size: 1.1rem;
}

.coordinate-item span {
    flex: 1;
    font-family: monospace;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.coordinate-item .btn {
    font-size: 0.85rem;
    padding: 0.25rem 0.75rem;
    white-space: nowrap;
}

/* View all points button */
.coordinates-container .btn-success {
    background: linear-gradient(45deg, var(--accent-color), #66BB6A);
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.coordinates-container .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

/* GeoJSON Options Styling */
.geojson-options {
    background: rgba(33, 150, 243, 0.05);
    border: 1px solid rgba(33, 150, 243, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.geojson-options h6 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.geojson-options .btn-group-vertical {
    gap: 0.5rem;
}

.geojson-options .btn {
    text-align: left;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.geojson-options .btn-success {
    background: linear-gradient(45deg, #28a745, #34ce57);
    border: none;
    color: white;
}

.geojson-options .btn-info {
    background: linear-gradient(45deg, #17a2b8, #20c997);
    border: none;
    color: white;
}

.geojson-options .btn-warning {
    background: linear-gradient(45deg, #ffc107, #ffcd39);
    border: none;
    color: #212529;
}

.geojson-options .btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: white;
}

.geojson-options .btn:hover {
    transform: translateX(5px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.geojson-options .btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
}

/* Icon styling in buttons */
.geojson-options .btn i {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Mobile responsive improvements for map provider */
@media (max-width: 768px) {
    .map-provider-selection {
        padding: 1rem;
        margin: 1rem -15px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .map-provider-selection .d-flex {
        flex-direction: column;
        gap: 1rem;
    }
    
    .map-provider-selection .form-check {
        margin-bottom: 0;
        padding: 1rem;
    }
    
    .coordinate-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1rem;
    }
    
    .coordinate-item span {
        width: 100%;
        word-break: break-all;
    }
    
    .coordinate-item .btn {
        width: 100%;
        padding: 0.5rem;
    }
    
    .coordinates-container .btn-success {
        width: 100%;
        margin-top: 1rem;
    }
    
    /* GeoJSON options mobile styling */
    .geojson-options {
        margin: 1rem -15px;
        border-radius: 0;
        border-left: none;
        border-right: none;
        padding: 1rem;
    }
    
    .geojson-options .btn-group-vertical {
        width: 100%;
    }
    
    .geojson-options .btn {
        width: 100%;
        margin-bottom: 0.5rem;
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .geojson-options .btn:hover {
        transform: none; /* Disable transform on mobile */
    }
}

/* Debug section improvements */
.debug-section pre {
    font-size: 0.85rem;
    line-height: 1.4;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 4px;
    overflow-x: auto;
    max-width: 100%;
}

/* Result status backgrounds */
.verification-result {
    position: relative;
    margin: 2rem 0;
    padding: 2rem;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.verification-result::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 8px 8px 0 0;
}

.verification-success::before {
    background: linear-gradient(90deg, #4CAF50, #81C784);
}

.verification-warning::before {
    background: linear-gradient(90deg, #FFC107, #FFD54F);
}

.verification-error::before {
    background: linear-gradient(90deg, #F44336, #E57373);
}

/* Index, Step 1, Step 2 result sections */
.section-success {
    background: linear-gradient(90deg, rgba(76,175,80,0.1) 0%, rgba(129,199,132,0.1) 100%);
    border-left: 5px solid #4CAF50;
}

.section-warning {
    background: linear-gradient(90deg, rgba(255,193,7,0.1) 0%, rgba(255,213,79,0.1) 100%);
    border-left: 5px solid #FFC107;
}

.section-error {
    background: linear-gradient(90deg, rgba(244,67,54,0.1) 0%, rgba(229,115,115,0.1) 100%);
    border-left: 5px solid #F44336;
}

/* Status indicators */
.status-indicator {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 500;
    margin-bottom: 1rem;
}

.status-success {
    background-color: rgba(76,175,80,0.1);
    color: #2E7D32;
}

.status-warning {
    background-color: rgba(255,193,7,0.1);
    color: #F57F17;
}

.status-error {
    background-color: rgba(244,67,54,0.1);
    color: #C62828;
}

/* Enhanced hash display styles */
.hash-display {
    font-family: 'Source Code Pro', monospace;
    padding: 0.75rem;
    background-color: #f8f9fa;
    border-radius: 4px;
    word-break: break-all;
    word-wrap: break-word;
    margin: 0.5rem 0;
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
    font-size: 0.9rem;
    line-height: 1.4;
    border: 1px solid rgba(0,0,0,0.1);
}

/* Content wrapping improvements */
.verification-result,
.section-primary,
.image-container,
.metadata-section,
.content-wrapper {
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

/* URL and long text wrapping */
a, p, div {
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Table cell wrapping */
.table td, 
.table th {
    max-width: 300px;
    white-space: normal;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Error message styling */
.error-message {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
}

.critical-error {
    background-color: #f8d7da;
    border-left: 4px solid #dc3545;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
}

/* Section warning headers */
.section-warning-header {
    background: linear-gradient(90deg, #ffc107 0%, #ffecb3 100%);
    color: #856404;
    padding: 1rem;
    margin: -2rem -2rem 1rem -2rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.section-error-header {
    background: linear-gradient(90deg, #dc3545 0%, #f8d7da 100%);
    color: #721c24;
    padding: 1rem;
    margin: -2rem -2rem 1rem -2rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

/* Image error styling */
.image-error {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    border-left: 4px solid #ffc107;
    padding: 0.875rem;
    margin: 0.75rem 0;
    border-radius: 4px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.image-error p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.image-error strong {
    font-size: 0.9rem;
    font-weight: 600;
    color: #856404;
}

.image-error .hash-display {
    font-size: 0.85rem;
    padding: 0.625rem;
    margin: 0.375rem 0;
    background-color: rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 193, 7, 0.2);
}

/* Product table improvements */
.product-information {
    margin: 1.5rem 0;
    overflow-x: hidden;
    width: 100%;
}

.product-information .table-responsive {
    margin: 0;
    padding: 0;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.product-information .table {
    margin-bottom: 0;
}

.product-information th,
.product-information td {
    white-space: normal;
    min-width: 100px;
    max-width: none;
    vertical-align: middle;
}

/* Mobile specific table styles */
@media (max-width: 768px) {
    .product-information {
        margin: 1rem -15px;  /* Negative margin to allow full width scrolling */
        width: calc(100% + 30px);
    }
    
    .product-information .table-responsive {
        border-radius: 0;
        padding: 0 15px;
        margin: 0 -15px;
        width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
    }
    
    .product-information .table {
        width: 100%;
        min-width: 600px; /* Minimum width to ensure all columns are visible */
    }
    
    .product-information th,
    .product-information td {
        font-size: 0.9rem;
        padding: 0.5rem;
    }
    
    /* Column width optimizations for mobile */
    .product-information th:nth-child(1),  /* Product ID */
    .product-information td:nth-child(1) {
        width: 80px;
        min-width: 80px;
    }
    
    .product-information th:nth-child(2),  /* Type */
    .product-information td:nth-child(2) {
        width: 100px;
        min-width: 100px;
    }
    
    .product-information th:nth-child(4),  /* Quantity */
    .product-information td:nth-child(4) {
        width: 70px;
        min-width: 70px;
    }
    
    /* Add fade indicators for scroll */
    .table-responsive::before,
    .table-responsive::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        width: 15px;
        z-index: 1;
        pointer-events: none;
    }
    
    .table-responsive::before {
        left: 0;
        background: linear-gradient(to right, rgba(255,255,255,0.9), transparent);
    }
    
    .table-responsive::after {
        right: 0;
        background: linear-gradient(to left, rgba(255,255,255,0.9), transparent);
    }
}

/* Add smooth scrolling for touch devices */
.table-responsive {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* Product table improvements - updated */
.product-information {
    margin: 1.5rem 0;
    width: 100%;
}

/* Table container */
.product-information .table-responsive {
    margin: 0;
    padding: 0;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow-x: visible; /* Change from auto to visible */
}

/* Base table styles */
.product-information table {
    width: 100%;
    table-layout: fixed; /* Fixed table layout */
    border-collapse: collapse;
}

/* Column widths */
.product-information th,
.product-information td {
    padding: 0.75rem;
    vertical-align: top;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    /* Stack table on mobile */
    .product-information table {
        display: block;
        width: 100%;
    }
    
    .product-information thead {
        display: none; /* Hide headers on mobile */
    }
    
    .product-information tbody,
    .product-information tr {
        display: block;
        width: 100%;
    }
    
    .product-information td {
        display: flex;
        width: 100%;
        padding: 0.5rem;
        align-items: center;
        border: none;
    }
    
    /* Add labels for mobile */
    .product-information td:before {
        content: attr(data-label);
        flex: 0 0 40%;
        font-weight: bold;
        margin-right: 1rem;
    }
    
    /* Spacing between rows */
    .product-information tr {
        margin-bottom: 1rem;
        border: 1px solid #dee2e6;
        border-radius: 4px;
    }
    
    /* Alternate row background */
    .product-information tr:nth-child(even) {
        background-color: rgba(0,0,0,0.02);
    }
}

/* App notification bar styles */
.app-notification-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -1px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dark);
}

.notification-content i {
    font-size: 1.4rem;
    color: var(--primary-color);
}

.notification-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
}

.notification-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
}

.notification-button:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
}

/* Mobile optimizations for notification bar */
@media (max-width: 768px) {
    .app-notification-bar {
        padding: 10px 16px;
    }
    
    .notification-text {
        font-size: 0.9rem;
    }
    
    .notification-button {
        padding: 6px 16px;
        font-size: 0.9rem;
        min-width: auto;
    }
}

/* Adjust main container padding to account for notification bar */
.main-container {
    padding-bottom: calc(2rem + 64px) !important;
}
