main > .container, main > .container-fluid {
    padding: 70px 15px 20px;
}

.footer {
    background-color: #f5f5f5;
    font-size: .9em;
    height: 60px;
}

.footer > .container, .footer > .container-fluid {
    padding-right: 15px;
    padding-left: 15px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view th,
.grid-view td:last-child {
    white-space: nowrap;
}

.grid-view .filters input,
.grid-view .filters select {
    min-width: 50px;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.navbar form > button.logout {
    padding-top: 7px;
    color: rgba(255, 255, 255, 0.5);
}

@media(max-width:767px) {
    .navbar form > button.logout {
        display: block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
}

.navbar form > button.logout:focus,
.navbar form > button.logout:hover {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
}

.navbar form > button.logout:focus {
    outline: none;
}

/* style breadcrumb widget as in previous bootstrap versions */
.breadcrumb {
    background-color: var(--bs-gray-200);
    border-radius: .25rem;
    padding: .75rem 1rem;
}

.breadcrumb-item > a {
    text-decoration: none;
}

.word_list {
    margin-bottom: 40px; /* custom: added for visual separation */
    padding-bottom: 20px; /* custom: consistent with anagram sections */
    border-bottom: 1px solid #eee; /* custom: subtle divider */
}

.word_list span {
  /*  border: 1px dashed;*/
    padding: 2px 10px;
    margin-right: 8px;
    float: left;
    border-radius: 9px;
    font-size: 16px;
    margin-bottom: 8px;
}

.word_list > h2 {
    color: #2c3e50; /* custom */
    font-size: 1.8em; /* custom */
    margin-bottom: 20px; /* custom */
    border-bottom: 1px solid #ddd; /* custom */
    padding-bottom: 10px; /* custom */
}

.number_word_link {
    clear: both;
    border: 1px solid;
    border-radius: 18px;
    padding: 10px 20px;
    text-align: center;
    margin: 10px 0;
}

.page-item.disabled span {
    color: #6c757d;
    pointer-events: none;
    background-color: #fff;
    padding: 0.375rem 0.75rem;
    position: relative;
    display: block;
    border: 1px solid #dee2e6;
}

pre {
    font-size: 14px;
    margin-bottom: 12px;
    margin-top: 5px;
}

.anagrams-words {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-left: 10px;
    margin-top: 10px;
}

.anagram-word {
    background: #f8f9fa;
    padding: 6px 12px;
    border-radius: 16px;
    border: 1px solid #e9ecef;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
    font-size: 0.95em;
    color: #495057;
    font-weight: 500;
}

.anagram-link {
    color: #2980b9;
    text-decoration: none;
    font-weight: 500;
}

.anagram-link:hover {
    color: #1f618d;
    text-decoration: none;
}

.anagram-word:has(.anagram-link) {
    background: #e3f2fd;
    border-color: #90caf9;
}

.definition-badge {
    font-size: 0.75em;
    opacity: 0.8;
}


.anagrams-group-title {
    color: #27ae60;
    font-size: 1.3em;
    margin-bottom: 15px;
    font-weight: bold;
}

.anagrams-count {
    color: #7f8c8d;
    font-weight: normal;
    font-size: 0.9em;
}
