/* Disabled card style for Home page */
.disabled-card {
    opacity: 0.5;
    pointer-events: none;
    filter: grayscale(80%);
    cursor: not-allowed;
}
/* Hide species image on mobile */
@media (max-width: 899px) {
    .species-float-img-desktop {
        display: none !important;
    }
}
html, body {
    font-family: 'Times New Roman', Times, serif;
    background-color: #2d2922;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45OTMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Home card grid and card styles */
.home-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}
.home-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    background: #fff;
    border-radius: 10px;
    border: 2.5px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 1.5rem 1.5rem 1.5rem 1.2rem;
    min-height: 120px;
    text-decoration: none;
    transition: box-shadow 0.2s, border-color 0.2s;
    overflow: hidden;
}
.home-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    border-color: #b3b3b3;
}

.hover-up {
    transition: transform 0.2s ease-in-out !important;
}

.hover-up:hover {
    transform: translateY(-5px);
}

.home-card-icon {
    font-size: 2.5rem;
    margin-right: 1.2rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}
.home-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.home-card-title {
    font-size: 1.35rem;
    font-weight: 500;
    color: #222;
    margin-bottom: 0.3rem;
}
.home-card-desc {
    font-size: 1rem;
    color: #666;
}
/* Card border color variants */
.border-blue { border-top: 5px solid #1976d2 !important; }
.border-green { border-top: 5px solid #2e7d32 !important; }
.border-cyan { border-top: 5px solid #00bcd4 !important; }
.border-success { border-top: 5px solid #388e3c !important; }
.border-orange { border-top: 5px solid #ffa000 !important; }
.border-dark { border-top: 5px solid #424242 !important; }
.border-primary { border-top: 5px solid #1976d2 !important; }

/* Ribbon styles */
.home-card-ribbon {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0.3rem 1.2rem 0.3rem 1.2rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    background: #1976d2;
    border-radius: 0 8px 0 8px;
    transform: translateY(-50%) translateX(30%) rotate(45deg);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    z-index: 2;
    letter-spacing: 0.03em;
}
.ribbon-blue { background: #1976d2; }
.ribbon-green { background: #2e7d32; }
.ribbon-cyan { background: #00bcd4; }
.ribbon-success { background: #388e3c; }
.ribbon-orange { background: #ffa000; }
.ribbon-dark { background: #424242; }
.ribbon-primary { background: #1976d2; }

@media (max-width: 600px) {
    .home-card-grid {
        grid-template-columns: 1fr;
    }
    .home-card {
        padding: 1.1rem 1.1rem 1.1rem 0.9rem;
    }
    .home-card-title {
        font-size: 1.1rem;
    }
    .home-card-icon {
        font-size: 2rem;
    }
}

/* Ensure the layout image fills 100% width, does not overflow, and does not cause scrollbars */
.mainlayout-img-fullwidth {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
    margin: 0;
    padding: 0;
    object-fit: cover;
    box-sizing: border-box;
}

/* Parchment styles */
.parchment-hero {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
}
.parchment-title {
    font-size: 2.2rem;
    font-weight: bold;
    font-style: italic;
    margin-bottom: 0.5rem;
    color: #b09b6a;
}
.parchment-subtitle {
    font-size: 1rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: #b09b6a;
}

.parchment-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 32px 36px;
    max-width: 900px;
    margin: 0 auto;
    margin-top: 30px;
}

.parchment-card {
    background: #f6ecd3;
    border: 2px solid #222;
    border-radius: 16px;
    box-shadow: 0 0 16px 2px #111a, 0 2px 8px #0004;
    padding: 22px 18px 18px 18px;
    text-align: center;
    font-family: 'Times New Roman', Times, serif;
    min-width: 220px;
    min-height: 90px;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.parchment-card:hover {
    box-shadow: 0 0 24px 4px #000c, 0 4px 16px #0006;
    border-color: #444;
}

.parchment-card-title {
    font-weight: bold;
    font-style: italic;
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.parchment-card-desc {
    font-style: italic;
    font-size: 1rem;
    margin-bottom: 0;
}

.parchment-card-wide {
    grid-column: 2 / span 1;
    margin-top: 10px;
}

.parchment-card-btn {
    cursor: pointer;
    border: 2px solid #222;
    background: #f6ecd3;
    border-radius: 16px;
    box-shadow: 0 0 16px 2px #111a, 0 2px 8px #0004;
    transition: box-shadow 0.2s, border-color 0.2s, background 0.2s;
    outline: none;
    padding: 8px;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: none;
    appearance: none;
}
.parchment-card-btn:hover, .parchment-card-btn:focus {
    box-shadow: 0 0 24px 4px #000c, 0 4px 16px #0006;
    border-color: #444;
    background: #e7d7b7;
}

.navlink-no-underline {
    text-decoration: none !important;
    color: inherit !important;
}
.navlink-no-underline:visited,
.navlink-no-underline:active,
.navlink-no-underline:focus {
    color: inherit !important;
    text-decoration: none !important;
}
.navlink-no-underline .parchment-card-title,
.navlink-no-underline .parchment-card-desc {
    color: inherit !important;
    text-decoration: none !important;
    cursor: inherit;
}

@media (max-width: 1000px) {
    .parchment-card-grid {
        grid-template-columns: 1fr 1fr;
        max-width: 650px;
    }
    .parchment-card-wide {
        grid-column: 1 / span 2;
    }
}
@media (max-width: 700px) {
    .parchment-card-grid {
        grid-template-columns: 1fr;
        max-width: 350px;
    }
    .parchment-card-wide {
        grid-column: 1 / span 1;
    }
}

/* Tab navigation styles */
.tab-nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #b09b6a;
    background: transparent;
}
.tab-btn {
    background: none;
    border: none;
    font-weight: bold;
    font-size: 1.1rem;
    color: #b09b6a;
    padding: 0.5rem 1.2rem;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    outline: none;
}
.tab-btn.active, .tab-btn:hover, .tab-btn:focus {
    color: #fff;
    border-bottom: 2px solid #fff;
    background: #b09b6a22;
}

/* Parchment header for PC Backstory Creator */
.parchment-header {
    color: #7c6232; /* dark parchment brown */
    font-family: 'Times New Roman', Times, serif;
    text-shadow: 0 1px 0 #e7d7b7, 0 2px 2px #0002;
}

.parchment-dark {
    color: #d8cbaa;
    /* dark parchment brown, adjust as needed */
}

/* Parchment button styles */
.btn-parchment {
    background-color: #f5ecd6;
    color: #6b4f27;
    border: 1px solid #e0cfa0;
    box-shadow: 0 2px 4px rgba(107, 79, 39, 0.08);
    font-weight: 600;
    transition: background 0.2s, color 0.2s, border 0.2s;
}
.btn-parchment:hover, .btn-parchment:focus {
    background-color: #f0e3c0;
    color: #4b3412;
    border-color: #d1b77a;
}

/* D&D Themed Modal Styles */
.dnd-modal-content {
    background-color: #f6ecd3; /* Light parchment color */
    border: 2px solid #7c6232; /* Darker parchment border */
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    font-family: 'Times New Roman', Times, serif;
    max-height: 90vh; /* Limit modal height */
    display: flex;
    flex-direction: column;
}

/* Ensure the modal dialog respects the container bounds */
.modal-dialog.modal-lg .dnd-modal-content {
    width: 100%;
    max-width: 100%;
}

.dnd-modal-header {
    background-color: #7c6232; /* Dark parchment brown */
    color: #f6ecd3; /* Light parchment text */
    border-bottom: 1px solid #5a472a;
    padding: 15px 20px;
    flex-shrink: 0; /* Prevent header from shrinking */
}

.dnd-modal-title {
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.dnd-btn-close {
    color: #f6ecd3; /* Light parchment color for close button */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    opacity: 0.8;
}

.dnd-btn-close:hover {
    opacity: 1;
}

.dnd-modal-body {
    padding: 20px;
    color: #3e2f1f; /* Dark text color */
    overflow-y: auto; /* Enable vertical scrolling */
    overflow-x: hidden; /* Prevent horizontal scrolling */
    flex: 1; /* Allow body to grow and fill available space */
    max-height: calc(90vh - 120px); /* Limit height accounting for header and footer */
    word-wrap: break-word; /* Break long words */
    overflow-wrap: break-word; /* Modern browsers */
    box-sizing: border-box; /* Include padding in calculations */
}

/* Ensure all content within modal body wraps properly */
.dnd-modal-body * {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    box-sizing: border-box;
}

/* Specific styling for headings to prevent overflow */
.dnd-modal-body h1, .dnd-modal-body h2, .dnd-modal-body h3, 
.dnd-modal-body h4, .dnd-modal-body h5, .dnd-modal-body h6 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

/* Specific styling for list items to prevent overflow */
.dnd-modal-body ul, .dnd-modal-body ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    max-width: 100%;
}

.dnd-modal-body li {
    margin-bottom: 0.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

/* Handle long text in paragraphs */
.dnd-modal-body p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin-bottom: 1rem;
}

.dnd-modal-footer {
    border-top: 1px solid #e0cfa0;
    padding: 15px 20px;
    background-color: #f0e3c0; /* Slightly darker parchment for footer */
    flex-shrink: 0; /* Prevent footer from shrinking */
}

.dnd-btn {
    background-color: #7c6232; /* Dark parchment brown button */
    color: #f6ecd3; /* Light parchment text on button */
    border: 1px solid #5a472a;
    font-weight: bold;
    padding: 8px 20px;
    border-radius: 5px;
    transition: background-color 0.2s, border-color 0.2s;
}

.dnd-btn:hover {
    background-color: #5a472a; /* Even darker on hover */
    border-color: #3e2f1f;
    color: #fff;
}

/* Additional modal responsiveness */
@media (max-width: 768px) {
    .dnd-modal-content {
        max-height: 95vh;
        margin: 0.5rem;
    }
    
    .dnd-modal-body {
        max-height: calc(95vh - 100px);
        padding: 15px;
    }
    
    .dnd-modal-header,
    .dnd-modal-footer {
        padding: 10px 15px;
    }
}

/* Campaign page specific styles */
.pc-backstory-panel {
    position: sticky;
    top: 20px;
    max-height: 80vh;
    overflow-y: auto;
    background: #f6ecd3 !important;
    border: 2px solid #7c6232 !important;
    box-shadow: 0 4px 12px rgba(124, 98, 50, 0.3);
}

.character-item {
    background: #f0e3c0 !important;
    border: 1px solid #d1b77a !important;
    transition: background-color 0.2s, transform 0.1s;
}

.character-item:hover {
    background: #e7d7b7 !important;
    transform: translateY(-1px);
}

.character-item .btn-link {
    color: #6b4f27 !important;
    text-decoration: none !important;
    font-weight: 600;
    width: 100%;
    text-align: left;
}

.character-item .btn-link:hover {
    color: #4b3412 !important;
}

.character-summary {
    background: #f0e3c0 !important;
    border: 1px solid #d1b77a !important;
    max-height: 400px;
}

.character-summary h5 {
    color: #6b4f27;
    font-weight: bold;
}

.summary-content {
    font-size: 0.9rem;
    color: #5a4a3a;
}

.summary-content h5, .summary-content h6 {
    color: #7c6232;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.summary-content ul {
    padding-left: 1.2rem;
}

.summary-content li {
    margin-bottom: 0.3rem;
}

/* Responsive design for Campaign page */
@media (max-width: 768px) {
    .pc-backstory-panel {
        position: static;
        max-height: none;
        margin-bottom: 2rem;
    }
    
    .character-summary {
        max-height: 300px;
    }
}

/* Faction styling */
.faction-card {
    background-color: #f8f9fa;
    border-left: 4px solid #1b6ec2;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.faction-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
}

.faction-motto {
    font-style: italic;
    color: #6c757d;
    border-left: 3px solid #e9ecef;
    padding-left: 15px;
    margin-left: 10px;
}

.faction-description {
    line-height: 1.6;
}

.factions-guidance {
    background-color: #e7f3ff;
    border-left: 4px solid #0d6efd;
}

.no-factions-message {
    background-color: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 0.5rem;
}

.belief-list .input-group {
    margin-bottom: 0.5rem;
}

.belief-list .input-group:last-child {
    margin-bottom: 0;
}

/* Renown system styling */
.renown-ranks-container {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 0.5rem;
    background-color: #f8f9fa;
}

.renown-rank-item {
    padding: 0.25rem 0;
    border-bottom: 1px solid #e9ecef;
}

.renown-rank-item:last-child {
    border-bottom: none;
}

.renown-display .badge {
    min-width: 30px;
    text-align: center;
}

/* Renown table row selection styling */
.table-active {
    background-color: rgba(13, 110, 253, 0.15) !important;
}

.renown-ranks-container .table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.renown-ranks-container .table tbody tr.table-active:hover {
    background-color: rgba(13, 110, 253, 0.2) !important;
}

/* Symbol image styling */
.symbol-preview img {
    object-fit: cover;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.symbol-preview img:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Button tooltip improvements */
.btn[title]:hover {
    position: relative;
}

/* Make belief input groups more compact */
.belief-list .input-group-text {
    border-color: #dee2e6;
}

/* Image upload area styling */
.form-control[type="file"] {
    cursor: pointer;
}

.form-control[type="file"]:hover {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Prerequisites styling */
.text-info {
    color: #0d6efd !important;
}

/* Renown rank prerequisites styling */
.renown-rank-item .text-info {
    font-style: italic;
}

/* Perks styling */
.text-success {
    color: #198754 !important;
}

/* Renown rank perks styling */
.renown-rank-item .text-success {
    font-style: italic;
}

/* Enhanced styling for prerequisites and perks */
.renown-rank-item .text-info,
.renown-rank-item .text-success {
    line-height: 1.4;
}

/* Enhanced description section styling */
.rank-description-section {
    background-color: #f8f9fa;
    border-left: 4px solid #0d6efd;
}

.rank-description-section label {
    color: #495057;
    font-weight: 600;
}

/* Improved renown display grid layout */
.renown-display-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.renown-rank-card {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 0.75rem;
    background-color: #f8f9fa;
    transition: box-shadow 0.2s ease-in-out;
}

.renown-rank-card:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.rank-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.rank-description {
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.rank-prerequisites {
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.rank-perks {
    margin-bottom: 0;
    line-height: 1.4;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .renown-display-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1200px) {
    .renown-display-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

/* Improved faction card spacing */
.faction-card .row .col-md-4,
.faction-card .row .col-md-6,
.faction-card .row .col-md-8,
.faction-card .row .col-12 {
    margin-bottom: 1rem;
}

.faction-card .row .col-12:last-child {
    margin-bottom: 0;
}

/* Further optimization for content distribution */
.faction-card .beliefs-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.faction-card .belief-badge {
    background-color: #e9ecef;
    color: #495057;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.faction-card .belief-badge i {
    font-size: 0.75rem;
}

/* Enhanced grid responsiveness */
@media (min-width: 992px) and (max-width: 1199px) {
    .renown-display-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Better spacing for faction cards */
.faction-card .section-content {
    margin-bottom: 1.5rem;
}

.faction-card .section-content:last-child {
    margin-bottom: 0;
}

/* Faction section styling */
.faction-section {
    border-left: 4px solid #dee2e6;
    padding-left: 1rem;
}

.faction-section h5 {
    font-weight: 600;
    color: #495057;
}

.faction-section h5 i.fa-globe {
    color: #0d6efd !important;
}

.faction-section h5 i.fa-map {
    color: #198754 !important;
}

/* Section divider */
.faction-section:not(:last-child) {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 2rem;
    margin-bottom: 2rem !important;
}

/* Faction Editor Validation Alert Styling */
.factions-section .alert-warning {
    background-color: #fff3cd;
    border: 2px solid #d4a373;
    color: #664d03;
    border-radius: 8px;
}

.factions-section .alert-warning .fas {
    color: #d4a373;
}

.factions-section .alert-warning .btn-close {
    background-color: transparent;
    color: #664d03;
    opacity: 0.8;
}

.factions-section .alert-warning .btn-close:hover {
    opacity: 1;
    color: #d4a373;
}

/* Guilds */
.guilds-section {
    margin-top: 2rem;
}

.guild-card {
    transition: all 0.3s ease;
    background: #fefefe;
}

.guild-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-2px);
}

.guild-type-card {
    border: 2px solid #e9ecef;
    border-radius: 0.375rem;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    margin-bottom: 0.5rem;
}

.guild-type-card:hover {
    border-color: #0d6efd;
    background: #f8f9fa;
}

.guild-type-card.selected {
    border-color: #0d6efd;
    background: #e7f1ff;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.guild-type-card .type-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #6c757d;
}

.guild-type-card.selected .type-icon {
    color: #0d6efd;
}

.guild-type-card h6 {
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.guild-ranks-display {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.guild-rank-badge {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 120px;
}

.guild-rank-badge .rank-title {
    font-weight: bold;
    color: #495057;
    margin-bottom: 0.25rem;
}

.guild-rank-badge .rank-details {
    color: #6c757d;
    font-size: 0.75rem;
    line-height: 1.2;
}

.rank-description-section {
    background: #f8f9fa;
}

.guilds-guidance {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-left: 4px solid #ffc107;
}

.no-guilds-message {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-guilds-message .text-muted {
    max-width: 400px;
}

.guild-checkbox-group {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
}

.guild-checkbox-group .form-check {
    margin-bottom: 0.5rem;
}

.guild-checkbox-group .form-check:last-child {
    margin-bottom: 0;
}

.guild-checkbox-group .form-check-label {
    font-size: 0.9rem;
    color: #495057;
}

.guild-checkbox-group .form-label.small {
    font-weight: bold;
    color: #6c757d;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.guild-characteristics-display {
    background: #f8f9fa;
    border-radius: 0.375rem;
    padding: 1rem;
    font-size: 0.875rem;
}

.characteristic-group {
    margin-bottom: 0.75rem;
}

.characteristic-group:last-child {
    margin-bottom: 0;
}

.characteristic-group strong {
    color: #495057;
    font-size: 0.85rem;
}

.characteristic-tags {
    margin-top: 0.25rem;
    line-height: 1.8;
}

.characteristic-tags .badge {
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}

/* About Page Styles */
.about-info {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #333;
}

.about-story p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
    text-align: justify;
}

.mission-statement {
    font-style: italic;
    padding: 1rem;
    background-color: #e9ecef;
    border-left: 4px solid #1b6ec2;
    border-radius: 4px;
    margin-top: 1.5rem;
}

.contact-info {
    border-top: 2px solid #dee2e6;
    padding-top: 1.5rem;
}

.contact-info a {
    color: #1b6ec2;
    text-decoration: none;
    font-weight: 500;
}

.contact-info a:hover {
    text-decoration: underline;
}