/* Admin Dashboard Enhanced Styles */
.admin-dashboard {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.dashboard-title {
    text-align: center;
    color: #333;
    margin-bottom: 1rem;
    font-size: 2.5rem;
    font-weight: 700;
}

.dashboard-title i {
    color: #667eea;
    margin-right: 0.5rem;
}

.welcome-message {
    text-align: center;
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.navigation-section {
    margin-bottom: 3rem;
}

.section-title {
    color: #333;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #667eea;
    display: inline-block;
}

.section-title i {
    color: #667eea;
    margin-right: 0.5rem;
}

.nav-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.nav-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

.nav-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-card:hover::before {
    transform: scaleX(1);
}

.nav-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: inherit;
}

.card-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.card-content {
    flex: 1;
}

.card-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.card-content p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Special card styles for different categories */
.add-journal-card .card-icon {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

.newsletter-card .card-icon {
    background: linear-gradient(135deg, #2196F3, #1976D2);
}

.journal-stats-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border-color: rgba(102, 126, 234, 0.2);
}

.journal-stats-card .card-icon {
    background: linear-gradient(135deg, #FF9800, #F57C00);
}

/* Responsive design */
@media (max-width: 768px) {
    .admin-dashboard {
        padding: 1rem;
    }
    
    .dashboard-title {
        font-size: 2rem;
    }
    
    .nav-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .nav-card {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .card-icon {
        margin: 0 auto;
    }
}

/* Animation keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-card {
    animation: fadeInUp 0.6s ease forwards;
}

.nav-card:nth-child(2) { animation-delay: 0.1s; }
.nav-card:nth-child(3) { animation-delay: 0.2s; }
.nav-card:nth-child(4) { animation-delay: 0.3s; }
.nav-card:nth-child(5) { animation-delay: 0.4s; }
.nav-card:nth-child(6) { animation-delay: 0.5s; }

/* Fix for text overflow and icon spacing */
.card-content h3 {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.card-content p {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Ensure consistent card heights */
.nav-card {
    min-height: 120px;
    align-items: center;
}

.card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
