/* Blazor basic settings */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: #191c22;
    color: #e1e2eb;
    bottom: 0;
    box-shadow: 0 -1px 10px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    border-top: 1px solid rgba(255,255,255,0.1);
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* Stitch Premium Design CSS */
body {
    background-color: #0b0e14; /* surface-container-lowest */
    color: #e1e2eb; /* on-background */
}

.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.gradient-text {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.vote-card {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.vote-card:hover {
    border: 1px solid rgba(0, 219, 233, 0.3); /* secondary-fixed-dim with opacity */
    box-shadow: 0 12px 40px rgba(0, 240, 255, 0.08);
    transform: translateY(-2px);
}

.vote-card.selected {
    border: 1px solid #00dbe9; /* secondary-fixed-dim */
    box-shadow: 0 0 25px rgba(0, 219, 233, 0.15);
    background: rgba(0, 219, 233, 0.03);
}

.progress-bar-fill {
    background: linear-gradient(90deg, #00dbe9, #124af0, #00dbe9);
    background-size: 200% 100%;
    animation: gradient-shift 2s infinite linear;
}

@keyframes gradient-shift {
    0% { background-position: 100% 0%; }
    100% { background-position: -100% 0%; }
}

/* Ambient background glow */
.ambient-glow {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 80vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,219,233,0.04) 0%, rgba(18,74,240,0.02) 40%, rgba(11,14,20,0) 70%);
    pointer-events: none;
    z-index: -1;
}

/* Custom Web3 Modal Animation */
@keyframes modal-fade-in {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.modal-animate {
    animation: modal-fade-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}