.nav-pills .nav-link {
    border-radius: 0.375rem;
    margin-bottom: 0.25rem;
    color: #6c757d !important;
    font-size: 0.875rem;
    font-weight: 400;
    padding: 0.5rem 0.75rem;
}


.nav-pills .nav-link.active {
    color: #495057 !important;
    background-color: #E3E5ED;
    font-weight: 600;
}

.profile-subtitle {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #495057 !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.nav-link i {
    width: 16px;
    margin-right: 0.5rem;
    font-size: 0.875rem;
}

.switch {
    --button-width: 3.5em;
    --button-height: 2em;
    --toggle-diameter: 1.5em;
    --button-toggle-offset: calc((var(--button-height) - var(--toggle-diameter)) / 2);
    --toggle-shadow-offset: 10px;
    --toggle-wider: 3em;
    --color-grey: #cccccc;
    --color-green: #4296f4;
}

.slider {
    display: inline-block;
    width: var(--button-width);
    height: var(--button-height);
    background-color: var(--color-grey);
    border-radius: calc(var(--button-height) / 2);
    position: relative;
    transition: 0.3s all ease-in-out;
}

.slider::after {
    content: "";
    display: inline-block;
    width: var(--toggle-diameter);
    height: var(--toggle-diameter);
    background-color: #fff;
    border-radius: calc(var(--toggle-diameter) / 2);
    position: absolute;
    top: var(--button-toggle-offset);
    transform: translateX(var(--button-toggle-offset));
    box-shadow: var(--toggle-shadow-offset) 0 calc(var(--toggle-shadow-offset) * 4) rgba(0, 0, 0, 0.1);
    transition: 0.3s all ease-in-out;
}

.switch input[type="checkbox"]:checked + .slider {
    background-color: var(--color-green);
}

.switch input[type="checkbox"]:checked + .slider::after {
    transform: translateX(calc(var(--button-width) - var(--toggle-diameter) - var(--button-toggle-offset)));
    box-shadow: calc(var(--toggle-shadow-offset) * -1) 0 calc(var(--toggle-shadow-offset) * 4) rgba(0, 0, 0, 0.1);
}

.switch input[type="checkbox"] {
    display: none;
}

.switch input[type="checkbox"]:active + .slider::after {
    width: var(--toggle-wider);
}

.switch input[type="checkbox"]:checked:active + .slider::after {
    transform: translateX(calc(var(--button-width) - var(--toggle-wider) - var(--button-toggle-offset)));
}

.feature-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4296f4, #6c757d);
    opacity: 0;
    transition: opacity 0.3s ease;
}


.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}

.icon-blue-gradient {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: #1976d2;
}

.feature-icon i {
    font-size: 1.75rem;
    transition: transform 0.3s ease;
}


.feature-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.feature-title {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: #2c3e50;
    letter-spacing: -0.025em;
}

.feature-description {
    color: #6c757d;
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 0.95rem;
    flex: 1;
}

.feature-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f1f3f4;
}

.features-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    flex: 1;
}

.feature-card--compact {
    min-height: auto;       
    height: auto;
}
.feature-card--compact .feature-content {
    display: block;         
}
.feature-card--compact .feature-bottom-row {
    margin-top: 12px;
}

.feature-badge {
    background: #f8f9fa;
    color: #495057;
    padding: 0.25rem 0.5rem;
    border-radius: 16px;
    font-size: 0.7rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
    white-space: nowrap;
}


.feature-badge i {
    font-size: 0.65rem;
    opacity: 0.7;
}

.btn-xs {
    padding: 0.25rem 0.625rem;
    font-size: 0.7rem;
    border-radius: 6px;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 80px;
}

