.statgen-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
}

.statgen-header {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 1.5rem;
}

.statgen-header h1 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.generator-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.input-section {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.output-section {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    max-height: 80vh;
    overflow-y: auto;
}

/* D&D Stat Block Styling */
.stat-block {
    font-family: 'Noto Sans', 'Myriad Pro', Calibri, Helvetica, Arial, sans-serif;
    background: #fdf1dc;
    padding: 1rem;
    border-radius: 5px;
    color: #222;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
    position: relative;
}

.stat-block::before,
.stat-block::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 4px;
    background: #e69a28;
}

.stat-block::before {
    top: 0;
}

.stat-block::after {
    bottom: 0;
}

.stat-block h1 {
    font-size: 1.4rem;
    color: #922610;
    font-variant: small-caps;
    font-weight: bold;
    margin: 0 0 0.5rem;
    border-bottom: 1px solid #922610;
    padding-bottom: 0.3rem;
}

.stat-block .type {
    font-style: italic;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.stat-block .attributes {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.stat-block .attribute {
    background: rgba(0, 0, 0, 0.05);
    padding: 0.5rem;
    border-radius: 3px;
}

.stat-block .attribute-name {
    font-weight: bold;
    font-size: 0.8rem;
}

.stat-block .attribute-value {
    font-size: 1.1rem;
}

.stat-block .attribute-mod {
    font-size: 0.8rem;
    color: #666;
}

.stat-block .property-line {
    margin: 0.5rem 0;
    border-bottom: 1px solid #e69a28;
    padding-bottom: 0.3rem;
}

.stat-block .property-name {
    font-weight: bold;
    color: #922610;
}

.stat-block .actions {
    margin-top: 1rem;
}

.stat-block .actions-title {
    font-size: 1.1rem;
    color: #922610;
    font-variant: small-caps;
    font-weight: bold;
    margin: 0.5rem 0;
    border-bottom: 1px solid #922610;
}

.stat-block .action {
    margin: 0.5rem 0;
}

.stat-block .action-name {
    font-weight: bold;
    font-style: italic;
}

/* Form Styling */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #fff;
}

.form-control {
    width: 100%;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #fff;
    font-size: 0.9rem;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-control:focus {
    outline: none;
    border-color: var(--light-purple);
    box-shadow: 0 0 0 2px rgba(111, 66, 193, 0.25);
    background: rgba(0, 0, 0, 0.2);
}

/* Datalist Input Styling */
input[list] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255, 255, 255, 0.5)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    padding-right: 2rem;
}

input[list]::-webkit-calendar-picker-indicator {
    opacity: 0;
}

.nav-link {
    color: #fff !important;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--stellar-light-purple) !important;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 2rem;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .generator-layout {
        grid-template-columns: 1fr;
    }
    .statgen-content {
        grid-template-columns: 1fr;
    }
}

/* Typing Animation */
@keyframes blink {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.typing-effect {
    position: relative;
}

.typing-effect::placeholder {
    opacity: 1 !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

.typing-effect.animated::after {
    content: '|';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--stellar-purple);
    animation: blink 1s infinite;
}

.typing-effect:focus::after {
    display: none;
}

.dnd-tools-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
}

.dnd-tools-header {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 1.5rem;
}

.dnd-tools-header h1 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.dnd-tools-content {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Tab Navigation Styling */
.nav-tabs {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
}

.nav-tabs .nav-link {
    color: rgba(255, 255, 255, 0.7) !important;
    border: none;
    padding: 0.75rem 1.5rem;
    margin-right: 0.5rem;
    border-radius: 5px 5px 0 0;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1);
    border: none;
}

.nav-tabs .nav-link.active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-bottom: 2px solid var(--stellar-light-purple);
}

.tab-content {
    padding: 1rem 0;
}

.tab-pane {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* Magic Item Block Styling */
.magic-item-block {
    font-family: 'Noto Sans', 'Myriad Pro', Calibri, Helvetica, Arial, sans-serif;
    background: #fdf1dc;
    padding: 1.5rem;
    border-radius: 5px;
    color: #222;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
    position: relative;
}

.magic-item-block::before,
.magic-item-block::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 4px;
    background: #7851a9;
}

.magic-item-block::before {
    top: 0;
}

.magic-item-block::after {
    bottom: 0;
}

