/* App specific styles for Revolutionary Choice */
.app-main {
    padding-top: 1rem; /* Overrides global main padding */
}

.app-container {
    padding: 0 15px 2rem; /* Reduced top padding */
    text-align: center;
}

.subtitle {
    margin-bottom: 2rem;
    color: #666;
    font-size: 1.1rem;
}

.wheel-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.input-panel {
    flex: 1;
    min-width: 300px;
    background: #fdfdfd;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-align: left;
    border: 1px solid #eee;
}

.input-panel label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: bold;
    color: #333;
    font-size: 1.05rem;
}

#options-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    margin-bottom: 1.2rem;
    box-sizing: border-box;
}

#options-input:focus {
    outline: none;
    border-color: #0a74da;
    box-shadow: 0 0 0 3px rgba(10, 116, 218, 0.2);
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, transform 0.1s, box-shadow 0.3s;
    font-family: inherit;
}

.btn:active {
    transform: scale(0.98);
}

.primary-btn {
    background: #0a74da;
    color: white;
    width: 100%;
}

.primary-btn:hover {
    background: #085ba8;
    box-shadow: 0 4px 8px rgba(10, 116, 218, 0.3);
}

.wheel-panel {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wheel-wrapper {
    position: relative;
    width: 400px;
    height: 400px;
    margin-bottom: 2rem;
    max-width: 100%;
}

#wheel-canvas {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: transform 4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.wheel-pointer {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0; 
    height: 0; 
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 40px solid #e74c3c;
    z-index: 10;
    filter: drop-shadow(0 4px 4px rgba(0,0,0,0.3));
}

.spin-btn {
    background: #e74c3c;
    color: white;
    font-size: 1.25rem;
    padding: 1rem 3rem;
    border-radius: 50px;
    box-shadow: 0 6px 15px rgba(231, 76, 60, 0.3);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.2s ease;
    width: 100%;
    max-width: 300px;
}

.spin-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.4);
}

.spin-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.winner-display {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: #e8f4fd;
    border-left: 5px solid #0a74da;
    border-radius: 8px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.winner-display.hidden {
    display: none;
}

.winner-display h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: #555;
}

#winner-text {
    margin: 0;
    font-size: 1.6rem;
    font-weight: bold;
    color: #0a74da;
    word-break: break-word;
}

/* Responsive */
@media (max-width: 768px) {
    .wheel-layout {
        flex-direction: column;
    }
    
    .wheel-wrapper {
        width: 300px;
        height: 300px;
    }
    
    .spin-btn {
        padding: 0.8rem 2.5rem;
        font-size: 1.15rem;
    }
}
