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

/* Ensure all buttons show pointer cursor */
button,
[role="button"],
div[role="button"],
.btn,
.btn-primary,
.btn-secondary,
.btn-retry,
.btn-capture,
.btn-switch-camera,
.action-btn,
.close-btn,
.retake-btn,
.success-btn,
*[onclick],
*[onkeydown] {
    cursor: pointer !important;
}

/* Force cursor on all clickable elements */
.action-btn.retake-btn,
.action-btn.success-btn,
.validation-overlay button,
.validation-overlay .action-btn,
#retakeMessage .action-btn,
#successMessage .action-btn,
#retakeMessage .close-btn,
#successMessage .close-btn,
div.action-btn[onclick],
button.close-btn[onclick] {
    cursor: pointer !important;
}

/* Extremely specific rules for the validation overlay buttons */
.validation-overlay .action-btn.retake-btn[onclick="retakePhoto()"],
.validation-overlay .action-btn.success-btn[onclick="viewFramesIn3D()"],
.validation-overlay button.close-btn[onclick="hideValidationMessage()"] {
    cursor: pointer !important;
}

/* Nuclear option - override any possible cursor styles */
* {
    cursor: inherit;
}

div[onclick],
button[onclick],
.action-btn,
.close-btn,
[role="button"] {
    cursor: pointer !important;
}

/* Target specific button states */
.action-btn:not(:disabled):not(.loading),
.close-btn:not(:disabled),
button:not(:disabled) {
    cursor: pointer !important;
}

button:disabled,
.btn:disabled,
.action-btn:disabled,
.action-btn.loading {
    cursor: not-allowed !important;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f8f8f8;
    color: #333;
}

/* Header Styles */
.header {
    background: white;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}

.logo {
    height: 40px;
}

.phone-icon {
    height: 25px;
}

.search-section {
    flex: 1;
    max-width: 600px;
    margin: 0 30px;
}

.search-input {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
}

.search-input:focus {
    border-color: #00bcd4;
}

.nav-section {
    display: flex;
    align-items: center;
}