.magic-item-block h2 {
    font-size: 1.4rem;
    color: #7851a9;
    font-variant: small-caps;
    font-weight: bold;
    margin: 0 0 0.5rem;
    border-bottom: 1px solid #7851a9;
    padding-bottom: 0.3rem;
}

.magic-item-block .item-property {
    margin: 0.5rem 0;
    padding-bottom: 0.3rem;
}

.magic-item-block .property-name {
    font-weight: bold;
    color: #7851a9;
}

.magic-item-block .item-description {
    margin-top: 1rem;
    font-style: italic;
    line-height: 1.6;
}

/* Character Backstory Block Styling */
.backstory-block {
    font-family: 'Noto Sans', 'Myriad Pro', Calibri, Helvetica, Arial, sans-serif;
    background: #fdf1dc;
    padding: 1.5rem;
    border-radius: 5px;
    color: #222;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
    position: relative;
}

.backstory-block::before,
.backstory-block::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 4px;
    background: #2c5545;
}

.backstory-block::before {
    top: 0;
}

.backstory-block::after {
    bottom: 0;
}

.backstory-block h2 {
    font-size: 1.4rem;
    color: #2c5545;
    font-variant: small-caps;
    font-weight: bold;
    margin: 0 0 0.5rem;
    border-bottom: 1px solid #2c5545;
    padding-bottom: 0.3rem;
}

.backstory-block .character-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: rgba(44, 85, 69, 0.1);
    border-radius: 5px;
}

.backstory-block .info-item {
    font-size: 0.9rem;
}

.backstory-block .info-label {
    font-weight: bold;
    color: #2c5545;
}

.backstory-block .backstory-text {
    line-height: 1.8;
    margin-top: 1rem;
}

.backstory-block .plot-hooks {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(44, 85, 69, 0.3);
}

.backstory-block .plot-hooks h3 {
    color: #2c5545;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.backstory-block .plot-hook-item {
    margin: 0.5rem 0;
    padding-left: 1rem;
    border-left: 2px solid rgba(44, 85, 69, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .dnd-tools-content {
        padding: 1rem;
    }

    .nav-tabs .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .character-info {
        grid-template-columns: 1fr;
    }

    .tab-content {
        padding: 0.5rem 0;
    }

    .tab-pane {
        grid-template-columns: 1fr;
    }
}

/* Puzzle Block Styling */
.puzzle-content {
    font-family: 'Noto Sans', 'Myriad Pro', Calibri, Helvetica, Arial, sans-serif;
    background: #fdf1dc;
    padding: 1.5rem;
    border-radius: 5px;
    color: #222;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
    position: relative;
}

.puzzle-content::before,
.puzzle-content::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 4px;
    background: #e69a28;
}

.puzzle-content::before {
    top: 0;
}

.puzzle-content::after {
    bottom: 0;
}

.puzzle-title {
    font-size: 1.4rem;
    color: #922610;
    font-variant: small-caps;
    font-weight: bold;
    margin: 0 0 1rem;
    border-bottom: 1px solid #922610;
    padding-bottom: 0.5rem;
}

.puzzle-section {
    margin: 1rem 0;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.puzzle-section:last-child {
    border-bottom: none;
}

.puzzle-section h4 {
    color: #922610;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.puzzle-meta {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e69a28;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.difficulty-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.9rem;
    font-weight: bold;
}

.difficulty-badge.easy {
    background: #4CAF50;
    color: white;
}

.difficulty-badge.medium {
    background: #FF9800;
    color: white;
}

.difficulty-badge.hard {
    background: #f44336;
    color: white;
}

/* Trap Block Styling */
.trap-content {
    font-family: 'Noto Sans', 'Myriad Pro', Calibri, Helvetica, Arial, sans-serif;
    background: #fdf1dc;
    padding: 1.5rem;
    border-radius: 5px;
    color: #222;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
    position: relative;
}

.trap-content::before,
.trap-content::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 4px;
    background: #e69a28;
}

.trap-content::before {
    top: 0;
}

.trap-content::after {
    bottom: 0;
}

.trap-title {
    font-size: 1.4rem;
    color: #922610;
    font-variant: small-caps;
    font-weight: bold;
    margin: 0 0 1rem;
    border-bottom: 1px solid #922610;
    padding-bottom: 0.5rem;
}

