:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --text-color: #e0e0e0;
    --accent-color: #ff9800;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1000px;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

h1 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

.stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.stat-box {
    background: var(--card-bg);
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border: 1px solid #333;
}

.stat-box .label {
    display: block;
    font-size: 0.9rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-box .value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.category-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #333;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,123,255,0.2);
    border-color: var(--primary-color);
}

.category-card .icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.generate-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    transition: background 0.2s;
}

.generate-btn:hover {
    background: #0056b3;
}

.generate-btn:disabled {
    background: #333;
    cursor: not-allowed;
    color: #666;
}

.result-section {
    margin-top: 40px;
    animation: fadeIn 0.5s ease-out;
}

.hidden {
    display: none;
}

.result-card {
    background: #252525;
    padding: 25px;
    border-radius: 15px;
    border: 2px dashed var(--success-color);
    position: relative;
}

.copy-btn {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-left: 10px;
    cursor: pointer;
}

.copy-btn:hover {
    background: #5a6268;
}

.history-section {
    margin-top: 50px;
}

#history-list {
    list-style: none;
    padding: 0;
}

#history-list li {
    background: var(--card-bg);
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.history-tag {
    background: var(--primary-color);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    margin-right: 10px;
}

footer {
    text-align: center;
    margin-top: 50px;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
