:root {
    --silver-gradient-start: #f5f5f5;
    --silver-gradient-end: #e8e8e8;
    --primary-gradient-start: #667eea;
    --primary-gradient-end: #764ba2;
    --tile-height: 90vh;
    --tile-max-height: 600px;
    --light-gray: #f8f9fa;
    --border-color: #e9ecef;
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --success-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --danger-gradient: linear-gradient(135deg, #ee0979 0%, #ff6a00 100%);
    --timer-bg: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --alh-blue: #003263;
    --alh-orange: #e87c1e;
    --alh-yellow: #e8b112;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--alh-blue);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Main container */
.main-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

    /* Background pattern */
    .main-container::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.05) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.05) 0%, transparent 50%);
        pointer-events: none;
        z-index: -1;
    }

/* Tiles container */
.tiles-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Individual tile */
.license-tile {
    height: var(--tile-height);
    max-height: var(--tile-max-height);
    background: linear-gradient(135deg, var(--silver-gradient-start) 0%, var(--silver-gradient-end) 100%);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

    /* Tile hover overlay */
    .license-tile::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }

    /* Tile hover effects */
    .license-tile:hover {
        transform: none !important;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    }

        .license-tile:hover::before {
            opacity: 0 !important;
        }

    .license-tile:active {
        /*transform: translateY(-4px) scale(1.01);*/
        /*transition: transform 0.1s ease;*/
    }

/* Icon container */
.icon-container {
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.license-tile:hover .icon-container {
    transform: none !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Icon styling */
.icon-container i {
    font-size: 70px;
    background:var(--alh-orange);
    /*background: linear-gradient(135deg, var(--primary-gradient-start) 0%, var(--primary-gradient-end) 100%);*/
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform 0.3s ease;
}

/* Tile title */
.tile-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--alh-blue);
    /*color: #2d3748;*/
    margin-top: 20px;
    letter-spacing: -0.5px;
    text-align: center;
}

/* Tile subtitle */
.tile-subtitle {
    font-size: 14px;
    color: #718096;
    margin-top: 8px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    text-align: center;
}

.license-tile:hover .tile-subtitle {
    opacity: 0 !important;
    transform: translateY(10px) !important;
}

.no-hover {
    pointer-events: none !important;
}
/* Ripple effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Loading animation */
.license-tile {
    animation: fadeInUp 0.6s ease-out backwards;
}

    .license-tile:nth-child(2) {
        animation-delay: 0.1s;
    }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile responsiveness */
@media (max-width: 767px) {
    .license-tile {
        height: 35vh;
        min-height: 250px;
        max-height: 350px;
        margin-bottom: 20px;
    }

    .icon-container {
        width: 100px;
        height: 100px;
        margin-bottom: 20px;
    }

        .icon-container i {
            font-size: 45px;
        }

    .tile-title {
        font-size: 20px;
    }

    .license-tile:hover {
        transform: translateY(-4px) scale(1.01);
    }
}

@media (max-width: 575px) {
    .main-container {
        padding: 15px;
    }

    .license-tile {
        border-radius: 16px;
    }

    .tile-title {
        font-size: 18px;
    }
}

/* Tablet optimization */
@media (min-width: 768px) and (max-width: 991px) {
    .license-tile {
        height: 60vh;
        max-height: 500px;
    }

    .icon-container {
        width: 120px;
        height: 120px;
    }

        .icon-container i {
            font-size: 55px;
        }
}

/* Focus styles for accessibility */
.license-tile:focus {
    outline: 3px solid rgba(102, 126, 234, 0.5);
    outline-offset: 2px;
}

    .license-tile:focus:not(:focus-visible) {
        outline: none;
    }

/* Touch active state */
.license-tile.touch-active {
    transform: translateY(-2px) scale(1.005);
}

/* Badge for new/beta features */
.feature-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--alh-blue);
    /*background: linear-gradient(135deg, #667eea, #764ba2);*/
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.license-tile:hover .feature-badge {
    opacity: 1;
    transform: translateY(0);
}

