* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Amiri', 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    direction: rtl;
    text-align: right;
}

.container {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    font-family: 'Amiri', serif;
    font-size: 36px;
}

h2, h3, h4 {
    color: #34495e;
    font-family: 'Amiri', serif;
}

.menu {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 40px 0;
}

.btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    font-family: 'Amiri', serif;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.spin-btn {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
}

.sentence-btn {
    background: linear-gradient(135deg, #4cd964 0%, #5ac8fa 100%);
}

.navigation {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #eee;
}

.current-sentence {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    padding: 25px;
    border-radius: 15px;
    margin: 30px 0;
    border: 2px solid #bbdefb;
}

.sentence-box {
    padding: 20px;
    background: white;
    border-radius: 10px;
    margin-top: 15px;
    text-align: center;
    border: 1px dashed #2196f3;
}

.arabic-sentence {
    font-size: 24px;
    color: #2c3e50;
    font-family: 'Amiri', serif;
    line-height: 1.6;
}

.no-sentence {
    color: #95a5a6;
    font-style: italic;
    text-align: center;
}

.instructions {
    background: #fffde7;
    padding: 25px;
    border-radius: 15px;
    margin-top: 30px;
    border: 2px solid #fff9c4;
}

.instructions ol {
    padding-right: 20px;
    margin-top: 15px;
}

.instructions li {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #5d4037;
}

/* Wheel Styles */
.wheel-container {
    position: relative;
    width: 500px;
    height: 500px;
    margin: 40px auto;
}

#wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0,0,0,0.2);
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.83, 0.67);
}

.wheel-segment {
    position: absolute;
    width: 50%;
    height: 50%;
    transform-origin: 100% 100%;
    left: 0;
    top: 0;
    background-color: var(--color);
    transform: rotate(calc(var(--i) * 30deg));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.segment-text {
    transform: rotate(75deg);
    font-family: 'Amiri', serif;
    font-size: 16px;
    color: white;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    line-height: 1.4;
    text-align: center;
}

.wheel-pointer {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 40px;
    color: #e74c3c;
    z-index: 10;
    text-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.result-box {
    background: white;
    padding: 30px;
    border-radius: 20px;
    margin: 30px auto;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border: 3px solid #2ecc71;
    max-width: 600px;
}

.result-text {
    font-size: 28px;
    color: #2c3e50;
    font-family: 'Amiri', serif;
    line-height: 1.6;
    margin: 20px 0;
}

.result-english {
    font-size: 18px;
    color: #7f8c8d;
    margin-bottom: 30px;
    font-style: italic;
}

.result-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.next-btn {
    background: #27ae60;
}

.spin-again-btn {
    background: #e67e22;
}

/* Make Sentence Styles */
.wheel-result-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.wheel-result-box .arabic-text {
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: bold;
}

.wheel-result-box .english-text {
    font-size: 16px;
    opacity: 0.9;
}

.info-box {
    background: #e8f5e9;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    margin: 20px 0;
    border: 1px solid #c8e6c9;
}

.workspace {
    display: flex;
    gap: 30px;
    margin: 30px 0;
    min-height: 500px;
}

.word-bank {
    flex: 1;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    border: 2px dashed #ddd;
    overflow-y: auto;
    max-height: 600px;
}

.sentence-area {
    flex: 2;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    border: 2px dashed #667eea;
}

.category-box {
    margin-bottom: 25px;
}

.category-title {
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
    margin-bottom: 15px;
    font-size: 20px;
}

.word-items {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.word-item {
    background: white;
    padding: 12px 20px;
    border-radius: 25px;
    border: 2px solid #3498db;
    cursor: move;
    transition: all 0.3s ease;
    font-family: 'Amiri', serif;
    font-size: 18px;
    text-align: center;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    user-select: none;
    position: relative;
}

.word-item:hover {
    background: #3498db;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.word-meaning {
    display: block;
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 5px;
}

.word-hint {
    position: absolute;
    top: -8px;
    left: -8px;
    background: #3498db;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.sentence-container {
    min-height: 150px;
    padding: 25px;
    background: white;
    border-radius: 10px;
    margin-bottom: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    border: 2px solid #e0e0e0;
}

.sentence-word {
    background: #e3f2fd;
    padding: 12px 24px;
    border-radius: 25px;
    font-family: 'Amiri', serif;
    font-size: 20px;
    border: 2px solid #2196f3;
    cursor: move;
    transition: all 0.2s ease;
    position: relative;
}

.sentence-word:hover {
    background: #bbdefb;
}

.delete-btn {
    position: absolute;
    top: -5px;
    left: -5px;
    background: #e74c3c;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
}

.sentence-actions {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.sentence-info {
    background: white;
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
    border: 1px solid #ddd;
}

.secondary {
    background: #95a5a6;
    box-shadow: 0 5px 15px rgba(149, 165, 166, 0.4);
}

.secondary:hover {
    background: #7f8c8d;
    box-shadow: 0 8px 25px rgba(149, 165, 166, 0.6);
}

.speak-btn {
    background: #9b59b6;
}

.speak-btn:hover {
    background: #8e44ad;
}

.hint-btn {
    background: #f39c12;
}

.hint-btn:hover {
    background: #e67e22;
}

.validation-result {
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
    display: none;
}

.validation-result.correct {
    background: #d4edda;
    border: 2px solid #c3e6cb;
    color: #155724;
}

.validation-result.incorrect {
    background: #f8d7da;
    border: 2px solid #f5c6cb;
    color: #721c24;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 20px;
    }
    
    h1 {
        font-size: 28px;
    }
    
    .menu, .navigation, .sentence-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .wheel-container {
        width: 300px;
        height: 300px;
    }
    
    .segment-text {
        font-size: 12px;
    }
    
    .workspace {
        flex-direction: column;
    }
    
    .word-bank, .sentence-area {
        width: 100%;
    }
    
    .result-actions {
        flex-direction: column;
    }

    /* Add these animations to your existing style.css */

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes glow {
    0% { box-shadow: 0 0 10px rgba(102, 126, 234, 0.5); }
    50% { box-shadow: 0 0 20px rgba(102, 126, 234, 0.8); }
    100% { box-shadow: 0 0 10px rgba(102, 126, 234, 0.5); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Add floating animation to wheel */
.wheel-wrapper {
    animation: float 6s ease-in-out infinite;
}

/* Add pulse animation to spin button */
#spin-btn {
    animation: pulse 2s infinite;
}

/* Add glow effect to selected items */
.word-item:hover {
    animation: glow 1.5s infinite;
}
}