.search {
    width: 320px;
}

.navbar {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
}

/* Progress bar under navbar */
.navbar-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: transparent;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.navbar-progress.visible {
    opacity: 1;
}

.navbar-progress::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #6c757d, transparent);
    animation: progressSlide 1.2s ease-in-out infinite;
}

@keyframes progressSlide {
    0% {
        left: -30%;
    }
    100% {
        left: 100%;
    }
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
    list-style-type: none;
    padding: 0;
    margin: 2rem 0;
}

.pagination .page-item .page-link {
    background: transparent;
    border: none;
    color: #6c757d;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.pagination .page-item .page-link:hover {
    color: #f8f9fa;
    background: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="light"] .pagination .page-item .page-link:hover {
    color: #212529;
    background: rgba(0, 0, 0, 0.05);
}

.pagination .page-item.active .page-link {
    color: #f8f9fa;
    background: #495057;
}

[data-bs-theme="light"] .pagination .page-item.active .page-link {
    color: #fff;
    background: #495057;
}

.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Dropdown Menu */
.dropdown-menu {
    background: #2b3035;
    border: none;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    padding: 0.5rem;
    min-width: 140px;
}

[data-bs-theme="light"] .dropdown-menu {
    background: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.dropdown-item {
    color: #adb5bd;
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
    color: #f8f9fa;
    background: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="light"] .dropdown-item {
    color: #495057;
}

[data-bs-theme="light"] .dropdown-item:hover,
[data-bs-theme="light"] .dropdown-item:focus {
    color: #212529;
    background: rgba(0, 0, 0, 0.05);
}


.auto-resize{
    field-sizing: content;
}

/* Navbar Status - Minimal text display */
.navbar-status {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.navbar-status .status-content {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6c757d;
    opacity: 0;
    transform: translateY(-4px);
    transition: all 0.25s ease;
    pointer-events: none;
}

.navbar-status.visible .status-content {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Status spinner - hidden */
.status-spinner {
    display: none !important;
}

/* Animated loading dots */
.loading-dots::after {
    content: '';
    animation: loadingDots 1.5s infinite;
}

@keyframes loadingDots {
    0% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
    100% { content: ''; }
}

/* Status types - minimal colors, no backgrounds */
.navbar-status .status-content.status-loading {
    color: #adb5bd;
}

.navbar-status .status-content.status-success {
    color: #51cf66;
}

.navbar-status .status-content.status-warning {
    color: #fcc419;
}

.navbar-status .status-content.status-error {
    color: #ff6b6b;
}

.navbar-status .status-content.status-info {
    color: #6c757d;
}

/* Light theme adjustments */
[data-bs-theme="light"] .navbar-status .status-content.status-loading {
    color: #6c757d;
}

[data-bs-theme="light"] .navbar-status .status-content.status-success {
    color: #40c057;
}

[data-bs-theme="light"] .navbar-status .status-content.status-warning {
    color: #f59f00;
}

[data-bs-theme="light"] .navbar-status .status-content.status-error {
    color: #fa5252;
}

/*--------------------------------------------------------------------------------*/

/* Theme Toggle Switch - Minimalist */
.theme-switch {
    cursor: pointer;
    user-select: none;
}

.theme-switch-track {
    position: relative;
    width: 48px;
    height: 24px;
    background: #495057;
    border-radius: 12px;
    padding: 2px;
    transition: background 0.3s ease;
}

[data-bs-theme="light"] .theme-switch-track {
    background: #dee2e6;
}

.theme-switch-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: #f8f9fa;
    border-radius: 50%;
    transition: transform 0.3s ease;
    z-index: 2;
}

[data-bs-theme="light"] .theme-switch-thumb {
    transform: translateX(24px);
    background: #495057;
}

.theme-icon-sun,
.theme-icon-moon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.theme-icon-sun {
    right: 6px;
    color: #adb5bd;
    opacity: 1;
}

.theme-icon-moon {
    left: 6px;
    color: #6c757d;
    opacity: 0.4;
}

[data-bs-theme="light"] .theme-icon-sun {
    opacity: 0.4;
    color: #6c757d;
}

[data-bs-theme="light"] .theme-icon-moon {
    opacity: 1;
    color: #495057;
}

.theme-switch:hover .theme-switch-track {
    background: #5a6268;
}

[data-bs-theme="light"] .theme-switch:hover .theme-switch-track {
    background: #ced4da;
}

/*--------------------------------------------------------------------------------*/

/* Action Buttons - Minimalist */
.btn-action {
    border-color: #6c757d;
    color: #6c757d;
    transition: all 0.2s ease;
}

.btn-action:hover {
    background: #6c757d;
    border-color: #6c757d;
    color: #fff;
}

[data-bs-theme="light"] .btn-action {
    border-color: #adb5bd;
    color: #495057;
}

[data-bs-theme="light"] .btn-action:hover {
    background: #495057;
    border-color: #495057;
    color: #fff;
}

/* Delete button - subtle red accent on hover */
.btn-delete:hover {
    background: #6c757d;
    border-color: #6c757d;
    color: #ff6b6b;
}

[data-bs-theme="light"] .btn-delete:hover {
    background: #495057;
    border-color: #495057;
    color: #ff6b6b;
}

/* Copied state - subtle green checkmark */
.btn-copied {
    border-color: #51cf66 !important;
    color: #51cf66 !important;
}

.btn-copied:hover {
    background: transparent !important;
    border-color: #51cf66 !important;
    color: #51cf66 !important;
}

/*--------------------------------------------------------------------------------*/

/* Elegant Modal Design */
.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-header {
    border-bottom: none;
    padding: 1.5rem 1.5rem 0.5rem;
    position: relative;
    cursor: move;
    user-select: none;
}

.modal-header:active {
    cursor: grabbing;
}

.modal-title {
    font-weight: 300;
    letter-spacing: 0.5px;
    width: 100%;
    text-align: center;
    padding-right: 2rem;
}

.modal-body {
    padding: 1rem 1.5rem 1.5rem;
}

.modal-footer {
    border-top: none;
    padding: 0.5rem 1.5rem 1.5rem;
    gap: 0.5rem;
}

/* Minimal Input Fields */
.modal .input-group {
    position: relative;
    margin-bottom: 1.5rem !important;
}

.modal .input-group .input-group-text {
    background: transparent;
    border: none;
    border-bottom: 1px solid #495057;
    border-radius: 0;
    color: #6c757d;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 0;
    min-width: 60px;
}

[data-bs-theme="light"] .modal .input-group .input-group-text {
    border-bottom-color: #dee2e6;
    color: #6c757d;
}

.modal .form-control,
.modal .form-select {
    background: transparent;
    border: none;
    border-bottom: 1px solid #495057;
    border-radius: 0;
    padding: 0.5rem 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

[data-bs-theme="light"] .modal .form-control,
[data-bs-theme="light"] .modal .form-select {
    border-bottom-color: #dee2e6;
}

.modal .form-control:focus,
.modal .form-select:focus {
    background: transparent;
    border-color: #6c757d;
    box-shadow: none;
    border-bottom-width: 2px;
}

[data-bs-theme="light"] .modal .form-control:focus,
[data-bs-theme="light"] .modal .form-select:focus {
    border-color: #495057;
}

.modal .form-control::placeholder {
    color: #6c757d;
    opacity: 0.6;
}

/* Minimal Save Button */
.modal .input-group .btn {
    background: transparent;
    border: none;
    border-bottom: 1px solid #495057;
    border-radius: 0;
    color: #6c757d;
    padding: 0.5rem 0.75rem;
    transition: color 0.2s ease;
}

[data-bs-theme="light"] .modal .input-group .btn {
    border-bottom-color: #dee2e6;
}

.modal .input-group .btn:hover {
    background: transparent;
    color: #f8f9fa;
}

[data-bs-theme="light"] .modal .input-group .btn:hover {
    color: #212529;
}

/* Elegant Switches Row */
.switches-row {
    display: flex;
    gap: 1.5rem;
    padding: 0.75rem 0;
    justify-content: flex-end;
}

.switch-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.switch-label {
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

[data-bs-theme="light"] .switch-label {
    color: #6c757d;
}

.switches-row .form-check-input {
    width: 2rem;
    height: 1rem;
    background-color: #495057;
    border: none;
    cursor: pointer;
    margin: 0;
    border-radius: 0.5rem;
}

[data-bs-theme="light"] .switches-row .form-check-input {
    background-color: #dee2e6;
}

.switches-row .form-check-input:checked {
    background-color: #6c757d;
}

[data-bs-theme="light"] .switches-row .form-check-input:checked {
    background-color: #495057;
}

.switches-row .form-check-input:focus {
    box-shadow: none;
}

.switch-item.switch-highlight .switch-label {
    color: #fcc419;
    animation: softPulse 2.5s ease-in-out infinite;
}

.switch-item.switch-highlight .form-check-input {
    background-color: #fcc419;
    animation: softPulse 2.5s ease-in-out infinite;
}

.switch-item.switch-highlight .form-check-input:checked {
    background-color: #fab005;
    animation: none;
}

/* Elegant Key Type Toggle */
.modal .btn-group {
    gap: 0;
    border-bottom: 1px solid #495057;
    border-radius: 0;
}

[data-bs-theme="light"] .modal .btn-group {
    border-bottom-color: #dee2e6;
}

.modal .btn-group .btn {
    border: none;
    border-radius: 0;
    background: transparent;
    color: #6c757d;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    padding: 0.5rem 1rem;
    transition: color 0.2s ease;
}

.modal .btn-group .btn-check:checked + .btn {
    background: transparent;
    color: #f8f9fa;
    box-shadow: inset 0 -2px 0 currentColor;
}

[data-bs-theme="light"] .modal .btn-group .btn-check:checked + .btn {
    color: #212529;
}

/* Ghost Buttons */
.btn-ghost {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.btn-ghost:hover {
    color: #f8f9fa;
}

[data-bs-theme="light"] .btn-ghost {
    color: #6c757d;
}

[data-bs-theme="light"] .btn-ghost:hover {
    color: #212529;
}

.btn-ghost-danger:hover {
    color: #ff6b6b;
}

.btn-ghost-success {
    color: #51cf66;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.btn-ghost-success:hover {
    color: #40c057;
}

.btn-ghost-success.btn-ghost-disabled,
.btn-ghost-success:disabled {
    color: #6c757d;
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-ghost-success.btn-ghost-disabled:hover,
.btn-ghost-success:disabled:hover {
    color: #6c757d;
}

.btn-ghost-warning {
    color: #fcc419 !important;
    animation: softPulse 2.5s ease-in-out infinite;
}

.btn-ghost-warning:hover {
    color: #fab005 !important;
    animation: none;
}

/* Soft pulsing animation for highlighted elements */
@keyframes softPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Language Selector */
.language-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #495057;
}

[data-bs-theme="light"] .language-selector {
    border-bottom-color: #dee2e6;
}

.language-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.language-options {
    display: flex;
    gap: 0.5rem;
}

.language-btn {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6c757d;
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
}

.language-btn:hover {
    color: #adb5bd;
    background: rgba(255, 255, 255, 0.05);
}

[data-bs-theme="light"] .language-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.btn-check:checked + .language-btn {
    color: #f8f9fa;
    background: #495057;
}

[data-bs-theme="light"] .btn-check:checked + .language-btn {
    color: #fff;
    background: #495057;
}

.btn-ghost-primary {
    color: #adb5bd;
}

.btn-ghost-primary:hover {
    color: #f8f9fa;
}

[data-bs-theme="light"] .btn-ghost-primary {
    color: #495057;
}

[data-bs-theme="light"] .btn-ghost-primary:hover {
    color: #212529;
}

/* Footer Layout */
.modal-footer {
    justify-content: space-between;
    align-items: center;
}

.footer-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.footer-separator {
    color: #495057;
    font-size: 0.8rem;
}

[data-bs-theme="light"] .footer-separator {
    color: #dee2e6;
}

/* Copied state for ghost buttons */
.btn-ghost.btn-copied {
    color: #51cf66 !important;
}

/*--------------------------------------------------------------------------------*/

/* Translation Rows */
.translation-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #343a40;
}

[data-bs-theme="light"] .translation-row {
    border-bottom-color: #f1f3f4;
}

.translation-row:last-child {
    border-bottom: none;
}

.translation-lang {
    font-size: 0.7rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 24px;
    padding-top: 0.5rem;
}

.translation-row .form-control {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0.4rem 0;
    resize: none;
    line-height: 1.5;
}

.translation-row .form-control:focus {
    background: transparent;
    box-shadow: none;
}

/* Icon Button */
.btn-icon {
    background: none;
    border: none;
    color: #495057;
    padding: 0.4rem;
    cursor: pointer;
    transition: color 0.2s ease;
    opacity: 0.5;
}

.btn-icon:hover {
    color: #6c757d;
    opacity: 1;
}

[data-bs-theme="light"] .btn-icon {
    color: #adb5bd;
}

[data-bs-theme="light"] .btn-icon:hover {
    color: #495057;
}

.btn-icon.text-success {
    color: #51cf66 !important;
    opacity: 1;
}

.btn-icon.text-danger {
    color: #ff6b6b !important;
    opacity: 1;
}

/* Unsaved changes indicator - yellow highlight */
.btn-icon.btn-unsaved {
    color: #f59e0b !important;
    opacity: 1;
    animation: pulseUnsaved 1.5s ease-in-out infinite;
}

@keyframes pulseUnsaved {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

/*--------------------------------------------------------------------------------*/

/* Minimal Modal (Confirm & Alert) */
.modal-minimal .modal-content {
    border-radius: 16px;
    overflow: hidden;
}

.modal-minimal .modal-body {
    padding: 2rem 1.5rem 1rem;
}

.modal-minimal .modal-footer {
    padding: 0.5rem 1.5rem 1.5rem;
    border-top: none;
}

.modal-message {
    font-size: 1rem;
    font-weight: 400;
    color: #f8f9fa;
    margin: 0;
}

[data-bs-theme="light"] .modal-message {
    color: #212529;
}

.modal-subtitle {
    font-size: 0.8rem;
    color: #6c757d;
    margin: 0;
}

.modal-icon {
    font-size: 2rem;
    color: #6c757d;
}

.modal-icon.icon-error {
    color: #ff6b6b;
}

.modal-icon.icon-success {
    color: #51cf66;
}

.modal-icon.icon-warning {
    color: #fcc419;
}

/*--------------------------------------------------------------------------------*/

/* From Uiverse.io by mobinkakei */

.loader {
  position: relative;
  width: 40px;
  height: 40px;
  background: #a19dad;
  transform: rotateX(65deg) rotate(45deg);
  // remove bellows command for perspective change
  //transform: perspective(200px) rotateX(65deg) rotate(45deg);
  color: #fff;
  animation: layers1 1s linear infinite alternate;
}
.loader:after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.7);
  animation: layerTr 1s linear infinite alternate;
}

@keyframes layers1 {
  0% {
    box-shadow: 0px 0px 0 0px;
  }
  90%,
  100% {
    box-shadow: 20px 20px 0 -4px;
  }
}
@keyframes layerTr {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(-25px, -25px) scale(1);
  }
}