.trap-section {
    margin: 1rem 0;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.trap-section:last-child {
    border-bottom: none;
}

.trap-section h4 {
    color: #922610;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.trap-checks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.check-item {
    background: rgba(0, 0, 0, 0.05);
    padding: 0.5rem;
    border-radius: 3px;
}

.trap-meta {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e69a28;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.environment-badge,
.lethality-badge,
.type-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.9rem;
    font-weight: bold;
}

.environment-badge {
    background: #607D8B;
    color: white;
}

.lethality-badge.setback {
    background: #4CAF50;
    color: white;
}

.lethality-badge.dangerous {
    background: #FF9800;
    color: white;
}

.lethality-badge.deadly {
    background: #f44336;
    color: white;
}

.type-badge {
    background: #9C27B0;
    color: white;
}

/* Shop Block Styling */
.shop-content {
    font-family: 'Noto Sans', 'Myriad Pro', Calibri, Helvetica, Arial, sans-serif;
    background: #fdf1dc;
    padding: 1.5rem;
    border-radius: 5px;
    color: #222;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
    position: relative;
}

.shop-content::before,
.shop-content::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 4px;
    background: #e69a28;
}

.shop-content::before {
    top: 0;
}

.shop-content::after {
    bottom: 0;
}

.shop-title {
    font-size: 1.4rem;
    color: #922610;
    font-variant: small-caps;
    font-weight: bold;
    margin: 0 0 1rem;
    border-bottom: 1px solid #922610;
    padding-bottom: 0.5rem;
}

.shop-section {
    margin: 1rem 0;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.shop-section:last-child {
    border-bottom: none;
}

.shop-section h4 {
    color: #922610;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.shopkeeper-info {
    background: rgba(0, 0, 0, 0.05);
    padding: 1rem;
    border-radius: 5px;
    margin-top: 0.5rem;
}

.shopkeeper-info p {
    margin: 0.5rem 0;
}

.inventory-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
}

.inventory-table th,
.inventory-table td {
    padding: 0.5rem;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.inventory-table th {
    background: rgba(0, 0, 0, 0.05);
    font-weight: bold;
}

.inventory-table tr:last-child td {
    border-bottom: none;
}

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

.special-item {
    background: rgba(0, 0, 0, 0.05);
    padding: 1rem;
    border-radius: 5px;
}

.special-item h5 {
    color: #922610;
    margin: 0 0 0.5rem;
}

.special-item p {
    margin: 0.25rem 0;
}

.shop-meta {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e69a28;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.shop-type-badge,
.town-size-badge,
.level-range-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.9rem;
    font-weight: bold;
}

.shop-type-badge {
    background: #2196F3;
    color: white;
}

.town-size-badge {
    background: #795548;
    color: white;
}

.level-range-badge {
    background: #673AB7;
    color: white;
}

/* Responsive Design for New Components */
@media (max-width: 768px) {
    .trap-checks {
        grid-template-columns: 1fr;
    }

    .special-items-list {
        grid-template-columns: 1fr;
    }

    .inventory-table {
        display: block;
        overflow-x: auto;
    }
}

/* Loading and Error States for New Components */
.puzzle-block .loading,
.trap-block .loading,
.shop-block .loading {
    text-align: center;
    padding: 2rem;
}

.puzzle-block .error,
.trap-block .error,
.shop-block .error {
    background: #ffebee;
    color: #c62828;
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
}

/* NPC Block Styling */
.npc-content {
    font-family: 'Noto Sans', 'Myriad Pro', Calibri, Helvetica, Arial, sans-serif;
    background: #fdf1dc;
    padding: 1.5rem;
    border-radius: 5px;
    color: #222;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
    position: relative;
}

.npc-content::before,
.npc-content::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 4px;
    background: #58180D;
}

.npc-content::before {
    top: 0;
}

.npc-content::after {
    bottom: 0;
}

.npc-content .npc-title {
    font-size: 1.4rem;
    color: #58180D;
    font-variant: small-caps;
    font-weight: bold;
    margin: 0 0 1rem;
    border-bottom: 1px solid #58180D;
    padding-bottom: 0.5rem;
}

.npc-section {
    margin: 1rem 0;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.npc-section:last-child {
    border-bottom: none;
}

.npc-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #58180D;
}

.npc-tag {
    background: rgba(88, 24, 13, 0.1);
    color: #58180D;
    padding: 0.25rem 0.75rem;
    border-radius: 3px;
    font-size: 0.9rem;
    font-weight: bold;
}