/* Timer Container */
.timer-container {
    background: white;
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

    .timer-container::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(102, 126, 234, 0.05) 0%, transparent 70%);
        animation: rotate 30s linear infinite;
        pointer-events: none;
    }

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Timer Display */
.timer-display {
    background: var(--timer-bg);
    border-radius: 20px;
    padding: 40px;
    margin: 0;
    text-align: center;
    position: relative;
    box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

    .timer-display.pulse {
        animation: pulse 0.5s ease;
    }

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* Time Text */
.time-text {
    font-size: 25px;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    /*-webkit-text-fill-color: transparent;*/
    background-clip: text;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -1px;
    transition: all 0.3s ease;
}

    .time-text.warning {
        background: var(--danger-gradient);
        -webkit-background-clip: text;
        /*-webkit-text-fill-color: transparent;*/
        animation: blink 1s ease-in-out infinite;
    }

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.time-unit {
    font-size: 24px;
    font-weight: 500;
    color: #718096;
    margin: 0 5px;
}

/* Finished Message */
.finished-message {
    display: none;
    text-align: center;
    padding: 30px;
    background: var(--success-gradient);
    border-radius: 20px;
    color: white;
    margin-top: 20px;
    animation: slideInUp 0.5s ease;
}

    .finished-message.show {
        display: block;
    }

    .finished-message h3 {
        font-size: 28px;
        font-weight: 700;
        margin-bottom: 10px;
    }

    .finished-message p {
        font-size: 16px;
        margin: 0;
        opacity: 0.95;
    }

@keyframes slideInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Control Buttons */
.timer-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn-timer {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

    .btn-timer::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        transform: translate(-50%, -50%);
        transition: width 0.6s, height 0.6s;
    }

    .btn-timer:hover::before {
        width: 300px;
        height: 300px;
    }

.btn-start {
    background: var(--primary-gradient);
    color: white;
}

    .btn-start:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    }

