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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    color: #333;
    margin: 0;
}

.container {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas: 
        "presets"
        "wheel controls";
    gap: 20px;
    align-items: start;
    padding-bottom: 40px;
}

.presets-section {
    grid-area: presets;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 20px;
    color: white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.left-section {
    grid-area: wheel;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wheel-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.wheel-wrapper {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 20px 0;
}

.wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    transition: transform 4s cubic-bezier(0.25, 0.1, 0.25, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 8px solid #fff;
}

.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

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

.spin-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    margin: 20px 0;
}

.spin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}

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

.result {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
    text-align: center;
    border-radius: 15px;
    font-size: 20px;
    font-weight: bold;
    display: none;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.presets-section h4 {
    font-size: 18px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
}

.presets-section h4::before {
    content: "🎲";
    font-size: 20px;
}

.preset-buttons {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.preset-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    backdrop-filter: blur(10px);
}

.preset-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.new-list-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a52) !important;
    color: white !important;
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
}

.controls {
    grid-area: controls;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.input-section {
    margin-bottom: 30px;
}

.input-section h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 20px;
}

.input-group {
    display: flex;
    margin-bottom: 10px;
}

.item-input {
    flex: 1;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.item-input:focus {
    outline: none;
    border-color: #667eea;
}

.add-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    margin-left: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.add-btn:hover {
    background: #5a6fd8;
}

.checkbox-option {
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.remove-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #667eea;
}

.checkbox-label {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    user-select: none;
}

.checkbox-label:hover {
    color: #667eea;
}

.items-list {
    max-height: 300px;
    overflow-y: auto;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
}

.item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.item:last-child {
    border-bottom: none;
}

.remove-btn {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s ease;
}

.remove-btn:hover {
    background: #ee5a52;
}

.drawn-items {
    max-height: 200px;
    overflow-y: auto;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    padding: 10px;
}

.drawn-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    margin-bottom: 8px;
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
    border-radius: 8px;
    font-weight: bold;
    animation: slideIn 0.3s ease;
}

.drawn-item:last-child {
    margin-bottom: 0;
}

.drawn-time {
    font-size: 12px;
    opacity: 0.8;
}

