:root {
--worldbuilding-primary: #2C5282;
--worldbuilding-secondary: #FFAB02;
--worldbuilding-success: #48BB78;
--worldbuilding-warning: #ED8936;
--worldbuilding-error: #E53E3E;
--worldbuilding-bg: #F7FAFC;
--worldbuilding-card: #FFFFFF;
--worldbuilding-border: #E2E8F0;
--worldbuilding-text: #2D3748;
--worldbuilding-text-light: #718096;
--worldbuilding-shadow: rgba(0, 0, 0, 0.1);
--worldbuilding-shadow-hover: rgba(0, 0, 0, 0.15);
/* Worldbuilding-specific colors */
--worldbuilding-accent: #805AD5;
--worldbuilding-magic: #9F7AEA;
--worldbuilding-fantasy: #38B2AC;
--worldbuilding-ancient: #D69E2E;
--worldbuilding-gradient: linear-gradient(135deg, var(--worldbuilding-primary), var(--worldbuilding-accent));

/* Category colors */
--category-characters: #E53E3E;
--category-locations: #38B2AC;
--category-systems: #805AD5;
--category-timeline: #D69E2E;
--category-cultures: #9F7AEA;
--category-objects: #4299E1;
--category-plot: #48BB78;
--category-notes: #718096;

/* Importance levels */
--importance-critical: #E53E3E;
--importance-major: #ED8936;
--importance-minor: #4299E1;
--importance-reference: #718096;

/* Status colors */
--status-concept: #718096;
--status-developing: #4299E1;
--status-complete: #48BB78;
--status-needs-review: #ED8936;
}
/* Base Styles */
body {
background: var(--worldbuilding-bg);
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
margin: 0;
padding: 0;
}
/* Navigation - Inherited from shared patterns */
.nav {
background: var(--worldbuilding-card);
border-bottom: 1px solid var(--worldbuilding-border);
box-shadow: 0 2px 10px var(--worldbuilding-shadow);
position: sticky;
top: 0;
z-index: 1000;
}
.nav-container {
max-width: 1400px;
margin: 0 auto;
padding: 0 1rem;
display: flex;
justify-content: space-between;
align-items: center;
height: 70px;
}
.nav-brand {
display: flex;
align-items: center;
gap: 0.75rem;
}
.nav-logo {
width: 40px;
height: 40px;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.nav-title {
color: var(--worldbuilding-primary);
font-weight: 600;
font-size: 1.1rem;
}
.nav-links {
display: flex;
align-items: center;
gap: 1rem;
margin: 0;
padding: 0;
list-style: none;
}
.nav-link {
padding: 0.5rem 1rem;
text-decoration: none;
color: var(--worldbuilding-text);
font-weight: 500;
border-radius: 6px;
transition: all 0.3s ease;
}
.nav-link:hover {
background: var(--worldbuilding-border);
color: var(--worldbuilding-primary);
}
.nav-link.active {
background: var(--worldbuilding-primary);
color: white;
}
.back-to-site {
background: var(--worldbuilding-secondary);
color: white !important;
font-weight: 600;
}
.back-to-site:hover {
background: #E69500;
}
.auth-nav-link {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.5rem 1rem;
color: var(--worldbuilding-error);
text-decoration: none;
font-weight: 500;
border-radius: 6px;
transition: all 0.3s ease;
}
.auth-nav-link:hover {
background: rgba(229, 62, 62, 0.1);
}
/* Mobile Toggle - Hidden by default, shown on mobile or with 5+ features */
.mobile-toggle {
display: none;
flex-direction: column;
justify-content: space-around;
width: 30px;
height: 30px;
background: transparent;
border: none;
cursor: pointer;
padding: 0;
}
/* Show hamburger when customer has 5+ features (even on desktop) */
.nav-container.has-many-features .mobile-toggle {
display: flex;
}
/* Show hamburger when customer has 5+ features, hide some nav links on desktop */
.nav-container.has-many-features .nav-links {
display: flex;
}
@media (min-width: 769px) {
.nav-container.has-many-features .nav-links {
position: fixed;
top: 70px;
left: 0;
width: 100%;
background: var(--worldbuilding-card);
border-top: 1px solid var(--worldbuilding-border);
box-shadow: 0 2px 10px var(--worldbuilding-shadow);
flex-direction: column;
padding: 1rem 0;
transform: translateX(-100%);
transition: transform 0.3s ease;
z-index: 999;
}
.nav-container.has-many-features .nav-links.active {
    transform: translateX(0);
}

.nav-container.has-many-features .nav-link {
    width: 100%;
    text-align: center;
    padding: 1rem;
    border-radius: 0;
}
}
.mobile-toggle span {
width: 100%;
height: 3px;
background: var(--worldbuilding-primary);
border-radius: 2px;
transition: all 0.3s ease;
}
.mobile-toggle.active span:nth-child(1) {
transform: rotate(45deg) translate(7px, 7px);
}
.mobile-toggle.active span:nth-child(2) {
opacity: 0;
}
.mobile-toggle.active span:nth-child(3) {
transform: rotate(-45deg) translate(7px, -7px);
}
/* Main Worldbuilding Container */
.worldbuilding-main {
padding: 2rem;
max-width: 1400px;
margin: 0 auto;
min-height: calc(100vh - 70px);
}
/* Loading State */
.loading-state {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 60vh;
text-align: center;
}
.loading-spinner {
width: 40px;
height: 40px;
border: 4px solid var(--worldbuilding-border);
border-top: 4px solid var(--worldbuilding-primary);
border-radius: 50%;
animation: spin 1s linear infinite;
margin-bottom: 1rem;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
/* No Access State */
.no-access-state {
display: flex;
align-items: center;
justify-content: center;
min-height: 60vh;
padding: 2rem;
}
.access-prompt {
text-align: center;
background: var(--worldbuilding-card);
padding: 3rem;
border-radius: 16px;
box-shadow: 0 10px 40px var(--worldbuilding-shadow);
max-width: 700px;
}
.access-prompt h2 {
color: var(--worldbuilding-primary);
margin-bottom: 1rem;
font-size: 2rem;
}
.feature-benefits {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 1.5rem;
margin: 2rem 0;
text-align: left;
}
.benefit {
display: flex;
align-items: flex-start;
gap: 1rem;
padding: 1.5rem;
background: var(--worldbuilding-bg);
border-radius: 12px;
border-left: 4px solid var(--worldbuilding-accent);
}
.benefit-icon {
font-size: 2rem;
flex-shrink: 0;
margin-top: 0.25rem;
}
.benefit h4 {
margin: 0 0 0.5rem 0;
color: var(--worldbuilding-primary);
font-size: 1.1rem;
}
.benefit p {
margin: 0;
color: var(--worldbuilding-text-light);
line-height: 1.5;
}
.upgrade-btn {
background: var(--worldbuilding-gradient);
color: white;
padding: 1rem 2rem;
border: none;
border-radius: 12px;
font-size: 1.1rem;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
margin-top: 1rem;
}
.upgrade-btn:hover {
transform: translateY(-2px);
box-shadow: 0 8px 25px rgba(128, 90, 213, 0.3);
}
/* Worldbuilding Panel */
.worldbuilding-panel {
animation: fadeInUp 0.6s ease-out;
}
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* Worldbuilding Header */
.worldbuilding-header {
background: var(--worldbuilding-card);
padding: 2rem;
border-radius: 16px;
box-shadow: 0 4px 20px var(--worldbuilding-shadow);
margin-bottom: 2rem;
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 1rem;
background: linear-gradient(135deg, rgba(44, 82, 130, 0.02) 0%, rgba(128, 90, 213, 0.02) 100%);
}
.header-content h1 {
color: var(--worldbuilding-primary);
margin: 0 0 0.5rem 0;
font-size: 2.5rem;
font-weight: 700;
}
.header-content p {
color: var(--worldbuilding-text-light);
margin: 0;
font-size: 1.1rem;
}
.header-actions {
display: flex;
gap: 1rem;
flex-wrap: wrap;
}
.primary-btn {
background: var(--worldbuilding-gradient);
color: white;
padding: 0.875rem 1.75rem;
border: none;
border-radius: 12px;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
}
.primary-btn:hover {
transform: translateY(-2px);
box-shadow: 0 8px 25px rgba(128, 90, 213, 0.3);
}
.secondary-btn {
background: white;
color: var(--worldbuilding-primary);
border: 2px solid var(--worldbuilding-border);
padding: 0.875rem 1.75rem;
border-radius: 12px;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
}
.secondary-btn:hover {
border-color: var(--worldbuilding-primary);
background: rgba(44, 82, 130, 0.05);
transform: translateY(-1px);
}
/* Stats Bar */
.stats-bar {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 1.5rem;
margin-bottom: 2rem;
}
.stat-item {
background: var(--worldbuilding-card);
padding: 1.5rem;
border-radius: 12px;
box-shadow: 0 4px 20px var(--worldbuilding-shadow);
text-align: center;
transition: all 0.3s ease;
border-left: 4px solid var(--worldbuilding-accent);
}
.stat-item:hover {
transform: translateY(-2px);
box-shadow: 0 8px 30px var(--worldbuilding-shadow-hover);
}
.stat-number {
display: block;
font-size: 2.5rem;
font-weight: bold;
color: var(--worldbuilding-primary);
margin-bottom: 0.5rem;
}
.stat-label {
color: var(--worldbuilding-text-light);
font-weight: 500;
text-transform: uppercase;
font-size: 0.875rem;
letter-spacing: 0.5px;
}
/* Category Tabs */
.category-tabs {
display: flex;
gap: 0.5rem;
margin-bottom: 2rem;
flex-wrap: wrap;
background: var(--worldbuilding-card);
padding: 1rem;
border-radius: 12px;
box-shadow: 0 2px 10px var(--worldbuilding-shadow);
}
.tab-btn {
background: transparent;
border: 2px solid transparent;
padding: 0.75rem 1.25rem;
border-radius: 8px;
font-size: 0.9rem;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
color: var(--worldbuilding-text-light);
white-space: nowrap;
}
.tab-btn:hover {
background: rgba(128, 90, 213, 0.1);
color: var(--worldbuilding-accent);
}
.tab-btn.active {
background: var(--worldbuilding-gradient);
color: white;
border-color: var(--worldbuilding-accent);
}
/* Search and Filter Bar */
.search-filter-bar {
background: var(--worldbuilding-card);
padding: 1.5rem;
border-radius: 12px;
box-shadow: 0 4px 20px var(--worldbuilding-shadow);
margin-bottom: 2rem;
}
.search-container {
position: relative;
margin-bottom: 1rem;
}
.search-input {
width: 100%;
padding: 1rem 3rem 1rem 1rem;
border: 2px solid var(--worldbuilding-border);
border-radius: 12px;
font-size: 1rem;
transition: all 0.3s ease;
box-sizing: border-box;
}
.search-input:focus {
outline: none;
border-color: var(--worldbuilding-primary);
box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.1);
}
.search-icon {
position: absolute;
right: 1rem;
top: 50%;
transform: translateY(-50%);
color: var(--worldbuilding-text-light);
font-size: 1.2rem;
}
.filter-controls {
display: flex;
gap: 1rem;
flex-wrap: wrap;
align-items: center;
}
.filter-select {
padding: 0.75rem 1rem;
border: 2px solid var(--worldbuilding-border);
border-radius: 8px;
font-size: 0.9rem;
background: white;
cursor: pointer;
transition: all 0.3s ease;
min-width: 150px;
}
.filter-select:focus {
outline: none;
border-color: var(--worldbuilding-primary);
}
.clear-filters {
background: var(--worldbuilding-error);
color: white;
padding: 0.75rem 1rem;
border: none;
border-radius: 8px;
font-size: 0.9rem;
cursor: pointer;
transition: all 0.3s ease;
font-weight: 600;
}
.clear-filters:hover {
background: #C53030;
}
/* Bulk Actions Bar */
.bulk-actions-bar {
background: var(--worldbuilding-accent);
color: white;
padding: 1rem 1.5rem;
border-radius: 12px;
margin-bottom: 1.5rem;
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 1rem;
box-shadow: 0 4px 20px rgba(128, 90, 213, 0.3);
}
.bulk-selection-info {
font-weight: 600;
font-size: 1.1rem;
}
.bulk-actions {
display: flex;
gap: 0.75rem;
flex-wrap: wrap;
}
.bulk-btn {
background: rgba(255, 255, 255, 0.2);
color: white;
border: 1px solid rgba(255, 255, 255, 0.3);
padding: 0.5rem 1rem;
border-radius: 6px;
font-size: 0.9rem;
cursor: pointer;
transition: all 0.3s ease;
font-weight: 500;
}
.bulk-btn:hover {
background: rgba(255, 255, 255, 0.3);
border-color: rgba(255, 255, 255, 0.5);
}
.bulk-btn.delete-btn {
background: var(--worldbuilding-error);
border-color: var(--worldbuilding-error);
}
.bulk-btn.delete-btn:hover {
background: #C53030;
}
/* Elements Container */
.elements-container {
min-height: 400px;
}
/* Elements Grid */
.elements-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
gap: 1.5rem;
margin-bottom: 2rem;
}
/* Elements List View */
.elements-list {
display: flex;
flex-direction: column;
gap: 1rem;
margin-bottom: 2rem;
}
.elements-list .element-card {
display: flex;
align-items: center;
padding: 1.5rem;
background: var(--worldbuilding-card);
border-radius: 12px;
box-shadow: 0 2px 10px var(--worldbuilding-shadow);
}
.elements-list .element-thumbnail,
.elements-list .element-icon-display {
width: 100px;
height: 100px;
margin-right: 1.5rem;
flex-shrink: 0;
}
.elements-list .element-info {
flex: 1;
}
/* Element Card */
.element-card {
background: var(--worldbuilding-card);
border-radius: 16px;
box-shadow: 0 4px 20px var(--worldbuilding-shadow);
transition: all 0.3s ease;
overflow: hidden;
position: relative;
cursor: pointer;
border: 2px solid transparent;
}
.element-card:hover {
transform: translateY(-4px);
box-shadow: 0 12px 40px var(--worldbuilding-shadow-hover);
border-color: var(--worldbuilding-accent);
}
.element-card.selected {
border-color: var(--worldbuilding-accent);
box-shadow: 0 8px 30px rgba(128, 90, 213, 0.3);
}
/* Element Selection */
.element-selection {
position: absolute;
top: 0.75rem;
left: 0.75rem;
z-index: 3;
}
.element-checkbox {
width: 20px;
height: 20px;
border-radius: 4px;
border: 2px solid white;
background: rgba(0, 0, 0, 0.5);
cursor: pointer;
appearance: none;
transition: all 0.3s ease;
}
.element-checkbox:checked {
background: var(--worldbuilding-accent);
border-color: var(--worldbuilding-accent);
}
.element-checkbox:checked::after {
content: "✓";
color: white;
font-size: 14px;
font-weight: bold;
position: absolute;
top: -2px;
left: 2px;
}
/* Element Thumbnail/Icon */
.element-thumbnail {
position: relative;
width: 100%;
height: 200px;
overflow: hidden;
}
.element-thumbnail img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.3s ease;
}
.element-card:hover .element-thumbnail img {
transform: scale(1.05);
}
.element-icon-display {
position: relative;
width: 100%;
height: 200px;
display: flex;
align-items: center;
justify-content: center;
background: linear-gradient(135deg, var(--worldbuilding-bg), rgba(128, 90, 213, 0.1));
border-bottom: 1px solid var(--worldbuilding-border);
}
.category-icon {
font-size: 4rem;
opacity: 0.7;
transition: all 0.3s ease;
}
.element-card:hover .category-icon {
transform: scale(1.1);
opacity: 1;
}
/* Element Overlay */
.element-overlay {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.7);
opacity: 0;
transition: opacity 0.3s ease;
display: flex;
align-items: center;
justify-content: center;
}
.element-card:hover .element-overlay {
opacity: 1;
}
.element-actions {
display: flex;
gap: 0.5rem;
}
.action-btn {
width: 40px;
height: 40px;
border: none;
border-radius: 8px;
cursor: pointer;
transition: all 0.3s ease;
display: flex;
align-items: center;
justify-content: center;
font-size: 1rem;
background: rgba(255, 255, 255, 0.9);
color: var(--worldbuilding-text);
}
.action-btn:hover {
background: white;
transform: scale(1.1);
}
.edit-btn:hover {
color: var(--worldbuilding-success);
}
.duplicate-btn:hover {
color: var(--worldbuilding-primary);
}
.delete-btn:hover {
color: var(--worldbuilding-error);
}
/* Element Info */
.element-info {
padding: 1.25rem;
}
.element-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 0.75rem;
gap: 1rem;
}
.element-title {
margin: 0;
font-size: 1.1rem;
font-weight: 600;
color: var(--worldbuilding-text);
line-height: 1.3;
flex: 1;
}
.element-badges {
display: flex;
flex-direction: column;
gap: 0.25rem;
align-items: flex-end;
flex-shrink: 0;
}
.badge {
padding: 0.25rem 0.5rem;
border-radius: 12px;
font-size: 0.7rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
white-space: nowrap;
}
/* Importance badges */
.badge.importance-critical {
background: rgba(229, 62, 62, 0.1);
color: var(--importance-critical);
}
.badge.importance-major {
background: rgba(237, 137, 54, 0.1);
color: var(--importance-major);
}
.badge.importance-minor {
background: rgba(66, 153, 225, 0.1);
color: var(--importance-minor);
}
.badge.importance-reference {
background: rgba(113, 128, 150, 0.1);
color: var(--importance-reference);
}
/* Status badges */
.badge.status-concept {
background: rgba(113, 128, 150, 0.1);
color: var(--status-concept);
}
.badge.status-developing {
background: rgba(66, 153, 225, 0.1);
color: var(--status-developing);
}
.badge.status-complete {
background: rgba(72, 187, 120, 0.1);
color: var(--status-complete);
}
.badge.status-needs-review {
background: rgba(237, 137, 54, 0.1);
color: var(--status-needs-review);
}
.element-meta {
display: flex;
flex-wrap: wrap;
gap: 0.75rem;
margin-bottom: 0.75rem;
font-size: 0.875rem;
color: var(--worldbuilding-text-light);
}
.category-badge {
background: var(--worldbuilding-bg);
padding: 0.25rem 0.75rem;
border-radius: 12px;
font-weight: 500;
}
.element-summary {
margin: 0.75rem 0;
color: var(--worldbuilding-text-light);
line-height: 1.4;
font-size: 0.9rem;
}
.element-tags {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
margin-top: 0.75rem;
}
.tag {
background: rgba(128, 90, 213, 0.1);
color: var(--worldbuilding-accent);
padding: 0.25rem 0.75rem;
border-radius: 12px;
font-size: 0.75rem;
font-weight: 500;
}
.tag.more {
background: var(--worldbuilding-border);
color: var(--worldbuilding-text-light);
}
.series-info {
background: rgba(44, 82, 130, 0.1);
color: var(--worldbuilding-primary);
padding: 0.25rem 0.75rem;
border-radius: 12px;
font-size: 0.75rem;
font-weight: 500;
margin-top: 0.5rem;
display: inline-block;
}
/* Empty States */
.empty-state {
text-align: center;
padding: 4rem 2rem;
background: var(--worldbuilding-card);
border-radius: 16px;
box-shadow: 0 4px 20px var(--worldbuilding-shadow);
}
.empty-icon {
font-size: 4rem;
margin-bottom: 1rem;
opacity: 0.6;
}
.empty-state h3 {
color: var(--worldbuilding-primary);
margin-bottom: 1rem;
font-size: 1.5rem;
}
.empty-state p {
color: var(--worldbuilding-text-light);
margin-bottom: 2rem;
line-height: 1.6;
max-width: 400px;
margin-left: auto;
margin-right: auto;
}
/* Modal Styles */
.modal-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.7);
display: none;
align-items: center;
justify-content: center;
z-index: 10000;
padding: 1rem;
backdrop-filter: blur(4px);
}
.modal-overlay.active {
display: flex;
}
.modal-content {
background: var(--worldbuilding-card);
border-radius: 16px;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
max-height: 90vh;
overflow-y: auto;
animation: modalSlideIn 0.3s ease-out;
}
@keyframes modalSlideIn {
from {
transform: translateY(30px);
opacity: 0;
}
to {
transform: translateY(0);
opacity: 1;
}
}
.element-modal {
max-width: 900px;
width: 90vw;
}
.templates-modal {
max-width: 800px;
width: 90vw;
}
.detail-modal {
max-width: 700px;
width: 90vw;
}
.bulk-edit-modal {
max-width: 600px;
width: 90vw;
}
.delete-modal {
max-width: 500px;
width: 90vw;
}
.modal-header {
padding: 1.5rem;
border-bottom: 1px solid var(--worldbuilding-border);
display: flex;
justify-content: space-between;
align-items: center;
background: linear-gradient(135deg, rgba(44, 82, 130, 0.02) 0%, rgba(128, 90, 213, 0.02) 100%);
border-radius: 16px 16px 0 0;
}
.modal-header h3 {
margin: 0;
color: var(--worldbuilding-primary);
font-size: 1.5rem;
font-weight: 700;
}
.close-modal {
background: rgba(226, 232, 240, 0.2);
border: none;
font-size: 2rem;
color: var(--worldbuilding-text-light);
cursor: pointer;
padding: 0.5rem;
border-radius: 50%;
transition: all 0.3s ease;
width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
}
.close-modal:hover {
background: var(--worldbuilding-error);
color: white;
transform: scale(1.1);
}
.modal-body {
padding: 2rem;
max-height: 70vh;
overflow-y: auto;
}
.modal-footer {
padding: 1.5rem;
border-top: 1px solid var(--worldbuilding-border);
display: flex;
justify-content: flex-end;
gap: 1rem;
}
/* Form Styles */
.form-section {
margin-bottom: 2.5rem;
padding-bottom: 2rem;
border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}
.form-section:last-child {
border-bottom: none;
margin-bottom: 0;
padding-bottom: 0;
}
.form-section h4 {
color: var(--worldbuilding-primary);
margin: 0 0 1.5rem 0;
font-size: 1.3rem;
font-weight: 600;
display: flex;
align-items: center;
gap: 0.5rem;
}
.form-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1rem;
margin-bottom: 1rem;
}
.form-group {
margin-bottom: 1.5rem;
}
.form-group label {
display: block;
margin-bottom: 0.5rem;
color: var(--worldbuilding-text);
font-weight: 600;
}
.form-group input,
.form-group textarea,
.form-group select {
width: 100%;
padding: 0.875rem;
border: 2px solid var(--worldbuilding-border);
border-radius: 8px;
font-size: 1rem;
transition: all 0.3s ease;
box-sizing: border-box;
background: white;
color: var(--worldbuilding-text);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
outline: none;
border-color: var(--worldbuilding-primary);
box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.1);
background: white;
}
.form-group small {
color: var(--worldbuilding-text-light);
font-size: 0.875rem;
margin-top: 0.5rem;
display: block;
}
.form-group textarea {
resize: vertical;
min-height: 100px;
}
/* Image Upload Styles */
.image-upload-container {
width: 100%;
}
.image-dropzone {
position: relative;
width: 100%;
min-height: 200px;
border: 2px dashed var(--worldbuilding-border);
border-radius: 12px;
transition: all 0.3s ease;
cursor: pointer;
overflow: hidden;
}
.image-dropzone:hover {
border-color: var(--worldbuilding-primary);
background: rgba(44, 82, 130, 0.02);
}
.image-dropzone.dragover {
border-color: var(--worldbuilding-success);
background: rgba(72, 187, 120, 0.1);
transform: scale(1.02);
}
.dropzone-content {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 2rem;
text-align: center;
height: 200px;
}
.dropzone-icon {
font-size: 3rem;
margin-bottom: 1rem;
opacity: 0.6;
}
.dropzone-text p {
margin: 0.25rem 0;
color: var(--worldbuilding-text);
font-weight: 500;
}
.dropzone-subtext {
color: var(--worldbuilding-text-light) !important;
font-size: 0.9rem !important;
}
.browse-link {
color: var(--worldbuilding-primary);
text-decoration: underline;
cursor: pointer;
}
.browse-link:hover {
color: #1A365D;
}
.image-preview {
position: relative;
width: 100%;
height: 200px;
overflow: hidden;
border-radius: 10px;
}
.image-preview img {
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 10px;
}
.image-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.7);
display: flex;
align-items: center;
justify-content: center;
gap: 1rem;
opacity: 0;
transition: opacity 0.3s ease;
}
.image-preview:hover .image-overlay {
opacity: 1;
}
.image-btn {
padding: 0.5rem 1rem;
border: none;
border-radius: 6px;
font-size: 0.9rem;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
}
.change-btn {
background: var(--worldbuilding-primary);
color: white;
}
.change-btn:hover {
background: #1A365D;
transform: translateY(-2px);
}
.remove-btn {
background: var(--worldbuilding-error);
color: white;
}
.remove-btn:hover {
background: #C53030;
transform: translateY(-2px);
}
.upload-progress {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(255, 255, 255, 0.95);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 1rem;
}
.progress-bar {
width: 80%;
height: 8px;
background: var(--worldbuilding-border);
border-radius: 4px;
overflow: hidden;
}
.progress-fill {
height: 100%;
background: var(--worldbuilding-success);
border-radius: 4px;
transition: width 0.3s ease;
width: 0%;
}
.progress-text {
color: var(--worldbuilding-text);
font-weight: 600;
font-size: 0.9rem;
}
/* Relationships Section */
.relationships-container {
position: relative;
}
.relationship-search {
width: 100%;
padding: 0.75rem;
border: 2px solid var(--worldbuilding-border);
border-radius: 6px;
margin-bottom: 0.5rem;
}
.relationship-suggestions {
position: absolute;
top: 100%;
left: 0;
right: 0;
background: white;
border: 1px solid var(--worldbuilding-border);
border-radius: 6px;
box-shadow: 0 4px 15px var(--worldbuilding-shadow);
z-index: 10;
max-height: 200px;
overflow-y: auto;
}
.selected-relationships {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
margin-top: 0.5rem;
}
.relationship-tag {
background: var(--worldbuilding-accent);
color: white;
padding: 0.25rem 0.75rem;
border-radius: 12px;
font-size: 0.8rem;
cursor: pointer;
transition: all 0.3s ease;
}
.relationship-tag:hover {
background: var(--worldbuilding-magic);
}
/* Templates Grid */
.templates-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 1.5rem;
margin: 1.5rem 0;
}
.template-card {
background: var(--worldbuilding-bg);
padding: 1.5rem;
border-radius: 12px;
border: 2px solid var(--worldbuilding-border);
cursor: pointer;
transition: all 0.3s ease;
text-align: center;
}
.template-card:hover {
border-color: var(--worldbuilding-accent);
background: rgba(128, 90, 213, 0.05);
transform: translateY(-2px);
}
.template-icon {
font-size: 2.5rem;
margin-bottom: 1rem;
}
.template-card h4 {
margin: 0 0 0.75rem 0;
color: var(--worldbuilding-primary);
font-size: 1.1rem;
}
.template-card p {
margin: 0;
color: var(--worldbuilding-text-light);
font-size: 0.9rem;
line-height: 1.4;
}
/* Detail Modal Content */
.detail-content {
max-width: none;
}
.detail-header {
display: flex;
gap: 1.5rem;
margin-bottom: 2rem;
align-items: flex-start;
}
.detail-image {
width: 200px;
height: 200px;
object-fit: cover;
border-radius: 12px;
flex-shrink: 0;
}
.detail-info {
flex: 1;
}
.detail-info h2 {
margin: 0 0 1rem 0;
color: var(--worldbuilding-primary);
font-size: 1.75rem;
}
.detail-badges {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
margin-bottom: 1rem;
}
.detail-summary {
margin: 0;
color: var(--worldbuilding-text-light);
font-size: 1.1rem;
line-height: 1.5;
font-style: italic;
}
.detail-section {
margin-bottom: 2rem;
padding-bottom: 1.5rem;
border-bottom: 1px solid var(--worldbuilding-border);
}
.detail-section:last-child {
border-bottom: none;
margin-bottom: 0;
padding-bottom: 0;
}
.detail-section h3 {
margin: 0 0 1rem 0;
color: var(--worldbuilding-primary);
font-size: 1.25rem;
}
.detail-section p {
margin: 0;
color: var(--worldbuilding-text);
line-height: 1.6;
}
.detail-fields {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 1rem;
}
.detail-field {
padding: 0.75rem;
background: var(--worldbuilding-bg);
border-radius: 6px;
color: var(--worldbuilding-text);
line-height: 1.4;
}
.detail-field strong {
color: var(--worldbuilding-primary);
}
.detail-relationships {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
}
.detail-tags {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
}
.detail-metadata {
background: var(--worldbuilding-bg);
padding: 1rem;
border-radius: 8px;
color: var(--worldbuilding-text-light);
font-size: 0.9rem;
}
.detail-metadata p {
margin: 0.25rem 0;
}
.detail-metadata strong {
color: var(--worldbuilding-text);
}
/* Delete Preview */
.delete-preview {
margin: 1.5rem 0;
padding: 1rem;
background: var(--worldbuilding-bg);
border-radius: 8px;
}
.delete-element-card {
display: flex;
align-items: center;
gap: 1rem;
padding: 1rem;
background: white;
border-radius: 8px;
}
.delete-element-card img {
width: 60px;
height: 60px;
object-fit: cover;
border-radius: 6px;
}
.delete-icon {
width: 60px;
height: 60px;
display: flex;
align-items: center;
justify-content: center;
font-size: 2rem;
background: var(--worldbuilding-bg);
border-radius: 6px;
}
.delete-info h4 {
margin: 0 0 0.25rem 0;
color: var(--worldbuilding-text);
}
.delete-info p {
margin: 0;
color: var(--worldbuilding-text-light);
font-size: 0.9rem;
}
.delete-element-mini {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.5rem;
background: white;
border-radius: 6px;
margin-bottom: 0.5rem;
}
.delete-element-mini img {
width: 40px;
height: 40px;
object-fit: cover;
border-radius: 4px;
}
.delete-icon-mini {
width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.2rem;
background: var(--worldbuilding-bg);
border-radius: 4px;
}
.delete-more {
text-align: center;
color: var(--worldbuilding-text-light);
font-weight: 600;
padding: 0.5rem;
}
/* Form Actions */
.form-actions {
display: flex;
justify-content: flex-end;
gap: 1rem;
margin-top: 2rem;
padding-top: 2rem;
border-top: 1px solid var(--worldbuilding-border);
}
.danger-btn {
background: var(--worldbuilding-error);
color: white;
padding: 0.875rem 1.75rem;
border: none;
border-radius: 12px;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
}
.danger-btn:hover {
background: #C53030;
transform: translateY(-1px);
}
/* Checkbox Styles */
.checkbox-label {
display: flex;
align-items: center;
gap: 0.75rem;
cursor: pointer;
margin-bottom: 1rem;
}
.checkbox-label input[type="checkbox"] {
width: auto;
margin: 0;
}
.checkmark {
position: relative;
height: 20px;
width: 20px;
background-color: white;
border: 2px solid var(--worldbuilding-border);
border-radius: 4px;
transition: all 0.3s ease;
}
.checkbox-label input[type="checkbox"]:checked + .checkmark {
background-color: var(--worldbuilding-primary);
border-color: var(--worldbuilding-primary);
}
.checkbox-label input[type="checkbox"]:checked + .checkmark:after {
content: "✓";
position: absolute;
left: 3px;
top: -2px;
color: white;
font-size: 14px;
font-weight: bold;
}
/* Bulk Edit Options */
.bulk-edit-options {
background: var(--worldbuilding-bg);
padding: 1.5rem;
border-radius: 8px;
margin: 1rem 0;
}
/* Button Spinner */
.btn-spinner {
animation: spin 1s linear infinite;
font-size: 1.2rem;
}
/* Warning Text */
.warning-text {
color: var(--worldbuilding-error);
font-weight: 500;
font-style: italic;
}
/* Notification */
.notification {
position: fixed;
top: 100px;
right: 20px;
background: var(--worldbuilding-card);
border-radius: 12px;
box-shadow: 0 8px 30px var(--worldbuilding-shadow);
padding: 1rem 1.5rem;
display: flex;
align-items: center;
gap: 0.75rem;
z-index: 10001;
transform: translateX(400px);
transition: transform 0.3s ease;
max-width: 350px;
border-left: 4px solid var(--worldbuilding-primary);
}
.notification.success {
border-left-color: var(--worldbuilding-success);
}
.notification.error {
border-left-color: var(--worldbuilding-error);
}
.notification.warning {
border-left-color: var(--worldbuilding-warning);
}
.notification.active {
transform: translateX(0);
}
.notification-icon {
font-size: 1.25rem;
}
.notification-message {
color: var(--worldbuilding-text);
font-weight: 500;
}
/* Responsive Design /
@media (max-width: 768px) {
/ Always show hamburger on mobile */
.mobile-toggle {
display: flex !important;
}
/* Mobile navigation menu */
.nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--worldbuilding-card);
    border-top: 1px solid var(--worldbuilding-border);
    box-shadow: 0 2px 10px var(--worldbuilding-shadow);
    flex-direction: column;
    padding: 1rem 0;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
}

