* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: #3b82f6;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.navbar {
    background-color: #3b82f6;
    color: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.navbar a {
    color: #fff;
    margin-right: 20px;
    font-size: 1em;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.navbar a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.navbar .active {
    background-color: rgba(255, 255, 255, 0.3);
}

main {
    flex: 1;
    padding: 20px;
}

section {
    background-color: #fff;
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h1 {
    font-size: 1.5em;
    color: #2c3e50;
    margin-bottom: 15px;
}

h2 {
    font-size: 1em;
    color: #2c3e50;
    margin-bottom: 15px;
}

.muted-text {
    color: #888;
}

ul.item-list {
    list-style: none;
    margin-top: 15px;
}

ul.item-list li {
    padding: 5px 0;
    border-bottom: 1px solid #ddd;
}

ul.item-list li:last-child {
    border-bottom: none;
}

ul.item-list li a {
    font-weight: 500;
}

ul.item-list li a:hover {
    color: #0056b3;
}

.search-container {
    position: relative;
    margin-bottom: 1rem;
}

#searchInput {
    width: 100%;
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.search-icon {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    pointer-events: none;
    font-size: 1rem;
    opacity: 0.25;
}

.home .features,
.home .getting-started {
    margin-top: 25px;
}

.home .features ul {
    list-style: disc inside;
    margin-left: 20px;
}

.home .features li {
    margin-bottom: 12px;
}

.home .getting-started a {
    color: #3b82f6;
    font-weight: bold;
}

.role-name,
.permission-name {
    word-break: break-word;
    overflow-wrap: break-word;
}

.role-table {
    margin-top: 15px;
}

.role-table-header {
    display: flex;
    background-color: #f8f9fa;
    padding: 12px 0;
    border-bottom: 2px solid #ddd;
    font-weight: 600;
    color: #2c3e50;
}

.role-name-header {
    flex: 1;
    padding-left: 10px;
}

.role-type-header {
    width: 150px;
    text-align: right;
    padding-right: 10px;
}

.role-row {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #ddd;
    transition: background-color 0.2s ease;
}

.role-row:hover {
    background-color: #f8f9fa !important;
}

.role-row:last-child {
    border-bottom: none;
}

.role-name-cell {
    flex: 1;
    padding-left: 10px;
}

.role-name-cell a {
    font-weight: 500;
    color: #3b82f6;
    text-decoration: none;
}

.role-name-cell a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.role-type-cell {
    width: 150px;
    text-align: right;
    padding-right: 10px;
    color: #6c757d;
    font-size: 0.9em;
    font-weight: 500;
}

.copy-button {
    background-color: #f4f4f4;
    color: #aaa;
    padding: 2px 6px;
    font-size: 0.8rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: inline-block;
    vertical-align: middle;
    margin-left: 8px;
}

.copy-button:hover {
    background-color: #e0e0e0;
}

.copy-button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(153, 153, 153, 0.5);
}

footer {
    background-color: #2c3e50;
    color: #9ca3af;
    text-align: center;
    padding: 1rem;
    font-size: 0.8em;
    border-top: 1px solid #e5e7eb;
    margin-top: auto;
}

footer p {
    margin: 0;
    line-height: 1.4;
}

footer a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: #fff;
}

.compare-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
}

.compare-container .compare-column {
    flex: 1;
    padding: 0 10px;
}

.compare-container .compare-column label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    text-align: center;
}

.compare-container .compare-column input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.results-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.results-container .result-column {
    flex: 1;
    padding: 0 10px;
}

.results-container .result-column h2 {
    text-align: center;
    margin-bottom: 10px;
}

.results-container .result-column ul {
    list-style: none;
    padding: 0;
}

.results-container .result-column ul li {
    padding: 5px;
    border-bottom: 1px solid #ddd;
}

.results-container .result-column ul li a {
    text-decoration: none;
    color: #3b82f6;
}

.results-container .result-column ul li a:hover {
    text-decoration: underline;
}