Files
bamort/frontend/src/assets/main.css
T

1469 lines
24 KiB
CSS
Raw Normal View History

2024-12-21 07:55:05 +01:00
@import './base.css';
#app {
2025-08-08 08:44:39 +02:00
width: 100%;
max-width: none;
margin: 0;
padding: 0;
2024-12-21 07:55:05 +01:00
font-weight: normal;
2025-08-08 08:44:39 +02:00
height: 100vh;
display: flex;
flex-direction: column;
2024-12-21 07:55:05 +01:00
}
a,
.green {
text-decoration: none;
color: hsla(160, 100%, 37%, 1);
transition: 0.4s;
padding: 3px;
}
@media (hover: hover) {
a:hover {
background-color: hsla(160, 100%, 37%, 0.2);
}
}
@media (min-width: 1024px) {
body {
2025-08-08 08:44:39 +02:00
margin: 0;
padding: 0;
width: 100%;
height: 100vh;
2024-12-21 07:55:05 +01:00
}
#app {
2025-08-08 08:44:39 +02:00
width: 100%;
height: 100vh;
display: flex;
flex-direction: column;
padding: 0;
margin: 0;
2024-12-21 07:55:05 +01:00
}
}
2025-01-06 14:23:39 +01:00
/* Top Navigation Bar */
.top-nav {
display: flex;
justify-content: space-around;
align-items: center;
2025-01-18 20:59:35 +01:00
background-color: var(--vt-c-black-soft);
/* Use your palette from base.css */
2025-01-06 14:23:39 +01:00
color: var(--vt-c-white);
height: 60px;
2025-01-18 20:59:35 +01:00
width: 100%;
/* Full width */
position: fixed;
/* Fix it to the top */
2025-01-06 14:23:39 +01:00
top: 0;
2025-01-18 20:59:35 +01:00
left: 0;
2025-01-06 14:23:39 +01:00
z-index: 1000;
2025-01-18 20:59:35 +01:00
padding: 0 12px;
2025-01-06 14:23:39 +01:00
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.top-nav ul {
list-style: none;
display: flex;
gap: 20px;
padding: 0;
margin: 0;
}
.top-nav li a {
text-decoration: none;
color: var(--vt-c-white);
font-size: 1rem;
transition: color 0.3s;
}
.top-nav li a:hover {
2025-01-18 20:59:35 +01:00
color: var(--vt-c-indigo);
/* Highlight on hover */
2025-01-06 14:23:39 +01:00
}
/* Main Content Area */
.main-content {
2025-01-18 20:59:35 +01:00
flex: 1;
2025-08-08 08:44:39 +02:00
width: 100%;
height: calc(100vh - 60px);
2025-08-08 11:58:45 +02:00
margin-top: 10px;
2025-08-08 08:44:39 +02:00
padding: 0;
2025-08-08 09:22:42 +02:00
padding-bottom: 60px; /* Platz für das fixierte Submenu */
2025-08-08 08:44:39 +02:00
overflow-y: auto;
background-color: var(--color-background);
}
/* Global fullwidth container class for all components */
.fullwidth-container {
width: 100%;
height: 100%;
padding: 20px;
2025-08-08 09:22:42 +02:00
padding-bottom: 80px; /* Extra Platz für das fixierte Submenu */
2025-08-08 08:44:39 +02:00
box-sizing: border-box;
overflow-y: auto;
}
/* Global fullwidth page class for view components */
.fullwidth-page {
width: 100%;
min-height: calc(100vh - 120px);
padding: 20px;
box-sizing: border-box;
}
/* Common Card Layouts */
.card {
border: 1px solid #ddd;
border-radius: 8px;
padding: 15px;
background: white;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
margin-bottom: 15px;
}
.card:hover {
border-color: #007bff;
box-shadow: 0 4px 8px rgba(0,0,0,0.15);
transform: translateY(-2px);
transition: all 0.3s ease;
}
/* Common Grid Layouts */
.grid-container {
display: grid;
gap: 20px;
width: 100%;
}
.grid-2-columns {
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.grid-3-columns {
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.grid-4-columns {
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
/* Common Header Styles */
.page-header {
margin-bottom: 20px;
padding-bottom: 10px;
border-bottom: 2px solid #007bff;
}
.page-header h2,
.page-header h3 {
margin: 0;
color: #333;
font-size: 1.5rem;
}
.section-header {
margin: 30px 0 15px 0;
padding-bottom: 8px;
border-bottom: 1px solid #dee2e6;
}
.section-header h3,
.section-header h4 {
margin: 0;
color: #333;
font-size: 1.2rem;
}
/* Common Button Styles */
.btn {
padding: 8px 16px;
border: 1px solid #dee2e6;
border-radius: 6px;
background: #f8f9fa;
color: #495057;
font-size: 0.9rem;
font-weight: 600;
cursor: pointer;
transition: all 0.2s ease;
display: inline-flex;
2025-01-18 20:59:35 +01:00
align-items: center;
2025-08-08 08:44:39 +02:00
text-decoration: none;
}
.btn:hover {
transform: translateY(-1px);
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.btn-primary {
background: #007bff;
color: white;
border-color: #007bff;
}
.btn-primary:hover {
background: #0056b3;
box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}
.btn-secondary {
background: #f8f9fa;
color: #495057;
border-color: #dee2e6;
}
.btn-secondary:hover {
background: #e9ecef;
border-color: #adb5bd;
}
.badge-secondary {
background: #6c757d;
color: white;
}
.btn-danger {
background: #dc3545;
color: white;
border-color: #dc3545;
}
.btn-danger:hover {
background: #c82333;
}
.btn-success {
background: #28a745;
color: white;
border-color: #28a745;
}
.btn-success:hover {
background: #218838;
}
/* Common Form Elements */
.form-group {
margin-bottom: 15px;
}
.form-group label {
display: block;
margin-bottom: 5px;
font-weight: bold;
color: #555;
}
.form-control {
2025-01-18 20:59:35 +01:00
width: 100%;
2025-08-08 08:44:39 +02:00
padding: 8px 12px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 14px;
2025-01-06 14:23:39 +01:00
box-sizing: border-box;
2025-08-08 08:44:39 +02:00
}
.form-control:focus {
border-color: #007bff;
outline: none;
box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}
.form-row {
display: flex;
gap: 15px;
align-items: flex-start;
}
.form-col {
flex: 1;
min-width: 0;
}
/* Common List Styles */
.list-container {
background: white;
border-radius: 8px;
border: 1px solid #dee2e6;
overflow: hidden;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.list-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 16px 20px;
border-bottom: 1px solid #f0f0f0;
transition: all 0.2s ease;
}
.list-item:last-child {
border-bottom: none;
}
.list-item:hover {
background: #f8f9fa;
transform: translateX(2px);
}
.list-item-content {
flex: 1;
}
.list-item-title {
margin: 0 0 6px 0;
color: #333;
font-size: 1.1rem;
font-weight: 600;
}
.list-item-details {
display: flex;
align-items: center;
gap: 8px;
font-size: 0.9rem;
color: #666;
}
.list-item-separator {
color: #ccc;
font-weight: normal;
}
.list-item-actions {
display: flex;
gap: 12px;
align-items: center;
flex-shrink: 0;
}
/* Common Badge Styles */
.badge {
padding: 4px 8px;
border-radius: 12px;
font-size: 0.8rem;
font-weight: bold;
text-transform: uppercase;
}
.badge-primary {
background: #007bff;
color: white;
}
.badge-success {
background: #28a745;
color: white;
}
.badge-warning {
background: #ffc107;
color: #212529;
}
.badge-danger {
background: #dc3545;
color: white;
}
.badge-info {
background: #17a2b8;
color: white;
}
.badge-gradient {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
}
/* Common Resource Display */
.resource-display {
display: flex;
gap: 15px;
margin-bottom: 20px;
flex-wrap: wrap;
}
.resource-card {
display: flex;
align-items: center;
gap: 10px;
padding: 12px 16px;
background: #f8f9fa;
border: 1px solid #dee2e6;
border-radius: 8px;
flex: 1;
min-width: 160px;
}
.resource-icon {
font-size: 20px;
}
.resource-info {
flex: 1;
}
.resource-label {
font-size: 12px;
color: #6c757d;
font-weight: 500;
}
.resource-amount {
font-size: 16px;
font-weight: bold;
color: #495057;
}
.resource-remaining {
margin-top: 4px;
font-size: 12px;
color: #6c757d;
}
/* Common Progress/Status Indicators */
.progress-badge {
background: #007bff;
color: white;
padding: 2px 8px;
border-radius: 12px;
font-size: 0.8rem;
font-weight: bold;
}
.status-indicator {
width: 8px;
height: 8px;
border-radius: 50%;
display: inline-block;
margin-right: 8px;
}
.status-active {
background: #28a745;
}
.status-inactive {
background: #6c757d;
}
.status-warning {
background: #ffc107;
}
/* Common Empty States */
.empty-state {
text-align: center;
padding: 60px 20px;
color: #666;
}
.empty-state h3 {
color: #333;
margin-bottom: 10px;
font-size: 1.5rem;
}
.empty-state p {
font-size: 1.1rem;
margin: 0;
}
/* Common Loading States */
.loading-message {
text-align: center;
padding: 20px;
color: #6c757d;
}
.loading-spinner {
display: inline-block;
width: 20px;
height: 20px;
border: 3px solid #f3f3f3;
border-top: 3px solid #007bff;
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
2025-01-06 14:23:39 +01:00
}
@media (max-width: 768px) {
.top-nav {
flex-direction: column;
height: auto;
}
.top-nav ul {
flex-direction: column;
gap: 10px;
}
2025-01-18 20:59:35 +01:00
}
.cd-table {
width: 100%;
border-collapse: collapse;
position: relative;
margin-top: 1rem;
}
.cd-table thead {
position: sticky;
top: 0;
background: #fff;
color: #000000;
z-index: 1;
}
.cd-table th,
.cd-table td {
padding: 0.5rem;
text-align: left;
border: 1px solid #ddd;
}
.cd-table th {
background-color: #f5f5f5;
font-weight: bold;
}
.cd-table tr:nth-child(even) {
background-color: #f9f9f9;
color: #000000;
}
.cd-list {
2025-01-18 20:59:35 +01:00
max-height: calc(100vh - 207px);
flex: 1 1 auto; /* Grow and shrink, take available space */
overflow-y: auto; /* Enable scrolling if content overflows */
min-height: 0; /* Required for Firefox */
2025-01-18 20:59:35 +01:00
overflow-y: auto;
overflow-x: hidden;
}
/* Custom scrollbar styling */
.cd-list::-webkit-scrollbar {
width: 8px;
}
.cd-list::-webkit-scrollbar-track {
background: #f1f1f1;
}
.cd-list::-webkit-scrollbar-thumb {
background: #888;
border-radius: 4px;
}
.cd-list::-webkit-scrollbar-thumb:hover {
background: #555;
}
.cd-view {
2025-08-08 09:22:42 +02:00
color: #333;
background: white;
2025-01-18 20:59:35 +01:00
}
.character-details {
2025-08-08 09:22:42 +02:00
background-color: white;
color: #333;
2025-01-18 20:59:35 +01:00
padding: 12px;
2025-01-18 20:59:35 +01:00
border-radius: 8px;
width: 90%;
margin: 0 auto;
font-family: Arial, sans-serif;
2025-01-18 20:59:35 +01:00
display: flex;
flex-direction: column;
2025-08-08 09:22:42 +02:00
height: calc(100vh - 90px);
2025-01-18 20:59:35 +01:00
overflow-y: scroll;
top: 45px;
2025-08-08 09:22:42 +02:00
border: 1px solid #dee2e6;
2025-01-18 20:59:35 +01:00
}
.character-header h2 {
font-size: 1.5rem;
text-align: center;
2025-08-08 09:22:42 +02:00
color: #333;
2025-01-18 20:59:35 +01:00
margin-bottom: 20px;
2025-08-08 09:22:42 +02:00
flex: 0 0 auto;
2025-01-18 20:59:35 +01:00
}
.character-overview {
display: flex;
gap: 20px;
margin-bottom: 20px;
}
.character-image img {
width: 150px;
height: auto;
border-radius: 8px;
2025-08-08 09:22:42 +02:00
border: 2px solid #dee2e6;
2025-01-18 20:59:35 +01:00
}
.character-stats {
display: grid;
grid-template-columns: repeat(5, 1fr);
gap: 10px;
width: 100%;
}
.stat {
2025-08-08 09:22:42 +02:00
background-color: #f8f9fa;
border: 1px solid #dee2e6;
2025-01-18 20:59:35 +01:00
text-align: center;
2025-01-18 20:59:35 +01:00
padding: 12px;
2025-01-18 20:59:35 +01:00
border-radius: 5px;
font-size: 0.9rem;
font-weight: bold;
2025-01-18 20:59:35 +01:00
line-height: 1.2;
2025-08-08 09:22:42 +02:00
color: #495057;
2025-01-18 20:59:35 +01:00
}
.stat span {
display: block;
font-size: 0.8rem;
2025-08-08 09:22:42 +02:00
color: #6c757d;
2025-01-18 20:59:35 +01:00
}
.character-info {
2025-08-08 09:22:42 +02:00
background-color: #f8f9fa;
2025-01-18 20:59:35 +01:00
padding: 12px;
2025-01-18 20:59:35 +01:00
border-radius: 8px;
line-height: 1.6;
white-space: nowrap;
2025-08-08 09:22:42 +02:00
border: 1px solid #dee2e6;
color: #495057;
2025-01-18 20:59:35 +01:00
}
.character-info p {
margin: 10px 0;
}
.character-info strong {
2025-08-08 09:22:42 +02:00
color: #495057;
font-weight: 600;
2025-01-18 20:59:35 +01:00
}
.character-info em {
font-style: italic;
2025-08-08 09:22:42 +02:00
color: #6c757d;
2025-01-18 20:59:35 +01:00
}
.character-details {
position: relative;
2025-08-08 09:22:42 +02:00
background-color: white;
color: #333;
2025-01-18 20:59:35 +01:00
padding: 12px;
2025-08-08 09:22:42 +02:00
padding-bottom: 80px; /* Platz für das fixierte Submenu */
2025-01-18 20:59:35 +01:00
border-radius: 8px;
width: 90%;
margin: 0 auto;
font-family: Arial, sans-serif;
2025-08-08 09:22:42 +02:00
min-height: calc(100vh - 60px - 64px);
2025-01-18 20:59:35 +01:00
flex-direction: column;
2025-08-08 09:22:42 +02:00
border: 1px solid #dee2e6;
2025-01-18 20:59:35 +01:00
}
.character-main {
margin-bottom: 20px;
}
.character-aspect {
2025-01-18 20:59:35 +01:00
padding: 12px;
2025-08-08 09:22:42 +02:00
background-color: #f8f9fa;
2025-01-18 20:59:35 +01:00
border-radius: 8px;
min-height: 200px;
2025-08-08 09:22:42 +02:00
border: 1px solid #dee2e6;
2025-01-18 20:59:35 +01:00
}
.submenu {
2025-08-08 09:22:42 +02:00
position: fixed;
2025-01-18 20:59:35 +01:00
bottom: 0;
left: 0;
right: 0;
2025-08-08 09:22:42 +02:00
width: 100%;
background-color: #f8f9fa;
2025-01-18 20:59:35 +01:00
display: flex;
justify-content: center;
2025-08-08 09:22:42 +02:00
padding: 8px;
border-top: 1px solid #dee2e6;
flex: 0 0 auto;
z-index: 1000;
box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
2025-01-18 20:59:35 +01:00
}
.submenu button {
2025-08-08 09:22:42 +02:00
background-color: #6c757d;
color: white;
2025-01-18 20:59:35 +01:00
border: none;
2025-01-18 20:59:35 +01:00
padding: 10px 12px;
2025-01-18 20:59:35 +01:00
margin: 0 10px;
border-radius: 4px;
font-size: 0.9rem;
cursor: pointer;
transition: background-color 0.3s;
}
.submenu button:hover {
2025-08-08 09:22:42 +02:00
background-color: #5a6268;
2025-01-18 20:59:35 +01:00
}
.submenu button.active {
background-color: #007BFF;
2025-08-08 09:22:42 +02:00
color: white;
2025-01-18 20:59:35 +01:00
font-weight: bold;
2025-08-08 09:22:42 +02:00
}
/* Responsive Submenu für mobile Geräte */
@media (max-width: 768px) {
.submenu {
padding: 4px;
flex-wrap: wrap;
justify-content: center;
max-height: 100px;
overflow-y: auto;
}
.submenu button {
padding: 6px 8px;
margin: 2px;
font-size: 0.8rem;
min-width: 60px;
}
.fullwidth-container {
padding-bottom: 120px; /* Mehr Platz für mehrreihiges Submenu auf mobilen Geräten */
}
.main-content {
padding-bottom: 120px;
}
.character-details {
padding-bottom: 120px;
}
2025-08-11 21:55:24 +02:00
}
/* Dice Button and Overlay Styles */
.input-with-dice {
display: flex;
gap: 8px;
align-items: center;
}
.input-with-dice select {
flex: 1;
}
.dice-btn {
background: #4CAF50;
border: none;
border-radius: 4px;
width: 40px;
height: 40px;
font-size: 18px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: background-color 0.3s;
}
.dice-btn:hover:not(:disabled) {
background: #45a049;
}
.dice-btn:disabled {
background: #ccc;
cursor: not-allowed;
opacity: 0.6;
}
.roll-result {
margin-top: 8px;
padding: 8px;
background-color: #e8f5e8;
border-radius: 4px;
font-size: 14px;
color: #2e7d2e;
border-left: 3px solid #4CAF50;
}
/* Roll Overlay Styles */
.roll-overlay {
position: fixed;
top: 20px;
right: 20px;
z-index: 2000;
cursor: pointer;
animation: slideInRight 0.3s ease-out;
}
.roll-overlay-content {
background: linear-gradient(135deg, #4CAF50, #45a049);
color: white;
padding: 20px;
border-radius: 12px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
min-width: 200px;
position: relative;
text-align: center;
border: 2px solid rgba(255, 255, 255, 0.2);
}
.overlay-close {
position: absolute;
top: 8px;
right: 12px;
background: none;
border: none;
color: white;
font-size: 20px;
cursor: pointer;
opacity: 0.7;
transition: opacity 0.2s;
}
.overlay-close:hover {
opacity: 1;
}
.overlay-title {
font-size: 16px;
font-weight: bold;
margin-bottom: 12px;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}
.overlay-roll {
font-size: 24px;
font-weight: bold;
margin-bottom: 8px;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}
.roll-breakdown {
font-size: 14px;
opacity: 0.9;
margin-left: 5px;
}
.overlay-result {
font-size: 18px;
font-weight: bold;
margin-bottom: 10px;
color: #ffeb3b;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}
.overlay-hint {
font-size: 12px;
opacity: 0.8;
font-style: italic;
}
@keyframes slideInRight {
from {
transform: translateX(100%);
opacity: 0;
}
to {
transform: translateX(0);
opacity: 1;
}
}
/* Responsive design for smaller screens */
@media (max-width: 768px) {
.roll-overlay {
top: 10px;
right: 10px;
left: 10px;
}
.roll-overlay-content {
min-width: unset;
}
2025-08-12 07:38:17 +02:00
}
/* ========================================
CHARACTER CREATION FULLWIDTH LAYOUT SYSTEM
======================================== */
/* Base character creation container */
.character-creation-container {
width: 100% !important;
max-width: none !important;
padding: 20px;
box-sizing: border-box;
}
/* ========================================
BASIC INFO COMPONENT STYLES
======================================== */
.basic-info-form {
width: 100% !important;
max-width: none !important;
margin: 0;
padding: 0;
}
.basic-info-form h2 {
text-align: center;
margin-bottom: 30px;
color: #333;
}
.basic-info-form .form-group {
margin-bottom: 20px;
}
.basic-info-form .form-row {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 20px;
}
@media (min-width: 768px) {
.basic-info-form .form-row {
grid-template-columns: repeat(2, 1fr);
}
}
@media (min-width: 1200px) {
.basic-info-form .form-row {
grid-template-columns: repeat(3, 1fr);
}
}
/* ========================================
ATTRIBUTES COMPONENT STYLES
======================================== */
.attributes-form {
width: 100% !important;
max-width: none !important;
margin: 0;
display: flex;
flex-direction: column;
min-height: 0;
padding-bottom: 20px;
}
.attributes-form h2 {
text-align: center;
margin-bottom: 10px;
color: #333;
flex-shrink: 0;
}
.attributes-form .instruction {
text-align: center;
margin-bottom: 20px;
color: #666;
font-style: italic;
flex-shrink: 0;
}
.attributes-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 20px;
margin-bottom: 20px;
max-height: 60vh;
overflow-y: auto;
padding: 20px;
border: 1px solid #eee;
border-radius: 8px;
background-color: #fefefe;
width: 100%;
box-sizing: border-box;
}
@media (min-width: 768px) {
.attributes-grid {
grid-template-columns: repeat(2, 1fr);
gap: 25px;
}
}
@media (min-width: 1200px) {
.attributes-grid {
grid-template-columns: repeat(3, 1fr);
gap: 25px;
}
}
@media (min-width: 1600px) {
.attributes-grid {
grid-template-columns: repeat(4, 1fr);
gap: 30px;
}
}
/* ========================================
DERIVED VALUES COMPONENT STYLES
======================================== */
.derived-values-form {
width: 100% !important;
max-width: none !important;
margin: 0;
padding: 0;
}
.derived-values-form h2 {
text-align: center;
margin-bottom: 10px;
color: #333;
}
.derived-values-form .instruction {
text-align: center;
margin-bottom: 30px;
color: #666;
font-style: italic;
}
.values-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 20px;
margin-bottom: 30px;
max-height: 70vh;
overflow-y: auto;
padding: 20px;
border: 1px solid #eee;
border-radius: 8px;
background-color: #fefefe;
width: 100%;
box-sizing: border-box;
}
@media (min-width: 768px) {
.values-grid {
grid-template-columns: repeat(2, 1fr);
gap: 25px;
}
}
@media (min-width: 1024px) {
.values-grid {
grid-template-columns: repeat(3, 1fr);
gap: 25px;
}
}
@media (min-width: 1400px) {
.values-grid {
grid-template-columns: repeat(4, 1fr);
gap: 30px;
}
}
@media (min-width: 1600px) {
.values-grid {
grid-template-columns: repeat(5, 1fr);
gap: 30px;
max-height: 65vh;
}
}
@media (min-width: 1920px) {
.values-grid {
grid-template-columns: repeat(6, 1fr);
gap: 35px;
max-height: 60vh;
}
}
/* ========================================
SHARED CHARACTER CREATION STYLES
======================================== */
/* Form elements */
.character-creation-container label {
display: block;
margin-bottom: 5px;
font-weight: bold;
color: #555;
}
.character-creation-container input,
.character-creation-container select {
width: 100%;
padding: 10px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 16px;
box-sizing: border-box;
}
.character-creation-container input:focus,
.character-creation-container select:focus {
outline: none;
border-color: #2196f3;
box-shadow: 0 0 5px rgba(33, 150, 243, 0.3);
}
/* Value groups and attribute groups */
.value-group, .attribute-group {
padding: 12px;
border: 1px solid #ddd;
border-radius: 8px;
background-color: #fafafa;
min-width: 0;
}
.value-group label, .attribute-group label {
display: block;
margin-bottom: 8px;
font-weight: bold;
color: #333;
}
/* Input with dice styling */
.input-with-dice {
display: flex;
gap: 8px;
align-items: center;
}
.input-with-dice input {
flex: 1;
margin-bottom: 8px;
}
/* Attribute specific styles */
.attribute-row {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 5px;
}
.attribute-label {
font-weight: bold;
color: #333;
font-size: 14px;
margin-right: 10px;
flex: 1;
}
.attribute-input {
width: 80px !important;
padding: 6px 8px !important;
font-size: 14px;
text-align: center;
}
.attribute-description {
font-size: 12px;
color: #666;
font-style: italic;
margin-top: 5px;
display: block;
}
/* Value info */
.value-info {
display: flex;
flex-direction: column;
gap: 2px;
}
.calculated-value {
font-size: 12px;
color: #4caf50;
font-weight: bold;
}
.value-description {
font-size: 12px;
color: #666;
font-style: italic;
}
/* Race restrictions and roll results */
.race-restriction-warning {
background-color: #fff3cd;
color: #856404;
padding: 8px;
border-radius: 4px;
font-size: 12px;
margin-top: 5px;
border: 1px solid #ffeeba;
}
.roll-result {
background-color: #e8f5e8;
color: #2e7d32;
padding: 8px;
border-radius: 4px;
font-size: 12px;
margin-top: 8px;
border: 1px solid #c8e6c9;
}
.roll-breakdown {
font-size: 11px;
opacity: 0.8;
}
/* Calculation info */
.calculation-info {
margin-bottom: 30px;
padding: 20px;
background-color: #e8f5e8;
border-radius: 8px;
}
.calculation-info h3 {
margin-bottom: 15px;
color: #2e7d32;
}
.calculation-rules {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 12px;
}
@media (min-width: 1200px) {
.calculation-rules {
grid-template-columns: repeat(2, 1fr);
}
}
@media (min-width: 1600px) {
.calculation-rules {
grid-template-columns: repeat(3, 1fr);
}
}
.rule {
font-size: 14px;
color: #555;
}
/* Form actions */
.form-actions {
display: flex;
justify-content: space-between;
align-items: center;
gap: 15px;
flex-wrap: wrap;
margin-top: 20px;
}
@media (max-width: 768px) {
.form-actions {
flex-direction: column;
gap: 10px;
}
.prev-btn, .calc-btn, .next-btn {
width: 100%;
max-width: 300px;
}
}
.prev-btn, .calc-btn, .next-btn {
padding: 12px 20px;
border: none;
border-radius: 4px;
font-size: 16px;
cursor: pointer;
transition: background-color 0.3s;
}
.prev-btn {
background-color: #6c757d;
color: white;
}
.prev-btn:hover {
background-color: #5a6268;
}
.calc-btn {
background-color: #ff9800;
color: white;
}
.calc-btn:hover {
background-color: #f57c00;
}
.next-btn {
background-color: #2196f3;
color: white;
}
.next-btn:hover:not(:disabled) {
background-color: #1976d2;
}
.next-btn:disabled {
background-color: #ccc;
cursor: not-allowed;
}
/* Belief search specific styles */
.belief-search {
position: relative;
}
.belief-dropdown {
position: absolute;
top: 100%;
left: 0;
right: 0;
background: white;
border: 1px solid #ddd;
border-radius: 4px;
max-height: 200px;
overflow-y: auto;
z-index: 1000;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.belief-option {
padding: 10px;
cursor: pointer;
border-bottom: 1px solid #eee;
}
.belief-option:hover {
background-color: #f5f5f5;
}
.belief-option:last-child {
border-bottom: none;
}
.selected-belief {
background-color: #e3f2fd;
padding: 10px;
border-radius: 4px;
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 10px;
}
.clear-btn {
background: #f44336;
color: white;
border: none;
border-radius: 50%;
width: 25px;
height: 25px;
cursor: pointer;
font-size: 16px;
display: flex;
align-items: center;
justify-content: center;
}
.clear-btn:hover {
background: #d32f2f;
}
/* Total section for attributes */
.total-section {
background-color: #f0f8ff;
padding: 15px;
border-radius: 8px;
margin-bottom: 20px;
text-align: center;
border: 1px solid #b3d9ff;
}
.points-display {
font-size: 18px;
font-weight: bold;
color: #333;
margin-bottom: 10px;
}
.total-invalid {
background-color: #ffeaea !important;
border-color: #ffcdd2 !important;
}
.total-invalid .points-display {
color: #d32f2f !important;
}
.error-message {
background-color: #ffebee;
color: #d32f2f;
padding: 10px;
border-radius: 4px;
margin-bottom: 20px;
border: 1px solid #ffcdd2;
text-align: center;
font-weight: bold;
}
/* ========================================
SKILLS AND SPELLS COMPONENT STYLES
======================================== */
/* Skills component full-width optimizations */
.skills-content {
display: grid;
grid-template-columns: 2fr 1fr;
gap: 30px;
width: 100%;
}
@media (max-width: 1024px) {
.skills-content {
grid-template-columns: 1fr;
gap: 20px;
}
}
/* Spells grids for full-width usage */
.spells-grid, .available-spells .spells-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 15px;
width: 100%;
}
@media (min-width: 768px) {
.spells-grid, .available-spells .spells-grid {
grid-template-columns: repeat(2, 1fr);
}
}
@media (min-width: 1024px) {
.spells-grid, .available-spells .spells-grid {
grid-template-columns: repeat(3, 1fr);
}
}
@media (min-width: 1400px) {
.spells-grid, .available-spells .spells-grid {
grid-template-columns: repeat(4, 1fr);
}
}
@media (min-width: 1600px) {
.spells-grid, .available-spells .spells-grid {
grid-template-columns: repeat(5, 1fr);
}
2025-01-06 14:23:39 +01:00
}