.try-on-icon {
    height: 35px;
    cursor: pointer;
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #00bcd4;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Controls Section */
.controls-section {
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.controls-section h1 {
    font-size: 28px;
    color: #333;
    margin: 0;
}

.controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.view-toggle {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    padding: 10px 20px;
    border-radius: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.view-toggle span {
    font-size: 14px;
    font-weight: 600;
}

.view-toggle .active {
    color: #00bcd4;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 24px;
    transition: 0.3s;
}

.toggle-switch label:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
}

.toggle-switch input:checked+label {
    background-color: #00bcd4;
}

.toggle-switch input:checked+label:before {
    transform: translateX(26px);
}

.sort-by {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-by label {
    font-weight: 600;
}

.sort-by select {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: white;
    font-size: 14px;
    cursor: pointer;
}

/* Results Info */
.results-info {
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, z-index 0.3s ease;
    position: relative;
    z-index: 1;
}

.product-card:hover {
    transform: scale(1);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.wishlist-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    background: white;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-card img {
    width: 100%;
    position: relative;
    object-fit: cover;
    /* padding: 50px 10px 0px 30px; */
    padding: 10px;
}

.product-card .product-image {
    width: 100%;
    height: auto;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: transparent;
}

.product-card .image-container {
    position: relative;
    background-color: #f8f8f8;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-info {
    padding: 20px;
}

.rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}

.rating-number {
    font-weight: bold;
    color: #333;
}

.star {
    color: #00bcd4;
    font-size: 16px;
}

.reviews {
    color: #666;
    font-size: 14px;
}

.product-info h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
}

.product-details {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.size {
    font-size: 14px;
    color: #666;
}

.color-swatches {
    display: flex;
    align-items: center;
    gap: 5px;
}

.swatch {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #eee;
    cursor: pointer;
}

.swatch.black {
    background: #333;
}

.swatch.dark {
    background: #666;
}

.swatch.gray {
    background: #999;
}

.swatch.gold {
    background: #ffd700;
}

.swatch.blue {
    background: #0066cc;
}

.swatch.brown {
    background: #8b4513;
}

.swatch.red {
    background: #cc0000;
}

.swatch.green {
    background: #008000;
}

.swatch.lightblue {
    background: #87ceeb;
}

.swatch.orange {
    background: #ff8c00;
}

.more {
    font-size: 12px;
    color: #666;
    margin-left: 5px;
}

.price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.current-price {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.original-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.discount {
    font-size: 14px;
    color: #00bcd4;
    font-weight: 600;
}

/* Footer */
.footer {
    background: #1a237e;
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-section h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
}

.footer-section a:hover {
    color: white;
}

.app-section {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 30px;
}

.app-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.app-buttons img {
    height: 40px;
    cursor: pointer;
}

.app-section p {
    color: #ccc;
    font-size: 14px;
}

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

.legal-links {
    display: flex;
    gap: 20px;
}

.legal-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
}

.legal-links a:hover {
    color: white;
}

.social-version {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    font-size: 20px;
    text-decoration: none;
}



/* Product Info Page Styles */
.product-info-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

/* Product Images Section */
.product-images {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-image-container {
    position: relative;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.main-product-image {
    width: 100%;
    height: 400px;
    object-fit: contain;
    border-radius: 8px;
}

.image-zoom-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    cursor: zoom-in;
}

.thumbnail-images {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.thumbnail:hover {
    border-color: #00bcd4;
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: #00bcd4;
    box-shadow: 0 0 10px rgba(0, 188, 212, 0.3);
}

/* Product Details Section */
.product-details-info {
    padding: 20px;
}

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

.product-title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin: 0;
    flex: 1;
}

.wishlist-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1px solid #ddd;
    padding: 10px 15px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wishlist-btn:hover {
    background-color: #f5f5f5;
    border-color: #00bcd4;
}

.heart-icon {
    font-size: 18px;
    color: #ff4757;
}

.heart-icon.filled {
    color: #ff4757;
}

/* Rating Section */
.rating-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.rating-stars {
    display: flex;
    align-items: center;
    gap: 5px;
}

.star {
    color: #ddd;
    font-size: 18px;
}

.star.filled {
    color: #ffc107;
}

.rating-number {
    font-weight: 600;
    margin-left: 8px;
}

.reviews-count {
    color: #666;
    text-decoration: underline;
    cursor: pointer;
}

.reviews-count:hover {
    color: #00bcd4;
}

/* Size Info */
.size-info {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #00bcd4;
}

/* Price Section */
.price-section {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #e8f5e8;
    margin-bottom: 25px;
}

.current-price {
    font-size: 32px;
    font-weight: 700;
    color: #2d8f47;
    margin-right: 15px;
}

.original-price {
    font-size: 20px;
    text-decoration: line-through;
    color: #999;
    margin-right: 10px;
}

.discount-badge {
    display: inline-block;
    background: #ff4757;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 600;
}

.savings {
    margin-top: 10px;
    font-size: 16px;
    color: #2d8f47;
    font-weight: 600;
}

/* Color Options */
.color-options {
    margin-bottom: 25px;
}

.color-options label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
}

.color-swatches {
    display: flex;
    align-items: center;
    gap: 10px;
}

.swatch {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.swatch.black {
    background-color: #333;
}

.swatch.gray {
    background-color: #999;
}

.swatch.active,
.swatch:hover {
    border-color: #00bcd4;
    transform: scale(1.1);
}

.more-colors {
    font-size: 14px;
    color: #666;
    margin-left: 10px;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer !important;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: #00bcd4;
    color: white;
    flex: 1;
    min-width: 200px;
    justify-content: center;
}

.btn-primary:hover {
    background: #00acc1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.3);
}

.btn-secondary {
    background: white;
    color: #333;
    border: 2px solid #ddd;
}

.btn-secondary:hover {
    border-color: #00bcd4;
    color: #00bcd4;
    transform: translateY(-2px);
}

/* Product Features */
.product-features {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.product-features h3 {
    margin-bottom: 15px;
    color: #333;
}

.product-features ul {
    list-style: none;
    padding: 0;
}

.product-features li {
    padding: 8px 0;
    color: #666;
    font-size: 15px;
}

/* Delivery Information */
.delivery-info {
    background: white;
    border: 2px solid #e3f2fd;
    border-radius: 12px;
    padding: 20px;
}

.delivery-info h3 {
    margin-bottom: 15px;
    color: #333;
}

.delivery-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.delivery-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.delivery-option strong {
    color: #333;
}

.delivery-option span {
    color: #666;
    font-size: 14px;
}

/* Related Products */
.related-products {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.related-products h2 {
    margin-bottom: 25px;
    text-align: center;
    color: #333;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.related-product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.related-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.related-product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.related-product-info {
    padding: 15px;
}

.related-product-info h4 {
    margin-bottom: 10px;
    font-size: 16px;
}

.related-product-info h4 a {
    color: #333;
    text-decoration: none;
}

.related-product-info h4 a:hover {
    color: #00bcd4;
}

.related-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.related-price .current-price {
    font-size: 18px;
    font-weight: 600;
    color: #2d8f47;
}

.related-price .original-price {
    font-size: 14px;
    text-decoration: line-through;
    color: #999;
}



/* 3D Try-On Styles */
.try-on-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    min-height: calc(100vh - 200px);
}

.try-on-header {
    text-align: center;
    margin-bottom: 30px;
}

.try-on-header h1 {
    font-size: 2.5em;
    color: #2c5aa0;
    margin-bottom: 10px;
}

.try-on-header p {
    font-size: 1.2em;
    color: #666;
}

/* Step Sections */
.step-section {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.step-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* Step 3: Permission Denied */
.denied-display {
    text-align: center;
    padding: 50px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.denied-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.denied-display h3 {
    color: #856404;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.denied-display p {
    color: #856404;
    margin-bottom: 25px;
    line-height: 1.6;
}

.denied-instructions {
    text-align: left;
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.denied-instructions h4 {
    color: #2c5aa0;
    margin-bottom: 15px;
}

.denied-instructions ol {
    color: #555;
    padding-left: 20px;
}

.denied-instructions li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.btn-retry {
    background: #2c5aa0;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 20px;
    cursor: pointer !important;
    transition: all 0.3s;
}

.btn-retry:hover {
    background: #1e3a8a;
    transform: translateY(-2px);
}

/* Step 4: Camera View */
.camera-container {
    position: relative;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    background: #000;
    border-radius: 24px;
    overflow: hidden;
}

#cameraVideo {
    width: 100%;
    height: auto;
    display: block;
    transform: scaleX(-1);
}

#captureCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.progress-bar {
    width: 100%;
    max-width: 640px;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin: 20px auto;
}

.progress-fill {
    height: 100%;
    background: #25cc00;
    transition: width 0.3s;
    width: 0%;
}

.hidden {
    display: none !important;
}

/* Face guide styles - not used in new camera preview */
/* .face-guide, .guide-oval, .oval-bg removed */

.detection-indicators {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.indicator {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 15px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.indicator.detected {
    background: rgba(40, 167, 69, 0.9);
}

.indicator-icon {
    font-size: 1.2em;
}

.indicator-text {
    font-size: 0.9em;
}

.camera-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-capture {
    cursor: pointer !important;
    font-family: "Meralens Sans";
    padding: 12px 20px;
    font-style: normal;
    font-weight: 700;
    font-size: 14px;
    line-height: 20px;
    color: rgb(226, 226, 238);
    min-width: min-content;
    background-color: #000042;
    border-radius: 100px;
    margin-top: 14px;
    display: flex;
    -webkit-box-pack: center;
    justify-content: center;
}

.btn-capture:disabled {
    cursor: not-allowed;
}

.btn-capture.ready {
    opacity: 1;
    animation: readyToCapture 1s infinite;
}

@keyframes readyToCapture {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.btn-capture:hover:not(:disabled) {
    background: #00002e;
    transform: translateY(-1px);
}

.btn-switch-camera {
    background: #6c757d;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    cursor: pointer !important;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.btn-switch-camera:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Step 5: Validation Result */
.validation-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    flex-wrap: wrap;
    justify-content: center;
}

.captured-image {
    flex: 1;
    max-width: 400px;
    text-align: center;
}

.captured-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: scaleX(-1);
    /* Mirror effect to match camera view */
}

.validation-result {
    flex: 1;
    max-width: 400px;
    padding: 30px;
    border-radius: 15px;
}

.validation-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    text-align: center;
}

.success-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.validation-success h3 {
    color: #155724;
    margin-bottom: 15px;
}

.validation-success p {
    color: #155724;
    margin-bottom: 25px;
    line-height: 1.6;
}

.btn-upload {
    background: #28a745;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    margin: 0 auto;
}

.btn-upload:hover {
    background: #218838;
    transform: translateY(-2px);
}

.validation-retake {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
}

.retake-icon {
    font-size: 3em;
    margin-bottom: 15px;
    text-align: center;
}

.validation-retake h3 {
    color: #856404;
    margin-bottom: 15px;
    text-align: center;
}

.validation-retake p {
    color: #856404;
    margin-bottom: 20px;
    line-height: 1.6;
    text-align: center;
}

.retake-tips {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.retake-tips h4 {
    color: #2c5aa0;
    margin-bottom: 15px;
}

.retake-tips ul {
    list-style: none;
    color: #555;
}

.retake-tips li {
    padding: 5px 0;
    position: relative;
    padding-left: 20px;
}

.retake-tips li::before {
    content: "💡";
    position: absolute;
    left: 0;
}

.retake-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-retake {
    background: #2c5aa0;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-retake:hover {
    background: #1e3a8a;
    transform: translateY(-2px);
}

.btn-use-anyway {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-use-anyway:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Step 6: Upload Progress */
.upload-container {
    text-align: center;
    padding: 50px;
    background: #f8f9fa;
    border-radius: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.progress-icon {
    font-size: 4em;
    margin-bottom: 20px;
    animation: uploadPulse 1.5s infinite;
}

@keyframes uploadPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.upload-container h3 {
    color: #2c5aa0;
    margin-bottom: 25px;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    border-radius: 10px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    font-size: 1.2em;
    font-weight: bold;
    color: #2c5aa0;
}

/* Validation Overlay Styles */
.validation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
}

.validation-overlay .validation-content {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    min-width: 280px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    animation: slideInScale 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInScale {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    cursor: pointer !important;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    border-radius: 50%;
    transition: all 0.2s ease;
    outline: none;
}

.close-btn:hover {
    background: #f0f0f0;
    color: #333;
    transform: scale(1.1);
}

.close-btn:focus {
    background: #e0e0e0;
    box-shadow: 0 0 0 2px rgba(102, 102, 102, 0.3);
}

.close-btn:active {
    transform: scale(0.95);
    background: #d0d0d0;
}

.error-title {
    font-size: 18px;
    font-weight: 600;
    color: #e53e3e;
    margin: 16px 0 12px 0;
}

.message-content {
    margin: 12px 0 20px 0;

}

.message-content p {
    font-size: 14px;
    color: #666;
    margin: 4px 0;
    line-height: 1.4;
}

.action-btn {
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer !important;
    transition: all 0.2s ease;
    display: inline-block;
    min-width: 120px;
    color: white;
    outline: none;
    position: relative;
    overflow: hidden;
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.action-btn:active {
    transform: translateY(0px) scale(0.98);
}

.action-btn:focus {
    box-shadow: 0 0 0 3px rgba(56, 161, 105, 0.3);
}

.action-btn:disabled,
.action-btn.loading {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.action-btn.loading {
    position: relative;
}

.action-btn.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 20px;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

    100% {
        transform: rotate(360deg);
    }
}

.action-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.action-btn:active::after {
    width: 300px;
    height: 300px;
}

/* Button Specific Styles */
.retake-btn {
    background: #e53e3e;
}

.retake-btn:hover {
    background: #c53030;
}

.retake-btn:focus {
    background: #c53030;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.3);
}

.success-btn {
    background: #38a169;
}

.success-btn:hover {
    background: #2f855a;
}

.success-btn:focus {
    background: #2f855a;
    box-shadow: 0 0 0 3px rgba(56, 161, 105, 0.3);
}

/* Success Message Specific Styles */
#successMessage .message-content p {
    color: #38a169;
    font-weight: 500;
}

/* Captured Photo in Success Message */
#capturedPhoto {
    width: 96px;
    height: 96px;
    object-fit: cover;
    margin: 8px 0;
    border: 2px solid #38a169;
    border-radius: 99px;
}

/* Error Icon Styling */
#retakeMessage img {
    margin: 8px 0;
}

/* Responsive design for validation overlays */
@media (max-width: 768px) {
    .validation-overlay .validation-content {
        min-width: 280px;
        max-width: 350px;
        width: 95%;
        padding: 20px;
        margin: 20px;
    }
    
    .error-title {
        font-size: 16px;
    }
    
    .message-content p {
        font-size: 13px;
    }
    
    .action-btn {
        padding: 10px 20px;
        font-size: 13px;
        min-width: 100px;
    }
}

@media (max-width: 480px) {
    .validation-overlay .validation-content {
        min-width: 260px;
        max-width: 320px;
        width: 90%;
        padding: 18px;
    }
    
    .close-btn {
        width: 28px;
        height: 28px;
        top: 10px;
        right: 10px;
    }
    
    #capturedPhoto {
        width: 80px;
        height: 80px;
    }
}

/* Ensure overlay is above all other content */
.validation-overlay {
    z-index: 99999 !important;
}


