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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    animation: fadeIn 0.8s ease-in;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-left: 4px solid #667eea;
}

.stat-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.stat-number {
    font-size: 2em;
    font-weight: bold;
    color: #667eea;
    display: block;
    margin-top: 10px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.chart-container, .recommendations, .calendar-container {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.recommendations {
    grid-column: span 2;
}

.rec-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.rec-item {
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
}

.rec-item.best {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #28a745;
    color: #155724;
    position: relative;
    overflow: hidden;
}

.rec-item.best::before {
    content: '⭐';
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 1.2em;
}

.rec-item.good {
    background: #fff3cd;
    border: 2px solid #ffc107;
    color: #856404;
}

.rec-item.average {
    background: #f8d7da;
    border: 2px solid #dc3545;
    color: #721c24;
}

.calendar-container {
    grid-column: span 2;
}

.hashtags-container {
    grid-column: span 2;
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .hashtags-container {
        grid-column: span 1;
    }
}

.hashtags-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.hashtag-category h4 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.hashtag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hashtag {
    background: #f8f9fa;
    color: #667eea;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    border: 1px solid #e9ecef;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hashtag:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.quick-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #f8f9fa;
}

.quick-actions h4 {
    margin-bottom: 15px;
    color: #667eea;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    margin-right: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

#calendario {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin: 15px 0;
}

.dia-calendario {
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-size: 0.9em;
}

.dia-post {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: bold;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dia-post:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.dia-normal {
    background: #f8f9fa;
    color: #666;
}

.data-input {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.form-row input, .form-row select, .form-row button {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    flex: 1;
    min-width: 150px;
}

button {
    background: #667eea;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

button:hover {
    background: #5a6fd8;
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .recommendations, .calendar-container {
        grid-column: span 1;
    }
    
    .form-row {
        flex-direction: column;
    }
}