.btn-pause {
    background: linear-gradient(135deg, #ffa751 0%, #ff6a00 100%);
    color: white;
}

.btn-reset {
    background: linear-gradient(135deg, #e0e0e0 0%, #bdbdbd 100%);
    color: #333;
}

.btn-timer:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Input Section */
.input-section {
    margin-bottom: 30px;
}

.time-input-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.time-input {
    max-width: 120px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    border: 3px solid #e2e8f0;
    border-radius: 15px;
    padding: 10px;
    transition: all 0.3s ease;
}

    .time-input:focus {
        border-color: #667eea;
        box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
        outline: none;
    }

/* Progress Bar */
.progress-wrapper {
    margin-top: 30px;
    padding: 0 10px;
}

.progress {
    height: 8px;
    border-radius: 10px;
    overflow: visible;
    background: #e2e8f0;
    position: relative;
}

.progress-bar {
    background: var(--primary-gradient);
    border-radius: 10px;
    position: relative;
    transition: width 1s linear;
}

    .progress-bar::after {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 20px;
        height: 20px;
        background: white;
        border: 4px solid #667eea;
        border-radius: 50%;
        box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
    }

/* Preset Buttons */
.preset-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.preset-btn {
    padding: 8px 20px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 25px;
    font-weight: 600;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .preset-btn:hover {
        border-color: #667eea;
        color: #667eea;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
    }

/* Mobile Responsive */
@media (max-width: 576px) {
    .timer-container {
        padding: 30px 20px;
        border-radius: 20px;
    }

    .time-text {
        font-size: 36px;
    }

    .time-unit {
        font-size: 18px;
    }

    .timer-display {
        padding: 30px 20px;
    }

    .btn-timer {
        padding: 10px 25px;
        font-size: 14px;
    }
}

/* Animation for timer icon */
.timer-icon {
    font-size: 80px;
    color: #667eea;
    margin-bottom: 20px;
    animation: swing 2s ease-in-out infinite;
}

@keyframes swing {
    0%, 100% {
        transform: rotate(-5deg);
    }

    50% {
        transform: rotate(5deg);
    }
}

/* Header */
.timer-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

    .timer-header h1 {
        font-size: 32px;
        font-weight: 800;
        background: var(--primary-gradient);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        margin: 10px 0;
    }

    .timer-header p {
        color: #718096;
        font-size: 14px;
    }
/* Success Alert */
.success-alert {
    margin: 0;
    background: linear-gradient(135deg,var(--alh-orange) 0%,var(--alh-yellow) 100%);
    border-radius: 15px;
    padding: 20px 25px;
    box-shadow: 0 4px 15px rgba(56, 239, 125, 0.2);
    display: flex;
    align-items: center;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.success-alert .icon-circle {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

    .success-alert .icon-circle i {
        font-size: 24px;
        color: white;
    }

.success-alert .alert-text {
    color: white;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.3px;
}

/* Main Container */
/*.main-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
}
*/
@keyframes fadeInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Header */
.result-header {
    background: var(--primary-gradient);
    padding: 30px;
    text-align: center;
}

    .result-header h1 {
        color: white;
        font-size: 28px;
        font-weight: 700;
        margin: 0;
        letter-spacing: -0.5px;
    }

    .result-header p {
        color: rgba(255, 255, 255, 0.9);
        margin-top: 8px;
        font-size: 14px;
    }

/* Content Section */
.content-section {
    padding: 40px 30px;
}

/* Document Images Section */
.document-images {
    margin-bottom: 40px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
}

    .section-title i {
        margin-right: 10px;
        font-size: 24px;
        background: var(--alh-orange);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.image-card {
    background: var(--light-gray);
    border-radius: 15px;
    padding: 15px;
    transition: all 0.3s ease;
    position: relative;
}

    .image-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

.image-label {
    background: var(--alh-orange);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    position: absolute;
    top: 25px;
    left: 25px;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.document-image {
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* OCR Data Section */
.ocr-data {
    margin-bottom: 40px;
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.data-item {
    background: var(--light-gray);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

    .data-item:hover {
        border-color: #667eea;
        transform: translateX(5px);
    }

.data-label {
    font-size: 12px;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

    .data-label i {
        margin-right: 6px;
        font-size: 14px;
    }

.data-value {
    font-size: 18px;
    color: #2d3748;
    font-weight: 600;
    word-break: break-word;
}

    .data-value.empty {
        color: #a0aec0;
        font-style: italic;
        font-weight: 400;
    }

/* Special Data Items */
.data-item.highlight {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 2px solid rgba(102, 126, 234, 0.3);
}

/* Action Buttons */
.action-buttons {
    text-align: center;
    padding-top: 20px;
    border-top: 2px solid var(--border-color);
}

.btn-cancel {
    background: rgba(var(--bs-danger-rgb),var(--bs-bg-opacity)) !important;
}

.btn-scan-again {
    background: var(--alh-blue);
    /*background: var(--primary-gradient);*/
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

    .btn-scan-again.btn-green {
        background: var(--success-gradient);
    }

    .btn-scan-again::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        transform: translate(-50%, -50%);
        transition: width 0.6s, height 0.6s;
    }

    .btn-scan-again:hover::before {
        width: 400px;
        height: 400px;
    }

    .btn-scan-again:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    }

    .btn-scan-again i {
        font-size: 20px;
    }

/* Additional Actions */
.additional-actions {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-secondary {
    background: white;
    color: #4a5568;
    border: 2px solid var(--border-color);
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .btn-secondary:hover {
        background: var(--light-gray);
        border-color: #cbd5e0;
        transform: translateY(-2px);
        color: #4a5568;
    }

/* Image Zoom Modal */
.image-zoom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    cursor: zoom-out;
    animation: fadeIn 0.3s ease;
}

    .image-zoom-modal img {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        max-width: 90%;
        max-height: 90%;
        border-radius: 10px;
        box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    }

    .image-zoom-modal.show {
        display: block;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .success-alert {
        padding: 15px 20px;
    }

        .success-alert .alert-text {
            font-size: 16px;
        }

        .success-alert .icon-circle {
            width: 40px;
            height: 40px;
            margin-right: 15px;
        }

    .result-header h1 {
        font-size: 24px;
    }

    .content-section {
        padding: 30px 20px;
    }

    .images-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .data-grid {
        grid-template-columns: 1fr;
    }

    .data-value {
        font-size: 16px;
    }

    .btn-scan-again {
        width: 100%;
        justify-content: center;
    }

    .additional-actions {
        flex-direction: column;
    }

    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    body {
        padding: 15px 10px;
    }

    .success-alert .alert-text {
        font-size: 14px;
    }

    /*  .main-container {
        border-radius: 20px;
    }*/

    .result-header {
        padding: 25px 20px;
    }

    .section-title {
        font-size: 18px;
    }
}

/* Loading Spinner */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

    .loading-overlay.show {
        display: flex;
    }

/* Copy button for data values */
.copy-btn {
    display: inline-block;
    margin-left: 10px;
    color: #718096;
    cursor: pointer;
    font-size: 14px;
    transition: color 0.3s ease;
}

    .copy-btn:hover {
        color: #667eea;
    }

    .copy-btn.copied {
        color: #38ef7d;
    }

.error-alert {
    margin: 0;
    background: linear-gradient(135deg,#ee0979 0%,#ff6a00 100%);
    border-radius: 15px;
    padding: 20px 25px;
    box-shadow: 0 4px 15px rgba(238, 9, 121, 0.2);
    display: flex;
    align-items: center;
    animation: slideDown 0.5s ease-out;
}

    .error-alert .icon-circle {
        width: 45px;
        height: 45px;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 20px;
        flex-shrink: 0;
    }

        .error-alert .icon-circle i {
            font-size: 24px;
            color: white;
        }

    .error-alert .alert-text {
        color: white;
        font-size: 18px;
        font-weight: 600;
        letter-spacing: -0.3px;
    }
/* Result Tile Container */
.result-tile {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    padding: 25px;
    animation: fadeInUp 0.6s ease-out backwards;
}

    /* Result Tile hover overlay */
    .result-tile::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
        z-index: 1;
    }

    /* Result Tile hover effects */
    .result-tile:hover {
        /*transform: translateY(-8px) scale(1.02);*/
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    }

        .result-tile:hover::before {
            /*opacity: 1;*/
        }

    /* Ensure content is above overlay */
    .result-tile .document-images,
    .result-tile .ocr-data,
    .result-tile .action-buttons {
        position: relative;
        z-index: 2;
    }

/* Mobile responsiveness for result-tile */
@media (max-width: 767px) {
    .result-tile {
        margin-bottom: 20px;
    }

        .result-tile:hover {
            /*transform: translateY(-4px) scale(1.01);*/
        }
}

@media (max-width: 575px) {
    .result-tile {
        border-radius: 16px;
    }
}

.grid-break {
    flex-basis: 100%;
    height: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    overflow: hidden;
}

@media (max-width: 768px) {
    .grid-break {
        display: none;
    }
}

button.disabled {
    pointer-events: none;
    filter: opacity(0.5);
}

.logo-section {
    height: 10vh;
    text-align: center;
    padding: 0px 0px 10px 0px;
}

.main-logo {
    /*max-width: 70px;*/
    height: 100%;
    display: inline-block;
}

/* Responsive logo sizing */
@media (max-width: 768px) {
    .main-logo {
        max-width: 50px;
    }

    .logo-section {
        padding: 10px 0px 10px 0px;
    }
}

.logo-corner {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
}

.corner-logo {
    max-width: 70px;
    height: auto;
}