.no-draws {
    text-align: center;
    color: #666;
    font-style: italic;
    margin: 20px 0;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.history-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.restore-btn {
    transition: all 0.3s ease;
    position: relative;
    background: #4ecdc4;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
}

.restore-btn:hover {
    background: #44a08d !important;
    transform: translateY(-1px);
}

.restore-btn.animate {
    animation: restoreAnimation 0.5s ease;
}

@keyframes restoreAnimation {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.no-items-message {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(45deg, #ff9a9e, #fecfef);
    border-radius: 15px;
    color: #333;
    font-size: 18px;
    font-weight: bold;
    margin: 20px 0;
}

.no-items-message .emoji {
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 36px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "presets"
            "wheel"
            "controls";
        gap: 20px;
    }
    
    .wheel-wrapper {
        width: 300px;
        height: 300px;
    }
    
    h1 {
        font-size: 28px;
    }

    .preset-buttons {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 769px) {
    .container {
        grid-template-columns: 1fr 400px;
        grid-template-areas: 
            "presets presets"
            "wheel controls";
        gap: 40px 40px;
    }
}

@media (max-width: 480px) {
    .preset-buttons {
        grid-template-columns: 1fr 1fr;
    }
}

/* Footer Styles */
.footer {
    margin-top: 40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 1200px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 40px 30px 20px;
}

.footer-section {
    color: #333;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #667eea;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-section p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
}

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

.footer-section ul li {
    color: #666;
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
    line-height: 1.5;
}

.footer-section ul li::before {
    content: "•";
    color: #667eea;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.footer-bottom {
    border-top: 1px solid #eee;
    padding: 20px 30px;
    text-align: center;
    background: rgba(245, 245, 245, 0.8);
    border-radius: 0 0 20px 20px;
}

.footer-bottom p {
    color: #666;
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.footer-bottom p:first-child {
    margin-bottom: 8px;
    font-weight: 500;
}

.footer-tip {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white !important;
    padding: 8px 16px;
    border-radius: 15px;
    display: inline-block;
    margin-top: 10px !important;
    font-size: 13px !important;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 30px 20px 15px;
    }
    
    .footer-bottom {
        padding: 15px 20px;
    }
    
    .footer-section h4 {
        font-size: 16px;
    }
    
    .footer-tip {
        font-size: 12px !important;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .footer-content {
        padding: 25px 15px 10px;
        gap: 20px;
    }
    
    .footer-bottom {
        padding: 15px;
    }
    
    .footer-bottom p {
        font-size: 13px;
    }
}

/* Adicione estas regras ao seu styles.css existente */

/* SEO Content Section */
.seo-content {
    max-width: 1200px;
    width: 100%;
    margin: 40px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

.content-wrapper article {
    color: #333;
    line-height: 1.6;
}

.content-wrapper h2 {
    color: #667eea;
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: bold;
}

.content-wrapper h3 {
    color: #764ba2;
    font-size: 22px;
    margin: 30px 0 15px 0;
    font-weight: bold;
}

.content-wrapper p {
    margin-bottom: 20px;
    font-size: 16px;
    color: #555;
}

.content-wrapper ul {
    margin-bottom: 20px;
    padding-left: 25px;
}

.content-wrapper ul li {
    margin-bottom: 10px;
    color: #555;
    line-height: 1.5;
}

.content-wrapper strong {
    color: #667eea;
    font-weight: bold;
}

/* Screen Reader Only Class */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Header Updates */
header {
    text-align: center;
    margin-bottom: 30px;
    grid-column: 1 / -1;
}

header h1 {
    font-size: 36px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
}

.subtitle {
    color: white;
    font-size: 18px;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    margin: 0;
}

/* Accessibility improvements */
button:focus,
input:focus,
.preset-btn:focus {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

/* Responsive adjustments for SEO content */
@media (max-width: 768px) {
    .seo-content {
        padding: 30px 20px;
        margin: 30px 0;
    }
    
    .content-wrapper h2 {
        font-size: 24px;
    }
    
    .content-wrapper h3 {
        font-size: 20px;
    }
    
    header h1 {
        font-size: 28px;
    }
    
    .subtitle {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .seo-content {
        padding: 25px 15px;
    }
    
    .content-wrapper h2 {
        font-size: 22px;
    }
    
    .content-wrapper h3 {
        font-size: 18px;
    }
}

.history-buttons .preset-btn,
#clearHistoryBtn {
    background: linear-gradient(45deg, #764ba2, #667eea) !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    cursor: pointer !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(118, 75, 162, 0.3) !important;
}

.history-buttons .preset-btn:hover,
#clearHistoryBtn:hover {
    background: linear-gradient(45deg, #5a4a8a, #5a6fd8) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 15px rgba(118, 75, 162, 0.4) !important;
}

.history-buttons .preset-btn:focus,
#clearHistoryBtn:focus {
    outline: 3px solid #667eea !important;
    outline-offset: 2px !important;
}

/* Garantir que o botão restaurar também funcione corretamente */
.restore-btn,
#restoreBtn {
    background: linear-gradient(45deg, #4ecdc4, #44a08d) !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    cursor: pointer !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(78, 205, 196, 0.3) !important;
}

.restore-btn:hover,
#restoreBtn:hover {
    background: linear-gradient(45deg, #3bb8b1, #3a8f82) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.4) !important;
}

.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 10;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    user-select: none;
}

.wheel-center:hover {
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
}

.wheel-center:active {
    transform: translate(-50%, -50%) scale(0.95);
}

/* Adicionar indicação visual de que é clicável */
.wheel-center::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }
}

/* Desabilitar animação quando estiver girando */
.wheel-center.spinning::before {
    animation: none;
}

/* Adicionar tooltip visual */
.wheel-center::after {
    content: 'Clique aqui!';
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    font-family: Arial, sans-serif;
    font-weight: normal;
}

.wheel-center:hover::after {
    opacity: 1;
}

/* Esconder tooltip em mobile para não poluir */
@media (max-width: 768px) {
    .wheel-center::after {
        display: none;
    }
}

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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    color: #333;
    margin: 0;
}

.container {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas: 
        "presets"
        "wheel"
        "controls";
    gap: 20px;
    align-items: start;
    padding-bottom: 40px;
}

.presets-section {
    grid-area: presets;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 20px;
    color: white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.left-section {
    grid-area: wheel;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.wheel-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px 20px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    width: 100%;
}

.wheel-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    transition: transform 4s cubic-bezier(0.25, 0.1, 0.25, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 8px solid #fff;
}

.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 10;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    user-select: none;
}

.wheel-center:hover {
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
}

.wheel-center:active {
    transform: translate(-50%, -50%) scale(0.95);
}

.wheel-center::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }
}

