html {
    font-size: 14px;
}

html, body {
    overflow-x: hidden;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus, textarea:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.bg-gray {
    background-color: #31373D;
}

.rounded-corners {
    border-radius: 30px;
}

.bg-blue {
    background-color: #2E548E !important;
    border-color: transparent !important;
}

.bg-blue:hover {
    background-color: #254577 !important;
    border-color: transparent !important;
}

.bg-red {
    background-color: #8D2424 !important;
    border-color: transparent !important;
}

.bg-red:hover {
    background-color: #842323 !important;
    border-color: transparent !important;
}

input[type=radio]:checked:after {
    background-color: #2E548E !important;
    border-color: #2E548E !important;
}

input[type=radio]:checked {
    background-color: #2E548E !important;
    border-color: #2E548E !important;
}

input[type=checkbox]:checked:after {
    background-color: #2E548E !important;
    border-color: #2E548E !important;
}

input[type=checkbox]:checked {
    background-color: #2E548E !important;
    border-color: #2E548E !important;
}

.success-green {
    color: #2F7536;
}

.error-red {
    color: #752929;
}

.btn-transparent {
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 6px;
    background-color: transparent;
    color: white;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: background-color 0.2s ease-in-out;
    cursor: pointer;
}

.btn-transparent:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.rounded-section {
    border-radius: 15px;
    background-color: transparent;
    border: 2px solid #C5C5C5;
    color: white;
}

.text-fit {
    display: inline-block;
    width: auto;
}

.item:hover {
    background-color: #212529;
    border-radius: 10px;
    transition: background-color 0.2s ease;
}

.edit-icon {
    color: #414141;
    transition: color 0.3s ease, background-color 0.5s ease;
}

.edit-icon:hover {
    color: white;
    background-color: #414141;
}

.scrollable {
    max-height: 40rem;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #414141 #262626;
    overflow: visible;
}

input[type="file"],
input[type="password"],
input[type="text"],
textarea {
    background-color: transparent !important;
    border: 1px solid white !important;
    color: white !important;
    border-radius: 5px !important;
    transition: background-color 0.4s ease, color 0.4s ease;
}

input[type="file"]:focus,
input[type="password"]:focus,
input[type="text"]:focus,
textarea:focus {
    box-shadow: 0 0 0.5rem rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid white !important;
    color: white !important;
    border-radius: 5px !important;
}

.item {
    position: relative;
}

.dashboard-item-box {
    position: relative;
}

.error-div {
    display: flex;
    align-items: center;
    color: white;
    background-image: linear-gradient(to right, #212529, #2c3238);
    padding: 20px;
    border-radius: 10px;
    gap: 10px;
}

.error-div i {
    flex-shrink: 0;
}

.error-div p {
    margin: 0;
}

@keyframes pulseBackground {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

body:not(.ev-public) {
    background-color: #0b0c0f;
    background-image: linear-gradient(180deg, #0b0c0f 0%, #101216 100%);
}

.dashboard-side-menu {
    background-color: #222529;
    border-radius: 15px;
}

.dashboard-side-menu-item {
    background-color: #2C2F33;
    border-radius: 15px;
    padding: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
    color: #9A9A9A;
    font-weight: 700;
    transition: background-color 0.2s ease-in-out;
}

.dashboard-side-menu-item:hover {
    background-color: #373A3E;
    border-radius: 15px;
    padding: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
    color: #9A9A9A;
    font-weight: 700;
}

.dashboard-side-menu-sub-item {
    padding-left: 40px;
    margin-top: 10px;
    margin-bottom: 10px;
    color: #9A9A9A;
    font-weight: 700;
    transition: background-color 0.2s ease-in-out;
}

.dashboard-side-menu-sub-item:hover {
    color: #B5B5B5;
}

.dashboard-side-menu-sub-item-icon {
    float: right;
    margin-right: 20px;
}

.dashboard-item-box {
    width: 9rem;
    height: 9rem;
    background-color: #2C2F33;
    text-align: center;
    border-radius: 10px;
    transition: background-color 0.2s ease-in-out;
}

.dashboard-item-box:hover {
    background-color: #373A3E;
}

.file-icon {
    color: #E4E4E4;
}

.selected-item {
    outline: 2px solid white;
}

.folder-item {
    background-color: #2C2F33;
    min-width: 180px;
    transition: background-color 0.15s ease-in-out;
    border: 1px solid transparent;
    cursor: pointer!important;
}

.folder-item:hover {
    background-color: #373A3E;
    border-color: #9A9A9A;
}

.file-list-item {
    transition: background-color 0.15s ease-in-out;
    border-radius: 4px;
    cursor: pointer !important;
    border-left: 3px solid transparent;
}

.file-list-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.file-list-item.selected {
    background-color: rgba(0, 123, 255, 0.15);
    border-left: 3px solid #007bff;
    border-radius: 0;
}

.file-list-item a {
    opacity: 0.6;
    transition: opacity 0.15s;
    color: #9A9A9A !important;
}

.file-list-item a:hover {
    opacity: 1;
}

.selected-folder {
    background-color: #2c2c2c;
    border: 1px solid #aaa;
}

.file-list-item[hidden] {
    display: none !important;
}

#dropZone {
    border: 2px dashed #2E548E;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

#dropZone.drag-over {
    border-color: #3b82f6;
    background-color: #2C2F33;
}

.bg-blue {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

.bg-blue:hover {
    background-color: #2E548E;
    border-color: #2E548E;
}

.information-div {
    align-items: center;
    color: white;
    background-image: linear-gradient(to right, #212529, #2c3238);
    padding: 20px;
    border-radius: 10px;
}

.contact-us-textarea {
    height: 150px;
}

.logo-image {
    max-width: 100px;
}

.dashboard-accordion {
    cursor: pointer;
    transition: 0.4s;
}

.dashboard-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    padding: 0 18px;
}

.dashboard-panel.active {
    max-height: 2000px;
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

.credential-badge {
    background-color: #2C2F33;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 8px;
    display: inline-block;
    transition: background-color 0.2s ease-in-out;
    cursor: default;
}

.credential-badge:hover {
    background-color: #373A3E;
}

.credential-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-item {
    font-size: 0.95rem;
    color: #cbd5e0;
}

.detail-item .label {
    font-weight: 300;
    margin-right: 8px;
    opacity: 0.8;
}

.detail-item .value {
    font-family: monospace;
    letter-spacing: 1px;
}

/* Credential list layout lives in credentials.css (.ev-dashboard #credentialsList) */
#credentialsList:not(.accordion) {
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px;
    padding-bottom: 50px;
    scrollbar-gutter: stable;
}

#credentialsList::-webkit-scrollbar {
    width: 6px;
}

#credentialsList::-webkit-scrollbar-track {
    background: transparent;
}

#credentialsList::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}

#credentialsList::-webkit-scrollbar-thumb:hover {
    background: #444;
}

.accordion-item {
    background: transparent !important;
    border: none !important;
    margin-bottom: 12px;
}

.accordion-button {
    background-color: #1a1a1a !important;
    color: white !important;
    border: 1px solid #2d2d2d !important;
    border-radius: 16px !important;
    padding: 1.2rem;
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    background-color: #222 !important;
    border-bottom-color: transparent !important;
}

.accordion-button:focus {
    box-shadow: none !important;
    border-color: #333 !important;
}

.accordion-collapse {
    border: none !important;
    transition: height 0.3s ease-in-out;
}

.accordion-collapse.show {
    visibility: visible !important;
    overflow: visible !important;
    display: block !important;
}

.accordion-body {
    background-color: #222 !important;
    border: 1px solid #2d2d2d !important;
    border-top: none !important;
    border-bottom-left-radius: 16px !important;
    border-bottom-right-radius: 16px !important;
    padding: 1.5rem !important;
    margin-top: -1px !important;
}

.vault-input {
    background-color: #121212 !important;
    border: 1px solid #333 !important;
    color: #eee !important;
    border-radius: 10px !important;
}

.field-label {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #555;
    margin-bottom: 6px;
}

.input-group .btn {
    border-color: #333 !important;
    z-index: 0 !important;
}

.input-group-vault {
    display: flex;
    background-color: #212529 !important;
    border: 1px solid #6c757d !important;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.input-group-vault .vault-input {
    flex: 1;
    background-color: transparent !important;
    border: none !important;
    color: #fff !important;
    padding: 0.375rem 0.75rem;
    outline: none;
    box-shadow: none !important;
}

.btn-vault {
    background-color: transparent !important;
    border: none !important;
    border-left: 1px solid #3d4145 !important;
    color: #adb5bd !important;
    padding: 0 15px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-vault:hover {
    background-color: #2c3034 !important;
    color: #fff !important;
}

.vault-input:focus {
    box-shadow: none !important;
}

.input-group-vault:focus-within {
    border-color: #fff !important;
}

.delete-btn-hover:hover {
    color: #dc3545 !important;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 6px;
}

.accordion-button::after {
    margin-left: 45px;
}