.name-lottery-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    direction: rtl;
}

.lottery-header {
    text-align: center;
    margin-bottom: 30px;
}

.lottery-header h2 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.lottery-header p {
    color: #7f8c8d;
    font-size: 16px;
}

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

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

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

.name-input:focus {
    outline: none;
    border-color: #3498db;
}

.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    font-weight: 600;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #e0e0e0;
    color: #333;
}

.btn-secondary:hover {
    background-color: #d0d0d0;
}

.btn-lottery {
    background: linear-gradient(135deg, #9b59b6, #e74c3c);
    color: white;
    font-size: 18px;
    padding: 15px 30px;
    margin: 0 auto;
    display: block;
}

.btn-lottery:hover {
    background: linear-gradient(135deg, #8e44ad, #c0392b);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

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

.names-section h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.names-container {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    min-height: 200px;
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 15px;
    position: relative;
}

.name-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.name-list li {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: fadeIn 0.3s;
}

.name-list li:last-child {
    border-bottom: none;
}

.name-list li:hover {
    background-color: #f9f9f9;
}

.remove-name {
    color: #e74c3c;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.remove-name:hover {
    background-color: #ffebee;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #95a5a6;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.names-actions {
    text-align: left;
}

.lottery-section {
    text-align: center;
}

.result-section {
    margin-top: 30px;
    animation: fadeIn 0.5s;
}

.result-card {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.result-label {
    font-size: 18px;
    margin-bottom: 10px;
}

.result-name {
    font-size: 32px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.hidden {
    display: none;
}

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

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

.pulse {
    animation: pulse 0.5s;
}

/* حالت واکنش‌گرا */
@media (max-width: 600px) {
    .name-lottery-container {
        padding: 15px;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .btn {
        justify-content: center;
    }
    
    .result-name {
        font-size: 24px;
    }
}