.btn-outline-primary {
    border-color: #4296f4;
    color: #4296f4;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


.btn-outline-success {
    border-color: #28a745;
    color: #28a745;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


@media (max-width: 768px) {
    .feature-card {
        padding: 1.25rem;
    }

    .feature-icon {
        width: 48px;
        height: 48px;
    }

    .feature-icon i {
        font-size: 1.5rem;
    }

    .features-container {
        gap: 0.25rem;
    }

    .feature-badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.45rem;
    }

    .feature-bottom-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .btn-xs {
        align-self: center;
        padding: 0.375rem 1rem;
        min-width: auto;
    }
}

.feature-card {
    opacity: 0;
    transform: translateZ(0) scale(0.98);
    will-change: opacity, transform;
    animation: fadeIn 450ms cubic-bezier(.22,.61,.36,1) forwards;
}

.feature-card:nth-child(2) {
    animation-delay: 100ms;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .feature-card {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

a.back-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 12px;
    background: #fff;               
    border: 1px solid #eaeaea;        
    color: inherit;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,.06); 
    transition: box-shadow .2s ease, transform .2s ease;
}

a.back-button:hover {
    transform: translateX(-3px);
}

a.back-button i { 
    transition: transform .2s ease; 
}

.search-group {
    position: relative;
}

.search-input {
    font-size: 16px;
    padding: 10px 10px 10px 5px;
    display: block;
    width: 100%;
    border: none;
    border-bottom: 1px solid #515151;
    background: transparent;
}

.search-input:focus {
    outline: none;
}

.search-label {
    color: #999;
    font-size: 14px;
    font-weight: normal;
    position: absolute;
    pointer-events: none;
    left: 5px;
    top: 10px;
    transition: 0.2s ease all;
    -moz-transition: 0.2s ease all;
    -webkit-transition: 0.2s ease all;
}

.search-input:focus ~ .search-label, .search-input:valid ~ .search-label {
    top: -10px;
    font-size: 12px;
    color: #6C757D;
}

.search-bar {
    position: relative;
    display: block;
    width: 100%;
}

.search-bar:before, .search-bar:after {
    content: '';
    height: 2px;
    width: 0;
    bottom: 1px;
    position: absolute;
    background: #6C757D;
    transition: 0.2s ease all;
    -moz-transition: 0.2s ease all;
    -webkit-transition: 0.2s ease all;
}

.search-bar:before {
    left: 50%;
}

.search-bar:after {
    right: 50%;
}

.search-input:focus ~ .search-bar:before, .search-input:focus ~ .search-bar:after {
    width: 50%;
}

.search-highlight {
    position: absolute;
    height: 60%;
    width: 100px;
    top: 25%;
    left: 0;
    pointer-events: none;
    opacity: 0.5;
}

.search-input:focus ~ .search-highlight {
    animation: searchInputHighlighter 0.3s ease;
}

@keyframes searchInputHighlighter {
    from {
        background: #6C757D;
    }

    to {
        width: 0;
        background: transparent;
    }
}

kbd {
    background-color: #f8f9fa;
    color: #212529;
    border-radius: 0.25rem;
    border: 1px solid #ced4da;
    box-shadow: 0 2px 0 1px #adb5bd;
    cursor: default;
    font-family: sans-serif;
    font-size: 0.75em;
    line-height: 1;
    display: inline-block;      
    text-align: center;
    padding: 2px 5px;
    margin-right: 4px;          
    position: relative;
    top: -1px;                  
}

kbd:hover {
    box-shadow: 0 1px 0 1px #adb5bd; 
    top: 1px;                           
}

#visibleOrganizationsModal .modal-body td:last-child,
#registerModal .modal-body td:last-child {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: #495057 !important;
}

.visibility-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.2em 0.9em 0.2em 0.6em;
    border-radius: 0.8em;
    line-height: 1.5;
    white-space: nowrap;
    background: #f3f4f6;       
    color: #374151;
    border: 0;
    font-weight: 500;
    cursor: pointer;
    transition: background-color .15s ease, transform .1s ease;
}
.visibility-badge:hover { background: #e5e7eb; }
.visibility-badge:active { transform: translateY(0); }
.visibility-badge:focus-visible {
    outline: 3px solid rgba(37,99,235,.25);
    outline-offset: 2px;
}
.visibility-badge .icon {
    width: 1.1em;
    height: 1.1em;
    display: inline-block;
    opacity: .85;
}

.api-logins-table-scroll {
    max-height: 70vh;
    overflow-y: auto;
}