MosswartOverlord/static/suitbuilder.css

709 lines
No EOL
12 KiB
CSS

/* Suitbuilder CSS - Three-Panel Layout with Equipment Slots */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background-color: #f5f5f5;
color: #333;
line-height: 1.4;
}
.suitbuilder-container {
min-height: 100vh;
display: flex;
flex-direction: column;
}
/* Header */
.suitbuilder-header {
background: linear-gradient(135deg, #1e3a8a, #3b82f6);
color: white;
padding: 1rem 2rem;
text-align: center;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.suitbuilder-header h1 {
font-size: 2rem;
margin-bottom: 0.5rem;
}
.suitbuilder-header p {
font-size: 1.1rem;
opacity: 0.9;
}
/* Main Content - Three Panel Layout */
.main-content {
display: flex;
flex: 1;
min-height: calc(100vh - 120px);
gap: 1px;
}
/* Panel Base Styles */
.characters-panel,
.constraints-panel,
.slots-panel {
background: white;
display: flex;
flex-direction: column;
overflow-y: auto;
}
.characters-panel {
flex: 0 0 15%;
min-width: 200px;
border-right: 1px solid #e5e7eb;
}
.constraints-panel {
flex: 0 0 55%;
border-right: 1px solid #e5e7eb;
}
.slots-panel {
flex: 0 0 30%;
min-width: 350px;
}
/* Panel Headers */
.panel-header {
background: #f8fafc;
padding: 1rem;
border-bottom: 1px solid #e5e7eb;
position: sticky;
top: 0;
z-index: 10;
}
.panel-header h3 {
font-size: 1.2rem;
color: #1f2937;
margin: 0;
}
.results-count {
font-size: 0.9rem;
color: #6b7280;
font-weight: normal;
}
/* Character Selection Panel */
.character-selection {
padding: 1rem;
}
.character-list {
margin-top: 0.5rem;
max-height: calc(100vh - 250px);
overflow-y: auto;
}
.checkbox-item {
display: flex;
align-items: center;
margin-bottom: 0.5rem;
padding: 0.25rem;
border-radius: 4px;
transition: background-color 0.2s;
}
.checkbox-item:hover {
background-color: #f3f4f6;
}
.checkbox-item input[type="checkbox"] {
margin-right: 0.5rem;
transform: scale(1.1);
}
.checkbox-item label {
cursor: pointer;
flex: 1;
font-size: 0.9rem;
}
/* Constraints Panel */
.constraints-form {
padding: 1rem;
border-bottom: 1px solid #e5e7eb;
}
.constraint-section {
margin-bottom: 1.5rem;
padding: 1rem;
background: #f9fafb;
border-radius: 6px;
border: 1px solid #e5e7eb;
}
.constraint-section h4 {
font-size: 1rem;
color: #374151;
margin-bottom: 0.75rem;
border-bottom: 1px solid #d1d5db;
padding-bottom: 0.5rem;
}
.filter-row {
display: flex;
gap: 1rem;
flex-wrap: wrap;
align-items: center;
}
.filter-group {
display: flex;
align-items: center;
gap: 0.5rem;
flex: 1;
min-width: 200px;
}
.filter-group label {
font-size: 0.9rem;
font-weight: 500;
color: #374151;
min-width: 80px;
}
.filter-group input[type="number"] {
width: 70px;
padding: 0.375rem;
border: 1px solid #d1d5db;
border-radius: 4px;
font-size: 0.9rem;
}
.filter-group select {
flex: 1;
padding: 0.375rem;
border: 1px solid #d1d5db;
border-radius: 4px;
font-size: 0.9rem;
background: white;
}
/* Cantrips Grid */
.cantrips-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 0.5rem;
}
.cantrips-grid .checkbox-item {
margin-bottom: 0.25rem;
}
/* Action Buttons */
.action-buttons {
display: flex;
gap: 1rem;
margin-top: 1rem;
padding-top: 1rem;
border-top: 1px solid #e5e7eb;
}
.btn {
padding: 0.75rem 1.5rem;
border: none;
border-radius: 6px;
font-size: 0.9rem;
font-weight: 500;
cursor: pointer;
transition: all 0.2s;
text-decoration: none;
display: inline-block;
text-align: center;
}
.btn-primary {
background: #3b82f6;
color: white;
}
.btn-primary:hover {
background: #2563eb;
}
.btn-secondary {
background: #6b7280;
color: white;
}
.btn-secondary:hover {
background: #4b5563;
}
/* Results Section */
.results-section {
flex: 1;
display: flex;
flex-direction: column;
}
.suit-results {
flex: 1;
padding: 1rem;
overflow-y: auto;
}
.no-results {
text-align: center;
color: #6b7280;
font-style: italic;
padding: 2rem;
background: #f9fafb;
border-radius: 6px;
border: 1px dashed #d1d5db;
}
.suit-item {
background: white;
border: 1px solid #e5e7eb;
border-radius: 6px;
margin-bottom: 1rem;
padding: 1rem;
cursor: pointer;
transition: all 0.2s;
}
.suit-item:hover {
border-color: #3b82f6;
box-shadow: 0 2px 4px rgba(59, 130, 246, 0.1);
}
.suit-item.selected {
border-color: #3b82f6;
background: #eff6ff;
}
.suit-header {
display: flex;
justify-content: between;
align-items: center;
margin-bottom: 0.75rem;
}
.suit-score {
font-size: 1.1rem;
font-weight: 600;
}
.suit-score.excellent { color: #059669; }
.suit-score.good { color: #3b82f6; }
.suit-score.fair { color: #f59e0b; }
.suit-score.poor { color: #ef4444; }
.suit-items {
font-size: 0.9rem;
line-height: 1.5;
}
.suit-item-entry {
margin-bottom: 0.25rem;
display: flex;
align-items: center;
gap: 0.5rem;
}
.item-character {
font-weight: 600;
color: #1f2937;
}
.item-name {
color: #374151;
}
.item-properties {
color: #6b7280;
font-size: 0.8rem;
}
.need-reducing {
background: #fef2f2;
color: #dc2626;
padding: 0.125rem 0.375rem;
border-radius: 4px;
font-size: 0.7rem;
font-weight: 500;
border: 1px solid #fecaca;
}
/* Constraint Analysis Display */
.missing-items {
background: #fef2f2;
color: #dc2626;
padding: 0.5rem 0.75rem;
border-radius: 6px;
font-size: 0.85rem;
font-weight: 500;
margin-top: 0.75rem;
border: 1px solid #fecaca;
line-height: 1.4;
}
.missing-items:before {
content: "⚠️ Missing: ";
font-weight: 600;
}
.suit-notes {
background: #f0f9ff;
color: #1e40af;
padding: 0.5rem 0.75rem;
border-radius: 6px;
font-size: 0.85rem;
font-weight: 500;
margin-top: 0.5rem;
border: 1px solid #bfdbfe;
line-height: 1.4;
}
.suit-notes:before {
content: "✓ ";
font-weight: 600;
color: #059669;
}
/* Equipment Slots Panel */
.slots-panel {
padding: 1rem;
}
.slot-category {
margin-bottom: 2rem;
}
.slot-category h4 {
font-size: 1rem;
color: #374151;
margin-bottom: 1rem;
padding-bottom: 0.5rem;
border-bottom: 1px solid #e5e7eb;
}
/* Slots Grid */
.slots-grid {
display: grid;
gap: 0.75rem;
margin-bottom: 1rem;
}
.armor-slots {
grid-template-columns: repeat(3, 1fr);
}
.jewelry-slots {
grid-template-columns: repeat(3, 1fr);
}
.clothing-slots {
grid-template-columns: repeat(2, 1fr);
}
/* Individual Slot Items */
.slot-item {
background: white;
border: 2px solid #e5e7eb;
border-radius: 6px;
padding: 0.75rem;
min-height: 120px;
display: flex;
flex-direction: column;
transition: all 0.2s;
position: relative;
}
.slot-item:hover {
border-color: #d1d5db;
}
.slot-item.locked {
border-color: #dc2626;
background: #fef2f2;
}
.slot-item.populated {
border-color: #059669;
background: #f0fdf4;
}
.slot-header {
font-size: 0.8rem;
font-weight: 600;
color: #6b7280;
margin-bottom: 0.5rem;
text-align: center;
}
.slot-content {
flex: 1;
display: flex;
flex-direction: column;
justify-content: center;
text-align: center;
font-size: 0.8rem;
}
.empty-slot {
color: #9ca3af;
font-style: italic;
}
.slot-item-name {
font-weight: 500;
color: #1f2937;
margin-bottom: 0.25rem;
line-height: 1.2;
}
.slot-item-character {
font-size: 0.7rem;
color: #6b7280;
margin-bottom: 0.25rem;
}
.slot-item-properties {
font-size: 0.65rem;
color: #9ca3af;
line-height: 1.1;
}
.slot-controls {
position: absolute;
top: 0.25rem;
right: 0.25rem;
}
.lock-btn {
background: none;
border: none;
font-size: 0.8rem;
cursor: pointer;
padding: 0.25rem;
border-radius: 3px;
opacity: 0.5;
transition: all 0.2s;
}
.lock-btn:hover {
opacity: 1;
background: #f3f4f6;
}
.lock-btn.locked {
opacity: 1;
background: #fef2f2;
}
/* Slot Controls Section */
.slot-controls-section {
padding-top: 1rem;
border-top: 1px solid #e5e7eb;
display: flex;
gap: 0.5rem;
flex-wrap: wrap;
}
.slot-controls-section .btn {
font-size: 0.8rem;
padding: 0.5rem 1rem;
flex: 1;
min-width: 100px;
}
/* Loading States */
.loading {
display: flex;
align-items: center;
justify-content: center;
padding: 2rem;
font-style: italic;
color: #6b7280;
}
.loading::before {
content: "🔍 ";
margin-right: 0.5rem;
}
/* Error States */
.error {
background: #fef2f2;
color: #dc2626;
padding: 1rem;
border-radius: 6px;
border: 1px solid #fecaca;
margin: 1rem 0;
}
/* Responsive Design */
@media (max-width: 1200px) {
.main-content {
flex-direction: column;
}
.characters-panel,
.constraints-panel,
.slots-panel {
flex: none;
min-height: auto;
}
.slots-grid {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 768px) {
.suitbuilder-header h1 {
font-size: 1.5rem;
}
.filter-row {
flex-direction: column;
align-items: stretch;
}
.filter-group {
min-width: auto;
}
.cantrips-grid {
grid-template-columns: repeat(2, 1fr);
}
.slots-grid {
grid-template-columns: 1fr;
}
}
/* Suit Results Styling */
.suit-stats {
padding: 8px 12px;
background: #444;
border-bottom: 1px solid #555;
margin-bottom: 8px;
}
.suit-stats-line {
font-size: 12px;
color: #ccc;
font-weight: 500;
}
.suit-notes {
margin-top: 8px;
padding: 6px;
background: #e8f5e8;
border-radius: 3px;
font-size: 11px;
color: #2d5016;
border-left: 3px solid #4caf50;
}
.missing-items {
margin-top: 8px;
padding: 6px;
background: #ffeaea;
border-radius: 3px;
font-size: 11px;
color: #c62828;
border-left: 3px solid #f44336;
}
.no-items {
color: #999;
font-style: italic;
text-align: center;
padding: 20px;
}
.suit-item-entry {
margin-bottom: 4px;
font-size: 12px;
}
.item-character {
color: #666;
font-weight: 500;
}
.item-name {
color: #333;
font-weight: bold;
}
.item-properties {
color: #888;
font-size: 11px;
}
.need-reducing {
color: #ff6b35;
font-weight: bold;
font-size: 10px;
background: #fff3e0;
padding: 1px 4px;
border-radius: 2px;
margin-left: 4px;
}
/* Progressive Search Styles */
.search-progress {
margin-top: 15px;
padding: 10px;
background: #f8f9fa;
border-radius: 6px;
border: 1px solid #e9ecef;
}
.progress-stats {
font-family: 'Courier New', monospace;
font-size: 13px;
color: #495057;
margin-bottom: 10px;
}
.stop-search-btn {
background: #dc3545;
color: white;
border: none;
padding: 6px 12px;
border-radius: 4px;
cursor: pointer;
font-size: 12px;
font-weight: bold;
transition: background-color 0.2s;
}
.stop-search-btn:hover {
background: #c82333;
}
.stop-search-btn:active {
background: #bd2130;
}
#streamingResults {
margin-top: 15px;
}
/* Enhance loading messages */
.loading {
padding: 20px;
text-align: center;
background: #e3f2fd;
border: 1px solid #bbdefb;
border-radius: 6px;
color: #1976d2;
font-weight: 500;
}