* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #4361ee;
    --secondary: #3a0ca3;
    --accent: #7209b7;
    --light: #f8f9fa;
    --dark: #212529;
    --success: #4cc9f0;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--dark);
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    flex: 1;
}

/* Common Header Styles */
.common-header {
    text-align: center;
    padding: 30px 0;
    color: white;
}

.common-header .logo {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.common-header .logo i {
    color: var(--success);
}

.common-header .tagline {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.common-header nav {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.common-header nav a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    transition: background-color 0.3s;
}

.common-header nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.common-header nav a.active {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Common Footer Styles */
.common-footer {
    text-align: center;
    padding: 30px 0;
    color: white;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.common-footer .footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.common-footer .footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.common-footer .footer-links a:hover {
    color: var(--success);
}

.common-footer .social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 15px 0;
}

.common-footer .social-links a {
    color: white;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.common-footer .social-links a:hover {
    color: var(--success);
}

.common-footer .copyright {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 10px;
}

/* Main Content Styles */
.main-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.generator-card {
    flex: 1;
    min-width: 300px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 25px;
    transition: transform 0.3s ease;
}

.generator-card:hover {
    transform: translateY(-5px);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.card-header i {
    font-size: 1.5rem;
    color: var(--primary);
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

select, input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border 0.3s;
}

select:focus, input:focus {
    border-color: var(--primary);
    outline: none;
}

.btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px 25px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

.results-card {
    flex: 1;
    min-width: 300px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 25px;
}

.results-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.results-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
}

.name-item {
    background: #f8f9fa;
    padding: 12px 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.name-item:hover {
    background: #e9ecef;
    transform: scale(1.02);
}

.name-text {
    font-weight: 500;
}

.name-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.2s;
}

.action-btn:hover {
    color: var(--secondary);
}

.categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.category-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.category-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.category-desc {
    color: #666;
    font-size: 0.9rem;
}

.counter {
    background: rgba(255, 255, 255, 0.1);
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.ad-space {
    background: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin: 20px 0;
    color: #666;
    font-style: italic;
}

@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    
    .generator-card, .results-card {
        min-width: 100%;
    }
    
    .common-header nav {
        flex-direction: column;
        gap: 10px;
    }
}