.wheel-center.spinning::before {
    animation: none;
}

.wheel-center::after {
    content: 'Clique aqui!';
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    font-family: Arial, sans-serif;
    font-weight: normal;
}

.wheel-center:hover::after {
    opacity: 1;
}

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

.spin-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    margin: 20px 0;
    width: 100%;
    max-width: 300px;
}

.spin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}

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

.result {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
    text-align: center;
    border-radius: 15px;
    font-size: 20px;
    font-weight: bold;
    display: none;
    animation: fadeInUp 0.5s ease;
    width: 100%;
    max-width: 400px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.presets-section h2 {
    font-size: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
}

.preset-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.preset-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70px;
}

.preset-btn div {
    font-size: 14px;
    margin-bottom: 4px;
}

.preset-btn small {
    font-size: 11px;
    opacity: 0.8;
}

.preset-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.new-list-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a52) !important;
    color: white !important;
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
}

.controls {
    grid-area: controls;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px 20px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    width: 100%;
}

.input-section {
    margin-bottom: 30px;
}

.input-section h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
}

.input-group {
    display: flex;
    margin-bottom: 10px;
    gap: 10px;
}

.item-input {
    flex: 1;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    min-width: 0;
}

.item-input:focus {
    outline: none;
    border-color: #667eea;
}

.add-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.add-btn:hover {
    background: #5a6fd8;
}

.checkbox-option {
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.remove-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #667eea;
    flex-shrink: 0;
}

.checkbox-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    user-select: none;
}

.checkbox-label:hover {
    color: #667eea;
}

.items-list {
    max-height: 300px;
    overflow-y: auto;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
}

.item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #eee;
    gap: 10px;
}

.item span:nth-child(2) {
    flex: 1;
    word-break: break-word;
}

.item:last-child {
    border-bottom: none;
}

.remove-btn {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.remove-btn:hover {
    background: #ee5a52;
}

.drawn-items {
    max-height: 200px;
    overflow-y: auto;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    padding: 10px;
}

.drawn-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    margin-bottom: 8px;
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
    border-radius: 8px;
    font-weight: bold;
    animation: slideIn 0.3s ease;
    gap: 10px;
}

.drawn-item span:first-child {
    word-break: break-word;
    flex: 1;
}

.drawn-item:last-child {
    margin-bottom: 0;
}

.drawn-time {
    font-size: 12px;
    opacity: 0.8;
    white-space: nowrap;
    flex-shrink: 0;
}

