

@keyframes pulseHighlight {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 20px 10px rgba(255, 255, 255, 0.3);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes snowFall {
    0% {
        background-position: 0 0, 0 0, 0 0, 0 0;
    }
    100% {
        background-position: 0 100%;
    }
}


.number-display.reveal {
    animation: pulseHighlight 0.5s ease-out;
}




:root {
    --color-page-bg: #ffffff;
    --color-page-text: #000000;
    --color-primary: rgba(59, 86, 166, 1);
    --color-primary-light: rgba(79, 106, 186, 1);
    --color-accent: rgba(99, 126, 206, 1);
    --color-glass-base: rgba(255, 255, 255, 0.35);
    --color-glass-strong: rgba(255, 255, 255, 0.45);
    --color-glass-panel: rgba(255, 255, 255, 0.18);
    --radius-card: 10px;
    --radius-display: 28px;
    --radius-summary: 18px;
    --shadow-soft: 0 14px 30px rgba(0, 0, 0, 0.18);
    --shadow-strong: 0 25px 60px rgba(0, 0, 0, 0.15);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    min-height: 100vh;
    height: 100vh;
    display: flex;
    background-color: var(--color-page-bg);
    color: var(--color-page-text);
    overflow: hidden;
}

.app-shell {
    display: flex;
    width: 100%;
    height: 100%;
}

.left-column, .right-column {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.left-column {
    width: 66.6%;
    padding-left: 30px;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    background-image: url('images/bg.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #ffffff;
    overflow: hidden;
}


.left-column::before {
    content: '';
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.35));
    z-index: 1;
    
    background-image: 
        url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='10' cy='10' r='1' fill='white' opacity='0.6'/%3E%3Ccircle cx='30' cy='30' r='0.8' fill='white' opacity='0.5'/%3E%3Ccircle cx='50' cy='50' r='1.2' fill='white' opacity='0.7'/%3E%3Ccircle cx='70' cy='70' r='0.9' fill='white' opacity='0.4'/%3E%3Ccircle cx='90' cy='90' r='1' fill='white' opacity='0.6'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    animation: snowFall 40s linear infinite;
    opacity: 0.4;
    z-index: 1;
    pointer-events: none;
}

/*.left-column::after {*/
/*    content: '';*/
/*    position: absolute;*/
/*    inset: 0;*/
/*    background-image:*/
/*        radial-gradient(4px 4px at 20px 30px, rgba(255, 255, 255, 0.9), transparent),*/
/*        radial-gradient(4px 4px at 80px 120px, rgba(255, 255, 255, 0.8), transparent),*/
/*        radial-gradient(6px 6px at 150px 60px, rgba(255, 255, 255, 0.7), transparent),*/
/*        radial-gradient(4px 4px at 250px 160px, rgba(255, 255, 255, 0.75), transparent);*/
/*    background-size: 200px 200px;*/
/*    animation: snowFall 18s linear infinite;*/
/*    opacity: 0.5;*/
/*    z-index: 1;*/
/*    pointer-events: none;*/
/*}*/

.left-column > * {
    position: relative;
    z-index: 2;
}

.right-column {
    width: 33.3%;
    background: linear-gradient(
        39deg, 
        rgba(59, 86, 166, 1) 0%, 
        rgba(79, 106, 186, 1) 35%, 
        rgba(99, 126, 206, 1) 100%
    );
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 40px;
    min-height: 0;
    height: 100vh;
    text-align: center;
    box-sizing: border-box;
    gap: 24px;
}

.logo {
    width: 196px;
    padding-top: 20px;
    padding-bottom: 20px;
}

.number-display {
    font-size: 320px;
    font-weight: bold;
    color: var(--color-primary);
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(85%, 600px);
    min-height: 250px;
    max-height: 350px;
    border-radius: var(--radius-display);
    border: 2px solid var(--color-glass-strong);
    background: var(--color-glass-base);
    box-shadow: var(--shadow-strong);
    text-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.number-display.reveal {
    animation: pulseHighlight 0.5s ease-out;
}

.btn {
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 10%, transparent 50%);
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.btn:hover::after {
    opacity: 1;
    transform: scale(1.2);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.25);
}

.btn:active {
    transform: scale(0.97);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.65;
    transform: none;
    box-shadow: var(--shadow-soft);
}

.btn:disabled::after {
    display: none;
}

.generate-btn {
    width: 250px;
    height: 60px;
    min-height: 60px;
    max-height: 60px;
    font-size: 20px;
    line-height: 56px;
    padding: 0;
    background-color: #ffffff;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    margin-top: auto;
    margin-bottom: 50px;
    align-self: center;
    box-sizing: border-box;
}

.generate-btn:hover {
    background-color: var(--color-primary);
    color: #fff;
    border: 2px solid var(--color-primary);
}

.clear-btn {
    width: 250px;
    height: 60px;
    min-height: 60px;
    max-height: 60px;
    font-size: 20px;
    line-height: 56px;
    padding: 0;
    color: #fff;
    background-color: rgba(255,255,255,0);
    margin-top: auto;
    margin-bottom: 32px;
    border: 2px solid #fff;
    align-self: center;
    box-sizing: border-box;
}

.clear-btn:hover {
    background-color: #ffffff;
    color: rgba(59, 86, 166, 1);
    border: 2px solid rgba(59, 86, 166, 1);
}

.results {
    font-size: 36px;
    overflow-y: auto;
    overflow-x: hidden;
    font-weight: bold;
    width: 100%;
    padding-right: 10px;
    padding-left: 10px;
    box-sizing: border-box;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scrollbar-width: thin;
    scrollbar-color: rgba(59, 86, 166, 1) rgba(255, 255, 255, 0.1);
}

.results-empty {
    font-size: 18px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    padding: 40px 0;
    text-align: center;
}

.results-summary {
    width: 100%;
    background: var(--color-glass-panel);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: var(--radius-summary);
    padding: 18px 24px;
    margin-bottom: 25px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    text-align: left;
}

.summary-count {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 10px;
}

.summary-emphasis {
    font-size: 44px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

/* ===== RESULTS STYLING ===== */
.result-item {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.result-badge {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.result-item:hover .result-badge {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.2);
}

.result-item.newest .result-badge {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    animation: fadeInScale 0.3s ease-out;
}

.result-number {
    font-size: 42px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.result-item.newest .result-number {
    font-size: 48px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.result-number::before {
    content: '🎯';
    font-size: 32px;
    opacity: 0.8;
}

.result-meta {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 10px;
}

.result-position {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: normal;
    vertical-align: middle;
}

.new-badge {
    background: rgba(99, 126, 206, 1);
    color: #ffffff;
    font-size: 11px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Alternating background colors */
.result-item:nth-child(even) .result-badge {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
}

.result-item:nth-child(odd) .result-badge {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 10px;
}

/* Animations */
@keyframes popReveal {
    0% {
        transform: scale(0.85);
        opacity: 0.5;
        box-shadow: 0 0 0 rgba(0, 0, 0, 0.1);
    }
    60% {
        transform: scale(1.05);
        opacity: 1;
    }
    100% {
        transform: scale(1);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }
    50% {
        box-shadow: 0 2px 8px rgba(99, 126, 206, 0.6);
    }
}

@keyframes snowFall {
    0% {
        background-position: 0 0, 0 0, 0 0, 0 0;
    }
    100% {
        background-position: 0 600px, 0 400px, 0 500px, 0 300px;
    }
}

/* Gradient color coding for newest item */
.result-item.newest .result-badge {
    background: linear-gradient(135deg, rgba(99, 126, 206, 0.3), rgba(79, 106, 186, 0.2));
}

/* ===== END RESULTS STYLING ===== */

/* Custom scrollbar styling for Webkit browsers */
.results::-webkit-scrollbar {
    width: 12px;
}

.results::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.results::-webkit-scrollbar-thumb {
    background: rgba(59, 86, 166, 1);
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.results::-webkit-scrollbar-thumb:hover {
    background: rgba(79, 106, 186, 1);
}

h2 {
    font-size: 44px;
    font-weight: bold;
    padding-top: 20px;
    color: #ffffff;
}

/* ===== MOBILE RESPONSIVE STYLES ===== */
@media screen and (max-width: 768px) {
    body {
        height: auto;
        min-height: 100vh;
        overflow: auto;
    }

    .app-shell {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    .left-column, .right-column {
        width: 100%;
        padding: 15px;
    }

    .left-column {
        padding-left: 15px;
        min-height: 50vh;
    }

    .right-column {
        height: auto;
        min-height: 50vh;
        padding-left: 15px;
        padding-bottom: 20px;
    }

    .logo {
        width: 140px;
        padding-top: 10px;
        padding-bottom: 30px;
        margin-bottom: 10px;
    }

    .number-display {
        font-size: 150px;
        margin-top: -40px;
        flex-grow: 0;
    }

    .generate-btn, .clear-btn {
        width: 90%;
        max-width: 280px;
        font-size: 18px;
        margin-bottom: 30px;
    }

    .generate-btn {
        margin-top: 20px;
    }

    .results {
        height: 300px;
        max-height: 300px;
        font-size: 24px;
        padding-left: 5px;
        padding-right: 5px;
        gap: 10px;
    }

    .results-summary {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
    }

    .summary-emphasis {
        font-size: 36px;
    }

    .result-badge {
        padding: 12px 15px;
        border-radius: 10px;
    }

    .result-number {
        font-size: 32px;
    }

    .result-item.newest .result-number {
        font-size: 36px;
    }

    .result-number::before {
        font-size: 24px;
    }

    .result-position {
        font-size: 12px;
    }

    .new-badge {
        font-size: 10px;
        padding: 3px 6px;
    }

    h2 {
        font-size: 32px;
        padding-top: 15px;
    }

    .result-meta {
        gap: 3px;
    }
}

@media screen and (max-width: 480px) {
    .number-display {
        font-size: 120px;
        margin-top: -30px;
    }

    .logo {
        width: 120px;
    }

    .results {
        height: 250px;
        max-height: 250px;
        font-size: 22px;
    }

    .results-summary {
        gap: 8px;
    }

    .summary-emphasis {
        font-size: 32px;
    }

    .result-number {
        font-size: 28px;
    }

    .result-item.newest .result-number {
        font-size: 32px;
    }

    .generate-btn, .clear-btn {
        width: 95%;
        font-size: 16px;
        height: 55px;
        min-height: 55px;
        max-height: 55px;
        line-height: 51px;
    }

    h2 {
        font-size: 28px;
    }
}
/* ===== END MOBILE RESPONSIVE STYLES ===== */