.nav-links.active {
    transform: translateX(0);
}

.nav-link {
    width: 100%;
    text-align: center;
    padding: 1rem;
    border-radius: 0;
}

.worldbuilding-main {
    padding: 1rem;
}

.worldbuilding-header {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 1.5rem;
}

.header-content h1 {
    font-size: 2rem;
}

.header-actions {
    justify-content: center;
}

.stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.category-tabs {
    justify-content: center;
}

.tab-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
}

.elements-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.filter-controls {
    flex-direction: column;
    align-items: stretch;
}

.filter-select {
    min-width: auto;
}

.bulk-actions-bar {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
}

.bulk-actions {
    justify-content: center;
}

.modal-content {
    margin: 0.5rem;
    width: calc(100% - 1rem);
    max-height: calc(100vh - 1rem);
}

.modal-body {
    padding: 1.5rem;
}

.form-row {
    grid-template-columns: 1fr;
}

.detail-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.detail-image {
    width: 150px;
    height: 150px;
}

.templates-grid {
    grid-template-columns: 1fr;
}

.notification {
    right: 10px;
    left: 10px;
    max-width: none;
    transform: translateY(-100px);
}

.notification.active {
    transform: translateY(0);
}
@media (max-width: 480px) {
.worldbuilding-main {
padding: 0.5rem;
}
.worldbuilding-header {
    padding: 1rem;
}

.header-content h1 {
    font-size: 1.75rem;
}

.stats-bar {
    grid-template-columns: 1fr;
}

.elements-grid {
    grid-template-columns: 1fr;
}

.stat-number {
    font-size: 2rem;
}

.search-filter-bar {
    padding: 1rem;
}

.modal-header {
    padding: 1rem;
}

.modal-body {
    padding: 1rem;
}

.modal-footer {
    padding: 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
}

.dropzone-content {
    padding: 1.5rem 1rem;
    height: 150px;
}

.dropzone-icon {
    font-size: 2.5rem;
}

.category-tabs {
    flex-wrap: wrap;
    gap: 0.25rem;
}

.tab-btn {
    padding: 0.5rem;
    font-size: 0.75rem;
    min-width: auto;
}

.bulk-actions {
    flex-direction: column;
}

.notification {
    left: 5px;
    right: 5px;
    font-size: 0.8rem;
}
}
/* Print Styles */
@media print {
.worldbuilding-main {
padding: 0;
}
.modal-overlay,
.notification,
.header-actions,
.element-actions,
.search-filter-bar,
.bulk-actions-bar,
.category-tabs {
    display: none !important;
}

.elements-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.element-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid var(--worldbuilding-border);
}

.element-overlay {
    display: none !important;
}
}

.storage-stat {
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid var(--worldbuilding-accent);
}

.storage-stat:hover {
    background: rgba(128, 90, 213, 0.1);
    transform: translateY(-2px);
}

.storage-clickable {
    color: var(--worldbuilding-accent);
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 0.5rem;
    display: block;
}

/* Storage warning states */
.storage-stat.storage-warning {
    border-left-color: var(--worldbuilding-warning);
    background: rgba(237, 137, 54, 0.1);
}

.storage-stat.storage-critical {
    border-left-color: var(--worldbuilding-error);
    background: rgba(229, 62, 62, 0.1);
    animation: pulseRed 2s infinite;
}

@keyframes pulseRed {
    0% { box-shadow: 0 4px 20px var(--worldbuilding-shadow); }
    50% { box-shadow: 0 4px 20px rgba(229, 62, 62, 0.4); }
    100% { box-shadow: 0 4px 20px var(--worldbuilding-shadow); }
}