/* Feat Block Styling */
.feat-content {
    font-family: 'Noto Sans', 'Myriad Pro', Calibri, Helvetica, Arial, sans-serif;
    background: #fdf1dc;
    padding: 1.5rem;
    border-radius: 5px;
    color: #222;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
    position: relative;
}

.feat-content::before,
.feat-content::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 4px;
    background: #4B0082;
}

.feat-content::before {
    top: 0;
}

.feat-content::after {
    bottom: 0;
}

.feat-content .feat-title {
    font-size: 1.4rem;
    color: #4B0082;
    font-variant: small-caps;
    font-weight: bold;
    margin: 0 0 1rem;
    border-bottom: 1px solid #4B0082;
    padding-bottom: 0.5rem;
}

.feat-section {
    margin: 1rem 0;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.feat-section:last-child {
    border-bottom: none;
}

.feat-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #4B0082;
}

.feat-tag {
    background: rgba(75, 0, 130, 0.1);
    color: #4B0082;
    padding: 0.25rem 0.75rem;
    border-radius: 3px;
    font-size: 0.9rem;
    font-weight: bold;
}

/* Quest Block Styling */
.quest-content {
    font-family: 'Noto Sans', 'Myriad Pro', Calibri, Helvetica, Arial, sans-serif;
    background: #fdf1dc;
    padding: 1.5rem;
    border-radius: 5px;
    color: #222;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
    position: relative;
}

.quest-content::before,
.quest-content::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 4px;
    background: #2C5545;
}

.quest-content::before {
    top: 0;
}

.quest-content::after {
    bottom: 0;
}

.quest-content .quest-title {
    font-size: 1.4rem;
    color: #2C5545;
    font-variant: small-caps;
    font-weight: bold;
    margin: 0 0 1rem;
    border-bottom: 1px solid #2C5545;
    padding-bottom: 0.5rem;
}

.quest-section {
    margin: 1rem 0;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.quest-section:last-child {
    border-bottom: none;
}

.quest-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #2C5545;
}

.quest-tag {
    background: rgba(44, 85, 69, 0.1);
    color: #2C5545;
    padding: 0.25rem 0.75rem;
    border-radius: 3px;
    font-size: 0.9rem;
    font-weight: bold;
}

/* Responsive Design for New Components */
@media (max-width: 768px) {
    .npc-meta,
    .feat-meta,
    .quest-meta {
        flex-direction: column;
    }

    .npc-tag,
    .feat-tag,
    .quest-tag {
        width: fit-content;
    }
}

/* Name Generator Styles */
.name-block {
    font-family: 'Noto Sans', 'Myriad Pro', Calibri, Helvetica, Arial, sans-serif;
    background: #fdf1dc;
    padding: 1.5rem;
    border-radius: 5px;
    color: #222;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
    position: relative;
}

.name-block::before,
.name-block::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 4px;
    background: #7851a9;
}

.name-block::before {
    top: 0;
}

.name-block::after {
    bottom: 0;
}

.name-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    padding: 0.5rem;
}

.name-entry {
    background: rgba(120, 81, 169, 0.1);
    border: 1px solid rgba(120, 81, 169, 0.2);
    border-radius: 8px;
    padding: 1rem;
    transition: transform 0.2s ease-in-out;
}

.name-entry:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background: rgba(120, 81, 169, 0.15);
}

.name-title {
    color: #7851a9;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-family: var(--fantasy-font);
    font-variant: small-caps;
    font-weight: bold;
    border-bottom: 1px solid rgba(120, 81, 169, 0.2);
    padding-bottom: 0.3rem;
}

.name-meaning {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: #222;
    line-height: 1.4;
}

.name-pronunciation {
    font-size: 0.9rem;
    color: #666;
    font-family: monospace;
    background: rgba(255, 255, 255, 0.5);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    display: inline-block;
}

/* Name Generator Form Styles */
.name-gen-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.name-gen-form-grid .form-group {
    margin-bottom: 0;
}

#nameKeywords {
    grid-column: 1 / -1;
}

/* Make select inputs editable */
.form-control[list] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255, 255, 255, 0.5)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    padding-right: 2rem;
}

/* Loading Spinner for Name Generator */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.loading-spinner::after {
    content: "";
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error Message Styling */
.error-message {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--error-bg);
    border: 1px solid var(--error-border);
    border-radius: 8px;
    color: var(--error-text);
}

.error-message i {
    font-size: 1.5rem;
} 