.no-draws {
    text-align: center;
    color: #666;
    font-style: italic;
    margin: 20px 0;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.history-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.history-buttons .preset-btn,
#clearHistoryBtn {
    background: linear-gradient(45deg, #764ba2, #667eea) !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    cursor: pointer !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(118, 75, 162, 0.3) !important;
    min-height: auto !important;
}

.restore-btn,
#restoreBtn {
    background: linear-gradient(45deg, #4ecdc4, #44a08d) !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    cursor: pointer !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(78, 205, 196, 0.3) !important;
}

.restore-btn:hover,
#restoreBtn:hover {
    background: linear-gradient(45deg, #3bb8b1, #3a8f82) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.4) !important;
}

.restore-btn.animate {
    animation: restoreAnimation 0.5s ease;
}

@keyframes restoreAnimation {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.no-items-message {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(45deg, #ff9a9e, #fecfef);
    border-radius: 15px;
    color: #333;
    font-size: 18px;
    font-weight: bold;
    margin: 20px 0;
}

.no-items-message .emoji {
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    grid-column: 1 / -1;
    width: 100%;
}

header h1 {
    font-size: 28px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
    line-height: 1.3;
}

.subtitle {
    color: white;
    font-size: 16px;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    margin: 0;
    line-height: 1.4;
}

button:focus,
input:focus,
.preset-btn:focus {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

.footer {
    margin-top: 40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 1200px;
}

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

.footer-section {
    color: #333;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #667eea;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-section p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
}

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

.footer-section ul li {
    color: #666;
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
    line-height: 1.5;
}

.footer-section ul li::before {
    content: "•";
    color: #667eea;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.footer-bottom {
    border-top: 1px solid #eee;
    padding: 20px 30px;
    text-align: center;
    background: rgba(245, 245, 245, 0.8);
    border-radius: 0 0 20px 20px;
}

.footer-bottom p {
    color: #666;
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.footer-bottom p:first-child {
    margin-bottom: 8px;
    font-weight: 500;
}

.footer-tip {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white !important;
    padding: 8px 16px;
    border-radius: 15px;
    display: inline-block;
    margin-top: 10px !important;
    font-size: 13px !important;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.seo-content {
    max-width: 1200px;
    width: 100%;
    margin: 40px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 40px 30px;
}

.content-wrapper article {
    color: #333;
    line-height: 1.6;
}

.content-wrapper h2 {
    color: #667eea;
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: bold;
}

.content-wrapper h3 {
    color: #764ba2;
    font-size: 22px;
    margin: 30px 0 15px 0;
    font-weight: bold;
}

.content-wrapper p {
    margin-bottom: 20px;
    font-size: 16px;
    color: #555;
}

.content-wrapper ul {
    margin-bottom: 20px;
    padding-left: 25px;
}

.content-wrapper ul li {
    margin-bottom: 10px;
    color: #555;
    line-height: 1.5;
}

.content-wrapper strong {
    color: #667eea;
    font-weight: bold;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* MOBILE OPTIMIZATION */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    .container {
        gap: 15px;
        padding-bottom: 30px;
    }

    .wheel-wrapper {
        width: 90vw;
        max-width: 350px;
        height: auto;
        margin: 15px auto;
    }

    .wheel-center::after {
        display: none;
    }

    header h1 {
        font-size: 22px;
    }

    .subtitle {
        font-size: 14px;
    }

    .preset-buttons {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .preset-btn {
        padding: 10px 8px;
        min-height: 65px;
        font-size: 13px;
    }

    .preset-btn div {
        font-size: 13px;
    }

    .preset-btn small {
        font-size: 10px;
    }

    .wheel-container {
        padding: 20px 15px;
    }

    .controls {
        padding: 20px 15px;
    }

    .input-section h3 {
        font-size: 16px;
    }

    .result {
        font-size: 18px;
        padding: 15px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 30px 20px 15px;
    }

    .footer-bottom {
        padding: 15px 20px;
    }

    .footer-section h4 {
        font-size: 16px;
    }

    .footer-tip {
        font-size: 12px !important;
        padding: 6px 12px;
    }

    .seo-content {
        padding: 30px 20px;
        margin: 30px 0;
    }

    .content-wrapper h2 {
        font-size: 24px;
    }

    .content-wrapper h3 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .preset-buttons {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .preset-btn {
        min-height: 60px;
        padding: 8px;
    }

    .wheel-wrapper {
        width: 85vw;
        max-width: 300px;
    }

    .wheel-center {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .pointer {
        border-left: 12px solid transparent;
        border-right: 12px solid transparent;
        border-top: 24px solid #ff6b6b;
    }

    .input-group {
        flex-direction: column;
        gap: 8px;
    }

    .add-btn {
        width: 100%;
    }

    .checkbox-label {
        font-size: 13px;
    }

    .footer-content {
        padding: 25px 15px 10px;
        gap: 20px;
    }

    .footer-bottom {
        padding: 15px;
    }

    .footer-bottom p {
        font-size: 13px;
    }

    .seo-content {
        padding: 25px 15px;
    }

    .content-wrapper h2 {
        font-size: 22px;
    }

    .content-wrapper h3 {
        font-size: 18px;
    }
}

/* DESKTOP */
@media (min-width: 769px) {
    .container {
        grid-template-columns: 1fr 400px;
        grid-template-areas: 
            "presets presets"
            "wheel controls";
        gap: 40px 40px;
    }

    header h1 {
        font-size: 36px;
    }

    .subtitle {
        font-size: 18px;
    }

    .preset-buttons {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Botão Importar Lista */
.import-list-btn {
    width: 100%;
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    margin-top: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.import-list-btn:hover {
    background: linear-gradient(45deg, #3bb8b1, #3a8f82);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.4);
}

.import-list-btn:active {
    transform: translateY(0);
}

/* Modal Overlay */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

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

/* Modal Content */
.modal-content {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal Header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 2px solid #f0f0f0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px 20px 0 0;
}

.modal-header h3 {
    color: white;
    font-size: 22px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 28px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
    line-height: 1;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Modal Body */
.modal-body {
    padding: 30px;
}

.modal-description {
    color: #555;
    font-size: 15px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.modal-tips {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    padding: 15px 20px;
    border-radius: 12px;
}

.modal-tips li {
    color: #333;
    font-size: 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-tips li:last-child {
    margin-bottom: 0;
}

/* Textarea */
.bulk-textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Arial', sans-serif;
    resize: vertical;
    min-height: 200px;
    transition: border-color 0.3s ease;
    background: #fafafa;
}

.bulk-textarea:focus {
    outline: none;
    border-color: #667eea;
    background: white;
}

.bulk-textarea::placeholder {
    color: #999;
    line-height: 1.6;
}

.modal-info {
    margin-top: 15px;
    padding: 12px 15px;
    background: linear-gradient(45deg, #fff7e6, #fff0d1);
    border-left: 4px solid #ffa500;
    border-radius: 8px;
}

.modal-info small {
    color: #666;
    font-size: 13px;
    display: block;
    line-height: 1.5;
}

/* Modal Footer */
.modal-footer {
    padding: 20px 30px;
    border-top: 2px solid #f0f0f0;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    background: #fafafa;
    border-radius: 0 0 20px 20px;
}

.modal-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-btn {
    background: #e0e0e0;
    color: #666;
}

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

.import-btn {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

.import-btn:hover {
    background: linear-gradient(45deg, #3bb8b1, #3a8f82);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.4);
}

.import-btn:active,
.cancel-btn:active {
    transform: translateY(0);
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal {
        padding: 15px;
    }

    .modal-content {
        max-height: 85vh;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-header h3 {
        font-size: 18px;
    }

    .modal-close {
        width: 35px;
        height: 35px;
        font-size: 24px;
    }

    .modal-body {
        padding: 20px;
    }

    .bulk-textarea {
        min-height: 150px;
        font-size: 14px;
    }

    .modal-footer {
        padding: 15px 20px;
        flex-direction: column;
    }

    .modal-btn {
        width: 100%;
        padding: 14px;
    }

    .modal-tips {
        padding: 12px 15px;
    }

    .modal-tips li {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .modal {
        padding: 10px;
    }

    .modal-header {
        padding: 15px;
    }

    .modal-header h3 {
        font-size: 16px;
    }

    .modal-body {
        padding: 15px;
    }

    .modal-description {
        font-size: 14px;
    }

    .bulk-textarea {
        min-height: 120px;
        padding: 12px;
    }

    .modal-info small {
        font-size: 12px;
    }
}