/* Ticket Generator Specific Styles */
.generator-container {
    max-width: 800px;
    margin: 2rem auto;
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
}

.input-section {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--bg-accent), var(--bg-primary));
    border-radius: var(--border-radius);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
}

.input-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.input-section input {
    padding: 1rem;
    font-size: 1.2rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    margin: 1rem 0;
    width: 250px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: var(--transition);
}

.input-section input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.ticket-container {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.tambola-ticket {
    border: 3px solid var(--primary-color);
    border-radius: 12px;
    background: white;
    padding: 1rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.tambola-ticket::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.ticket-header {
    text-align: center;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    font-weight: bold;
    position: relative;
}

.ticket-grid {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    gap: 2px;
}

.ticket-row {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 2px;
}

.ticket-cell {
    width: 40px;
    height: 40px;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    background: white;
    transition: all 0.2s ease;
}

.ticket-cell.empty {
    background: #f5f5f5;
    border-color: #eee;
}

.ticket-cell.selected {
    background: var(--success-color);
    color: white;
    border-color: var(--success-color);
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
    animation: glow 0.3s ease;
}

@keyframes glow {
    0% { box-shadow: 0 0 5px rgba(76, 175, 80, 0.3); }
    50% { box-shadow: 0 0 20px rgba(76, 175, 80, 0.8); }
    100% { box-shadow: 0 0 10px rgba(76, 175, 80, 0.5); }
}

.stats {
    margin-top: 2rem;
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--bg-accent), var(--bg-primary));
    border-radius: var(--border-radius);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
}

.stats p {
    margin: 0.5rem 0;
}

.stats #selectedNumbers {
    color: var(--success-color);
    font-weight: bold;
}

/* Log Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    max-height: 80%;
    overflow-y: auto;
    box-shadow: var(--box-shadow-lg);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.modal-header h3 {
    color: var(--primary-color);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .generator-container {
        padding: 1rem;
        margin: 1rem;
    }
    
    .input-section {
        padding: 1rem;
    }
    
    .input-section input {
        width: 90%;
        max-width: 300px;
    }
    
    .ticket-cell {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .ticket-grid {
        gap: 1px;
    }
    
    .ticket-row {
        gap: 1px;
    }
}