/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
    color: #2e7d32;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    border: 3px solid #FF6B35;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    min-height: calc(100vh - 40px);
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #FF6B35;
    background: white;
}

.title-section h1 {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.title-section h2 {
    font-size: 1.2em;
    font-weight: normal;
    opacity: 0.9;
}

.date-info {
    text-align: right;
    font-size: 1.1em;
    font-weight: bold;
}

.date-info span {
    display: block;
    margin-bottom: 5px;
}

/* Control Buttons */
.control-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.btn-primary, .btn-secondary {
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #45a049 0%, #5cb85c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #FF6B35 0%, #ff8a65 100%);
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #e55722 0%, #ff7043 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

/* Main Content Layout */
.main-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.menu-panel {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #4caf50;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.menu-panel h3 {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    color: white;
    padding: 15px;
    margin: -20px -20px 20px -20px;
    border-radius: 8px 8px 0 0;
    font-size: 1.3em;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 2px 10px rgba(76, 175, 80, 0.2);
}

.section {
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(232, 245, 232, 0.5);
    border-radius: 8px;
    border-left: 4px solid #FF6B35;
}

.section h4 {
    color: #2e7d32;
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
}

.section h5 {
    color: #388e3c;
    font-size: 1em;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Data Display Grids */
.data-grid, .number-grid, .animal-grid, .tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.data-item, .number-item, .animal-item, .tip-item {
    background: white;
    border: 2px solid #4caf50;
    border-radius: 6px;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    color: #000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.data-item:hover, .number-item:hover, .animal-item:hover, .tip-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.number-item {
    font-size: 1.2em;
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
}

.animal-item {
    background: linear-gradient(135deg, #fff3e0 0%, #ffcc80 100%);
    border-color: #FF6B35;
}

.tip-item {
    background: linear-gradient(135deg, #f3e5f5 0%, #ce93d8 100%);
    border-color: #9c27b0;
}

/* Bank Results */
.bank-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.bank-item {
    background: white;
    border: 2px solid #4caf50;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.bank-item h5 {
    color: #2e7d32;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.result-numbers {
    font-size: 1.3em;
    font-weight: bold;
    color: #000;
    background: #e8f5e8;
    padding: 10px;
    border-radius: 5px;
}

/* Generated Numbers Section */
.generated-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.ternos-grid, .duques-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 8px;
}

.terno-item, .duque-item {
    background: linear-gradient(135deg, #e1f5fe 0%, #81d4fa 100%);
    border: 2px solid #0277bd;
    border-radius: 6px;
    padding: 8px;
    text-align: center;
    font-weight: bold;
    color: #000;
    font-size: 0.9em;
}

/* Trends Chart */
.trends-chart {
    background: white;
    border: 2px solid #4caf50;
    border-radius: 8px;
    padding: 20px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.surprise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 8px;
}

.surprise-item {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border: 2px solid #f44336;
    border-radius: 6px;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    color: #000;
    animation: pulse 2s infinite;
}

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

/* Loading and Placeholder */
.loading, .placeholder {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px;
}

/* Footer */
.footer {
    background: #2e7d32;
    color: white;
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

.footer p {
    margin-bottom: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
        border-width: 2px;
    }
    
    .header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .title-section h1 {
        font-size: 2em;
    }
    
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .control-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .generated-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .title-section h1 {
        font-size: 1.5em;
    }
    
    .btn-primary, .btn-secondary {
        padding: 12px 20px;
        font-size: 1em;
    }
}
