:root {
	--poppins: 'Poppins', sans-serif;
	--lato: 'Lato', sans-serif;

	--light: #F9F9F9;
	--purple: #BB86FC;
	--light-blue: #CFE8FF;
	--grey: #eee;
	--dark-grey: #AAAAAA;
	--dark: #010102;
	--red: #DB504A;
	--yellow: #FFCE26;
	--light-yellow: #FFF2C6;
	--orange: #FD7238;
	--light-orange: #FFE0D3;
    --purple-dark: #0C0217;
    --purple-bold: #4F2EB2;
    --white: #FFFFFF;
    --white-dark: #C8CBD9;
    --black: #010102;
    --grey-bold-dar: #757575;
    --blue: #7E91EC;
    --file: #C1D2F0;
    --border: #ccc;
    --table-background: #333;
    --vault-bg: linear-gradient(145deg, #1C1A29, #181622);
    --vault-surface: rgba(24, 22, 34, 0.82);
    --vault-surface-alt: rgba(32, 30, 46, 0.78);
    --vault-card: #222030;
    --vault-card-hover: #28263a;
    --vault-border: rgba(167, 123, 255, 0.28);
    --vault-border-strong: rgba(167, 123, 255, 0.55);
    --vault-shadow: 0 24px 60px rgba(8, 5, 20, 0.55);
    --vault-shadow-hover: 0 30px 70px rgba(12, 8, 28, 0.65);
    --vault-text: #F5F5F5;
    --vault-muted: #B0B0BF;
    --vault-accent-gradient: linear-gradient(135deg, #7E57C2, #9575CD);
    --vault-accent-strong: #A77BFF;
    --sidebar-width: clamp(200px, 16vw, 240px);
    --sidebar-collapsed-width: 76px;
    --content-max-width: clamp(960px, 90vw, 1600px);
    --content-padding-x: clamp(16px, 4vw, 32px);
    --vault-content-buffer: clamp(6px, 1vw, 12px);
    --row-padding: 14px;
    --row-gap: 10px;
    --card-padding-y: 18px;
    --topnav-padding-y: 9px;
}

body.dark {
    --light: #0C0C1E;
    --grey: #0C0217;
    --dark: #FBFBFB;
}

li {
	list-style: none;
}

html[data-density='compact'] {
    --row-padding: 8px;
    --row-gap: 6px;
    --card-padding-y: 12px;
    --topnav-padding-y: 7px;
}

@media (min-width: 1440px) {
    html:not([data-density='compact']) {
        --row-padding: 12px;
        --row-gap: 8px;
        --card-padding-y: 16px;
        --topnav-padding-y: 8px;
    }
}

body {
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
    font-family: 'Inter', 'Roboto', sans-serif;
    color: var(--vault-text);
    background: var(--vault-bg);
    background-attachment: fixed;
}

/* Navigation & Layout */
.icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 1.6;
    fill: none;
}

.vault-icon-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.vault-layout {
    display: flex;
    min-height: 100vh;
    background: transparent;
}

.vault-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px 0 20px;
    background: rgba(20, 18, 32, 0.92);
    backdrop-filter: blur(8px);
    border-right: 1px solid rgba(167, 123, 255, 0.15);
    transition: width 0.25s ease, transform 0.25s ease;
    z-index: 1040;
}

.vault-sidebar[data-collapsed="true"] {
    width: var(--sidebar-collapsed-width);
}

.vault-main {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100vh;
    margin-left: var(--sidebar-width);
    transition: margin-left 0.25s ease;
}

.vault-layout[data-sidebar-collapsed="true"] .vault-main {
    margin-left: var(--sidebar-collapsed-width);
}

.vault-layout[data-sidebar-open="true"] .vault-sidebar {
    transform: translateX(0);
}

.sidebar-header {
    padding: calc(12px + env(safe-area-inset-top, 0px)) 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--vault-text);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.sidebar-logo {
    width: 32px;
    height: 32px;
    border-radius: 12px;
}

.sidebar-title {
    font-size: 1rem;
}

.vault-sidebar .nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--vault-muted);
    padding: 12px 22px;
    margin: 0 12px;
    border-radius: 12px;
    text-decoration: none;
    font: 500 0.9rem/1 var(--poppins, 'Inter', sans-serif);
    position: relative;
    transition: background 0.25s ease, color 0.25s ease, transform 0.15s ease;
}

.vault-sidebar .nav-item::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    border-radius: 4px;
    background: var(--vault-accent-gradient);
    transition: height 0.25s ease, opacity 0.25s ease;
    opacity: 0;
}

.vault-sidebar .nav-item:hover,
.vault-sidebar .nav-item:focus-visible {
    background: rgba(167, 123, 255, 0.12);
    color: var(--white);
    transform: translateX(3px);
}

.vault-sidebar .nav-item.active {
    background: linear-gradient(160deg, rgba(126, 87, 194, 0.35), rgba(149, 117, 205, 0.15));
    color: var(--white);
    box-shadow: 0 0 8px rgba(167, 123, 255, 0.25);
}

.vault-sidebar .nav-item.active::before {
    height: 60%;
    opacity: 1;
}

.vault-sidebar[data-collapsed="true"] .sidebar-title,
.vault-sidebar[data-collapsed="true"] .nav-item span,
.vault-sidebar[data-collapsed="true"] .sidebar-upload-text {
    opacity: 0;
    width: 0;
    pointer-events: none;
}

.vault-sidebar[data-collapsed="true"] .nav-item {
    justify-content: center;
    padding: 12px 0;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 0;
}

.sidebar-quick {
    padding: 12px 18px;
}

.sidebar-upload {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
    color: var(--vault-text);
}

.sidebar-upload:focus-visible,
.sidebar-upload:hover {
    background: rgba(167, 123, 255, 0.18);
    box-shadow: 0 12px 28px rgba(20, 18, 32, 0.4);
    outline: none;
    transform: translateY(-1px);
}

.sidebar-upload-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(167, 123, 255, 0.2);
    color: var(--vault-text);
}

.sidebar-footer {
    padding: 20px 12px calc(20px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-item--small {
    font-size: 0.85rem;
    gap: 10px;
}

.vault-topnav {
    position: sticky;
    top: 0;
    left: 0;
    z-index: 1030;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: calc(100% + var(--sidebar-width));
    margin-left: calc(-1 * var(--sidebar-width));
    padding: env(safe-area-inset-top, 0px) 24px var(--topnav-padding-y) calc(var(--sidebar-width) + 24px);
    box-sizing: border-box;
    background: rgba(26, 22, 42, 0.85);
    backdrop-filter: blur(10px) saturate(120%);
    border-bottom: 1px solid rgba(167, 123, 255, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    transition: box-shadow 0.2s ease, backdrop-filter 0.2s ease;
}

.vault-topnav[data-elevated="true"] {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(14px) saturate(140%);
}

.vault-layout[data-sidebar-collapsed="true"] .vault-topnav {
    width: calc(100% + var(--sidebar-collapsed-width));
    margin-left: calc(-1 * var(--sidebar-collapsed-width));
    padding-left: calc(var(--sidebar-collapsed-width) + 24px);
}

.topnav-left,
.topnav-center,
.topnav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(28, 26, 40, 0.6);
    color: var(--vault-text);
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.sidebar-toggle:hover,
.sidebar-toggle:focus-visible {
    background: rgba(167, 123, 255, 0.25);
    box-shadow: 0 0 8px rgba(167, 123, 255, 0.35);
    outline: none;
    transform: translateY(-1px);
}

.topnav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--vault-text);
    font-weight: 600;
    letter-spacing: 0.01em;
}

.topnav-logo {
    width: 32px;
    height: 32px;
    border-radius: 10px;
}

.topnav-title {
    font-size: 1rem;
    color: var(--vault-muted);
}

.topnav-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 10px;
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    transition: background 0.25s ease, box-shadow 0.25s ease;
    position: relative;
}

.topnav-search:focus-within {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 6px rgba(167, 123, 255, 0.25);
}

.topnav-search input {
    background: transparent;
    border: none;
    color: var(--vault-text);
    font: 500 0.9rem/1 var(--poppins, 'Inter', sans-serif);
    width: clamp(200px, 25vw, 340px);
}

.topnav-search input:focus {
    outline: none;
}

.search-submit,
.search-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.04);
    color: var(--vault-text);
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.search-submit:hover,
.search-submit:focus-visible,
.search-close:hover,
.search-close:focus-visible {
    background: rgba(167, 123, 255, 0.2);
    outline: none;
}

.search-close {
    display: none;
}

.topnav-search-toggle {
    display: none;
    border: none;
    background: transparent;
    color: var(--vault-text);
    cursor: pointer;
}

.topnav-language {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.topnav-language select {
    background: transparent;
    border: none;
    color: var(--vault-text);
    font: 500 0.85rem/1 var(--poppins, 'Inter', sans-serif);
}

.topnav-language select:focus {
    outline: none;
}

.topnav-theme {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(28, 26, 40, 0.6);
    color: var(--vault-text);
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.topnav-theme:hover,
.topnav-theme:focus-visible {
    background: rgba(167, 123, 255, 0.25);
    box-shadow: 0 0 8px rgba(167, 123, 255, 0.35);
    outline: none;
}

.topnav-theme[aria-pressed="true"] .theme-icon--sun {
    display: none;
}

.topnav-theme[aria-pressed="false"] .theme-icon--moon {
    display: none;
}

.topnav-notifications,
.topnav-profile {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.notification-dropdown,
.profile-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 280px;
    background: rgba(18, 16, 33, 0.95);
    border-radius: 16px;
    border: 1px solid rgba(167, 123, 255, 0.2);
    box-shadow: 0 18px 38px rgba(8, 6, 18, 0.4);
    padding: 16px;
    display: none;
    z-index: 1050;
}

.notification-dropdown.active,
.profile-dropdown.active {
    display: block;
}

.notification-btn,
.profile-trigger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--vault-text);
    padding: 6px 10px;
    border-radius: 12px;
    transition: background 0.2s ease;
}

.notification-btn:hover,
.notification-btn:focus-visible,
.profile-trigger:hover,
.profile-trigger:focus-visible {
    background: rgba(255, 255, 255, 0.06);
    outline: none;
}

.profile-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    color: var(--vault-text);
    text-decoration: none;
    font-weight: 500;
}

.profile-dropdown a:hover,
.profile-dropdown a:focus-visible {
    color: var(--white);
}

.notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    color: var(--vault-text);
    font-weight: 600;
}

.mark-all {
    background: none;
    border: none;
    color: var(--vault-muted);
    font-size: 0.8rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.notification-messages {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification-msg {
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--vault-text);
    font-size: 0.85rem;
}

.notification-msg.active {
    background: rgba(167, 123, 255, 0.18);
}

.notification-badge {
    display: none;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    border-radius: 999px;
    background: #ff5572;
    color: #fff;
    font-size: 0.7rem;
    text-align: center;
    margin-left: -6px;
}

.vault-body {
    position: relative;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: auto;
}

.vault-content-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
    min-height: 0 !important;
    margin: 0;
    padding: 0 var(--content-padding-x);
    padding-right: 10px;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
}

.vault-content {
    position: relative;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0 !important;
    gap: 20px;
    padding: var(--vault-content-buffer);
    z-index: 1;
}

.vault-content--flush {
    gap: 0;
    padding-right: 30px;
    min-height: 0;
    overflow-y: auto;
}

.vault-content--flush > .vault-content-wrapper {
    padding: 0;
}

.vault-content--flush > .vault-footer {
    margin-top: var(--vault-content-buffer);
    padding: 0 var(--content-padding-x) var(--vault-content-buffer);
}

@media (max-width: 768px) {
    .vault-topnav {
        width: 100%;
        margin-left: 0;
        padding: env(safe-area-inset-top, 0px) 16px var(--topnav-padding-y) 16px;
    }

    .vault-content {
        padding: var(--vault-content-buffer);
    }

    .vault-content--flush {
        padding: 0;
    }
}

.vault-content main,
main#content {
    display: flex;
    justify-content: center;
    flex-direction: column;
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    width: calc(100% - 10px);
    height: 100%;
    margin: 10px 10px 10px 10px;
    border-radius: 28px;
    background: var(--vault-surface);
    border: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow: var(--vault-shadow);
    backdrop-filter: blur(18px);
    overflow: auto;
    transition: 0.3s ease;
}

.vault-layout[data-sidebar-collapsed="true"] .sidebar-upload-text,
.vault-layout[data-sidebar-collapsed="true"] .sidebar-title {
    display: none;
}

.vault-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    color: var(--vault-muted);
    font-size: 0.85rem;
}

.vault-footer a {
    color: var(--vault-accent-strong);
    font-weight: 600;
    text-decoration: none;
}

.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 1035;
}

.vault-layout[data-sidebar-open="true"] ~ .sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
}

.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.star, .twinkling-star, .moving-star {
    position: absolute;
    background: white;
    border-radius: 50%;
    transition: opacity 3s ease-in-out;
}

.star {
    width: 2px;
    height: 2px;
    opacity: 0.8;
}

.twinkling-star {
    width: 2px;
    height: 2px;
    animation: twinkle 15s infinite ease-in-out;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.moving-star {
    width: 2px;
    height: 2px;
    animation: move 30s linear infinite;
}

@keyframes move {
    from { transform: scale(1); opacity: 0.1; }
    to { transform: scale(3); opacity: 0; }
}

.nebula {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -500%;
    left: -500%;
    background: radial-gradient(circle, rgba(0,0,128,0.3), transparent);
    animation: drift 120s infinite linear;
    opacity: 0.2;
}

@keyframes drift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(40%, 40%); }
}

h1 {
    font-size: 3em;
    margin-bottom: 0.5em;
}

p {
    font-size: 1em;
    margin-bottom: 1em;
}

.index-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 90vh;
    flex-direction: column;
}

#sidebar {
	position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
	top: 0;
	left: 0;
	width: 200px;
	height: 100%;
	background: var(--purple-dark);
	z-index: 100;
	scrollbar-width: none;
    transition: .3s ease;
    border-right: 1px solid var(--purple);
    box-shadow: 0px 0px 4px var(--purple);
    -webkit-background-clip: padding-box; /* for Safari */
    background-clip: padding-box; /* for IE9+, Firefox 4+, Opera, Chrome */
}
#sidebar.hide {
    width: 60px;
}
#sidebar .side-menu {
	display: flex;
    flex-direction: column;
    padding: 10px;
}
#sidebar .side-menu.top {
    scrollbar-width: none;
    height: calc(100% - 350px);
    width: 100%;
    align-items: center;
    overflow-y: auto;
}
#sidebar.hide .side-menu.top {
    height: calc(100% - 220px);
}
#sidebar li {
    width: 100%;
}
#sidebar li a {
    display: flex;
    align-items: center;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-decoration: none;
    height: 35px;
    background: var(--black);
    border-radius: 5px;
    padding: 4px 15px 4px 15px;
    color: var(--white);
    border: 1px solid var(--white-dark);
    margin-bottom: 15px;
    position: relative;
    margin: 0px 15px 15px 15px;
    gap: 15px;
}
#sidebar.hide li a {
    padding: 4px;
    border: 1px solid transparent;
    background-color: transparent;
}
#sidebar.hide li a:hover {
    width: 75%;
}
#sidebar.hide li a.active {
    width: 75%;
}
#sidebar.hide li a span {
    display: none;
}
#sidebar li a:hover {
    width: 80%;
    border-radius: 5px 25px 25px 5px;
    background-color: var(--purple);
    color: var(--white);
    transition: background-color 0.3s ease, transform 0.3s ease, width 0.3s ease;
    border: 1px solid var(--purple);
    justify-content: center;
    position: relative;
    z-index: 2000;
}
#sidebar li a.active {
    width: 80%;
    border-radius: 5px 25px 25px 5px;
    background-color: var(--purple);
    color: var(--white);
    transition: background-color 0.3s ease, transform 0.3s ease, width 0.3s ease;
    border: 1px solid var(--purple);
    justify-content: center;
    position: relative;
    z-index: 2000;
}
#sidebar .side-menu.top li a img{
    width: 20px;
}
#sidebar .side-menu.top li a.logout {
	color: var(--red);
}

#sidebar .side-menu.top li a .bx {
	min-width: calc(60px  - ((4px + 6px) * 2));
	display: flex;
	justify-content: center;
}
#sidebar .side-menu.bottom {
    position: absolute;
    bottom: 20px;
    height: 200px;
    border: 1px solid var(--purple);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 10px;
    background: var(--purple-dark);
    width: 100%;
    max-width: 150px;
    left: 0;
    transition: .3s ease;
}
#sidebar.hide .side-menu.bottom {
    height: 60px;
    width: 60px;
    background: transparent;
    border: none;
    left: auto;
}
#sidebar.hide .side-menu.bottom div span {
    display: none;
}
#sidebar.hide .side-menu.bottom:hover {
    height: 200px;
    width: 100%;
    max-width: 150px;
    background: var(--purple-dark);;
    border: 1px solid var(--purple);
    left: 0;
}
#sidebar.hide .side-menu.bottom:hover div span {
    display: flex;
}
#sidebar .side-menu.bottom:hover {
    box-shadow: 0 0 5px var(--purple), 0 0 10px var(--purple), 0 0 15px var(--purple), 0 0 20px var(--purple);
    cursor: pointer;
}
#sidebar.hide .side-menu.bottom.dragover {
    height: 200px;
    width: 100%;
    max-width: 150px;
    background: var(--purple-dark);;
    border: 1px solid var(--purple);
    left: 0;
    box-shadow: 0 0 5px var(--purple), 0 0 10px var(--purple), 0 0 15px var(--purple), 0 0 20px var(--purple);
    cursor: pointer;
}
#sidebar.hide .side-menu.bottom.dragover div span {
    display: flex;
}
#sidebar .side-menu.bottom.dragover {
    box-shadow: 0 0 5px var(--purple), 0 0 10px var(--purple), 0 0 15px var(--purple), 0 0 20px var(--purple);
    cursor: pointer;
}
#sidebar .side-menu.bottom div {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.button-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 1em;
}

.button-container-left {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
}

.upload_default_icon {
    display: none;
}

.upload-button-container-left {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    margin-left: 10px;
}

.button {
    text-decoration: none;
    color: #ffffff;
    background-color: #bb86fc;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1em;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.button:hover {
    background-color: rgba(0, 0, 0, 0);
    color: #ffffff;
    background-color: #000000; /* Change background to black */
    box-shadow: 0 0 2px #bb86fc, 0 0 7px #bb86fc, 0 0 11px #bb86fc, 0 0 15px #bb86fc;
}

a.button {
    text-decoration: none;
    color: #ffffff;
    background-color: #bb86fc;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1em;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

a.button:hover {
    background-color: rgba(0, 0, 0, 0);
    color: #ffffff;
    background-color: #000000; /* Change background to black */
    box-shadow: 0 0 2px #bb86fc, 0 0 7px #bb86fc, 0 0 11px #bb86fc, 0 0 15px #bb86fc; /* Purple glow for button */
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 20px;
    transition: .3s ease;
    text-align: center;
}
.footer .left {
    margin-left: 230px;
    text-align: start;
}
.footer .left:hover {
    text-shadow: 0 0 5px var(--purple), 0 0 10px var(--purple), 0 0 15px var(--purple), 0 0 20px var(--purple);
}
#sidebar.hide ~ .footer .left {
    margin-left: 90px;
}
.footer .right {
    text-align: right;
    margin-right: 30px;
}
.footer .right:hover {
    text-shadow: 0 0 5px var(--purple), 0 0 10px var(--purple), 0 0 15px var(--purple), 0 0 20px var(--purple);
}
.index-top-nav {
    width: 100%;
    background-color: transparent;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    height: 80px;
    position: absolute;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center; 
    z-index: 1;
}
.index-logo {
    padding-left: 20px;
    align-items: center;
    display: flex;
}
.index-logo img {
    width: 30px;
}
.logo {
    width: 100%;
    height: 70px;
    align-items: center;
    display: flex;
    justify-content: center;
    border-bottom: 0.5px solid #c8cbd9;   
}
.logo img {
    width: 35px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--purple);
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
    cursor: pointer;
    font-size: 25px;
    font-weight: bold;
    transition: text-shadow 0.3s ease-in-out;
}

.logo-link:hover {
    text-shadow: 0 0 5px #ffffff, 0 0 10px #ffffff, 0 0 15px #ffffff, 0 0 20px #ffffff;
}
#sidebar.hide .logo-link span {
    display: none;  
}
.notification {
    position: relative;
    margin-right: 30px;
    align-content: center;
    cursor: pointer;
    margin-left: 20px;
}
.notification-badge {
    display: none;
    position: absolute;
    color: white;
    width: 20px !important;
    height: 20px !important;
    background-color: #bb86fc;
    border-radius: 10px;
    top: -5px;
    left: 10px;
    font-size: 15px;
    text-align: -webkit-auto;
    text-align: center;
}

.notification-dropdown {
    display: none;
}

.notification-dropdown.active {
    display: block;
    position: absolute;
    max-width: 350px;
    max-height: 500px;
    right: 0px;
    background-color: white;
    color: black;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 3px #bb86fc, 0 0 7px #bb86fc, 0 0 12px #bb86fc, 0 0 17px #bb86fc;
}
.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 20px;
}
.notification-header p:hover {
    color: #bb86fc;
}
.notification-messages {
    padding: 0;
    max-height: 400px;
    overflow-y: auto;
}
.notification-msg {
    display: flex;
    padding-bottom: 10px;
    padding-top: 10px;
    border-bottom: 1px solid gray;
    padding-right: 10px;
    padding-left: 10px;
}
.notification-msg.active {
    background-color: gainsboro;
}
.notification-msg span {
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 100%;
}
.notification-msg p {
    width: 20%;
    text-align: center;
}

.hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    padding-right: 20px;
}

.hamburger div {
    width: 30px;
    height: 3px;
    background-color: #ffffff;
    margin: 3px 0;
    transition: all 0.3s ease;
}

.hamburger:hover div {
    box-shadow: 0 0 5px #bb86fc, 0 0 10px #bb86fc, 0 0 15px #bb86fc, 0 0 20px #bb86fc;
    transition: box-shadow 0.3s ease-in-out;
}

/* New media query for small screens */
@media (max-width: 600px) {
    .hamburger {
        display: flex;
    }
}

.nav-links {
    display: none;
}

.nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 20px;
    background-color: transparent;
    box-shadow: none;
    padding: 10px;
    padding-right: 20px
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.5em;
    margin-bottom: 5px; 
    padding: 5px 10px;
    transition: background-color 0.3s ease;
}

.nav-links a:hover {
    text-shadow: 0 0 5px #bb86fc, 0 0 10px #bb86fc, 0 0 15px #bb86fc, 0 0 20px #bb86fc;
    transition: text-shadow 0.3s ease-in-out;
}

.upload-area {
    border: 2px dashed #ffffff; 
    border-radius: 10px; 
    padding: 10px;
    text-align: center;
    color: #bbb;
    margin: 10px;
    background-color: rgba(0, 0, 0, 0.8); 
    transition: background-color 0.3s ease;
    min-height: 150px;
}

#file-input {
    display: none; 
}

.upload-form-container {
    width: 100%;
    height: 100%;
    max-height: 900px;
    overflow: auto; 
    background-color: rgba(0, 0, 0, 0.1);
    box-sizing: content-box;
}

.upload-form-container h1 {
    font-size: 2em;
    margin-bottom: 15px;
    text-align: center;
    text-shadow: 0 0 3px #bb86fc, 0 0 7px #bb86fc, 0 0 12px #bb86fc, 0 0 17px #bb86fc;
}

.upload-form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 1em;
}

.upload-form-group label {
    font-size: 1.2em;
    margin-bottom: 0.5em;
    color: #ffffff;
    text-align: left;
    width: 100%;
}

.upload-form-group input {
    width: calc(100% - 1.5em);
    padding: 0.75em;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.upload-form-group input:focus {
    border-color: #bb86fc;
    box-shadow: 0 0 8px rgba(187, 134, 252, 0.6);
    outline: none;
}

.form-container {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #bb86fc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 90%;
    margin: auto;
    text-align: center;
    min-height: 200px;
    overflow-y: auto;
}

.form-container h1 {
    font-size: 2em;
    margin-top: 5px;
    margin-bottom: 10px;
    text-shadow: 0 0 3px #bb86fc, 0 0 7px #bb86fc, 0 0 12px #bb86fc, 0 0 17px #bb86fc;
}

.form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 1em;
}

.form-group label {
    font-size: 1.2em;
    margin-bottom: 0.5em;
    color: #ffffff;
    text-align: left;
    width: 100%;
}

.form-group input {
    width: calc(100% - 1.5em);
    padding: 0.75em;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus {
    border-color: #bb86fc;
    box-shadow: 0 0 8px rgba(187, 134, 252, 0.6);
    outline: none;
}

/* Legacy #content card styling kept for reference:
#content {
    ...
}
#sidebar.hide ~ #content { ... }
*/

/* Table Styles */
.table-container {
    display: flex;
    flex-direction: column;
    padding: 24px 0 18px;
    gap: 20px;
    transition: .3s ease;
    width: 100%;
    background: transparent;
}
.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.table-header.left {
    flex-direction: column;
    gap: 4px;
}
.table-header.left h2 {
    font-size: clamp(1.25rem, 1.8vw, 1.7rem);
    font-weight: 600;
    color: var(--vault-text);
    margin: 0;
}
.table-header.left a {
    color: var(--vault-muted);
    font-size: 0.85rem;
}
.table-header.center {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex: 1 1 360px;
    gap: 18px;
    flex-wrap: nowrap;
}
.table-header.center > * {
    flex: 0 0 auto;
}
@media (max-width: 1080px) {
    .table-header.center {
        flex-wrap: wrap;
        justify-content: center;
    }
    .table-header.center > * {
        flex: 1 1 360px;
    }
}
@media (max-width: 640px) {
    .table-header.center {
        flex-direction: column;
        align-items: stretch;
    }
    .table-header.center > * {
        width: 100%;
    }
}
.table-header.right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(33, 29, 48, 0.6);
    cursor: pointer;
    font-size: 0.88rem;
    border: 1px solid rgba(167, 123, 255, 0.35);
    height: 36px;
    padding: 0 16px;
    border-radius: 14px;
    color: var(--vault-text);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.toggle-btn:hover {
    background: rgba(126, 87, 194, 0.25);
    border-color: rgba(167, 123, 255, 0.55);
    transform: translateY(-1px);
}
.toggle-btn.left {
    border-radius: 14px 0px 0px 14px;
}
.toggle-btn.right {
    border-radius: 0px 14px 14px 0px;
}

.toggle-btn.active {
    background: var(--vault-accent-gradient);
    border-color: rgba(167, 123, 255, 0.85);
}
.toggle-group {
    display: inline-flex;
    align-items: center;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(167, 123, 255, 0.2);
    background: rgba(18, 16, 33, 0.6);
    box-shadow: 0 12px 32px rgba(10, 8, 22, 0.3);
}
.toggle-group .toggle-btn {
    border: none;
    border-radius: 0;
    padding: 0 18px;
    background: transparent;
}
.toggle-group .toggle-btn + .toggle-btn {
    border-left: 1px solid rgba(167, 123, 255, 0.15);
}
.toggle-group .toggle-btn.active {
    background: var(--vault-accent-gradient);
    color: var(--white);
}

.view-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}
.is-hidden {
    display: none !important;
}

#vault-filters {
    display: none;
    padding: 18px 20px;
    background: rgba(9, 12, 22, 0.85);
    border: 1px solid rgba(187, 134, 252, 0.3);
    border-radius: 14px;
    transition: opacity 0.25s ease;
    opacity: 0;
}

#vault-filters.is-visible {
    display: block;
    opacity: 1;
}

#vault-filters form {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

#vault-filters select,
#vault-filters input[type="date"],
#vault-filters input[type="number"] {
    width: 100%;
    background: rgba(32, 30, 46, 0.58);
    border: 1px solid rgba(167, 123, 255, 0.28);
    border-radius: 12px;
    color: var(--vault-text);
    padding: 10px 12px;
    font-size: 0.9rem;
}
#vault-filters select:focus,
#vault-filters input[type="date"]:focus,
#vault-filters input[type="number"]:focus {
    outline: none;
    border-color: rgba(167, 123, 255, 0.55);
    box-shadow: 0 0 0 3px rgba(167, 123, 255, 0.18);
}

#vault-filters .filter-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-toggle-btn.active {
    background-color: var(--purple);
    border-color: var(--purple);
    color: var(--white);
}
#vault-filters button[type="submit"] {
    padding: 10px 20px;
    border-radius: 12px;
    border: 1px solid rgba(167, 123, 255, 0.45);
    background: var(--vault-accent-gradient);
    color: var(--white);
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#vault-filters button[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(126, 87, 194, 0.35);
}
#vault-filters a {
    color: var(--vault-muted);
    text-decoration: none;
    font-size: 0.9rem;
}
#vault-filters a:hover {
    color: var(--vault-text);
    text-decoration: underline;
}
.filter-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 36px;
    border-radius: 14px;
    border: 1px solid rgba(167, 123, 255, 0.35);
    background: rgba(33, 29, 48, 0.65);
    color: var(--vault-text);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.filter-toggle-btn:hover,
.filter-toggle-btn:focus-visible {
    background: rgba(126, 87, 194, 0.25);
    border-color: rgba(167, 123, 255, 0.55);
    transform: translateY(-1px);
}
.filter-toggle-btn .icon {
    width: 18px;
    height: 18px;
}
.bulk-select {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    height: 36px;
    border-radius: 14px;
    border: 1px solid rgba(167, 123, 255, 0.25);
    background: rgba(18, 16, 33, 0.6);
    color: var(--vault-muted);
}
.bulk-select input {
    width: 18px;
    height: 18px;
}
.bulk-select span {
    color: var(--vault-text);
    font-size: 0.85rem;
}

/* Style the scrollbar track */
.table-container::-webkit-scrollbar {
    width: 15px;
}

/* Style the scrollbar thumb */
.table-container::-webkit-scrollbar-thumb {
    background-color: #ffffff;
    border-radius: 10px;
    border: 3px solid #000000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Change the thumb on hover */
.table-container::-webkit-scrollbar-thumb:hover {
    background-color: #bb86fc;
}

/* Style the scrollbar track */
.table-container::-webkit-scrollbar-track {
    border-radius: 10px;
    position: relative;
    margin-top: 118px;
    margin-bottom: 8px;
}

.upload-table-container {
    overflow-x: auto;
    padding-top: 1rem;
    overflow-y: auto; 
    margin-bottom: 1em;
    margin-left: 10px;
    margin-right: 10px;
}
/** file table **/
#bulk-form {
    overflow: auto;
    height: 100%;
}
/* Style the scrollbar track */
#bulk-form::-webkit-scrollbar {
    width: 15px;
}

/* Style the scrollbar thumb */
#bulk-form::-webkit-scrollbar-thumb {
    background-color: #ffffff;
    border-radius: 10px;
    border: 3px solid #000000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Change the thumb on hover */
#bulk-form::-webkit-scrollbar-thumb:hover {
    background-color: #bb86fc;
}

/* Style the scrollbar track */
#bulk-form::-webkit-scrollbar-track {
    border-radius: 10px;
    position: relative;
    margin-top: 30px;
    margin-bottom: 8px;
}

.file-table-header {
    display: none;
    grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(90px, 1fr));
    gap: 12px;
    padding: 0 clamp(16px, 3vw, 24px);
    margin-bottom: var(--row-gap);
    color: var(--vault-muted);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#bulk-form[data-view="list"] .file-table-header {
    display: grid;
    align-items: center;
}

.file-table-header .header-cell {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
    padding: 0;
    text-align: left;
}

.file-table-header .header-cell:hover,
.file-table-header .header-cell:focus-visible {
    color: var(--vault-text);
}

.file-table-header .header-cell:focus-visible {
    outline: 1px solid rgba(167, 123, 255, 0.6);
    outline-offset: 3px;
}

.file-table-header .header-cell--name {
    justify-content: flex-start;
}

.file-table-header .header-cell--type,
.file-table-header .header-cell--date,
.file-table-header .header-cell--size {
    justify-content: flex-start;
}

.file-table-header .header-cell.is-active {
    color: var(--vault-text);
}

.file-table-header .sort-indicator {
    display: inline-flex;
    font-size: 0.7rem;
    opacity: 0.8;
}

@media (max-width: 900px) {
    #bulk-form[data-view="list"] .file-table-header {
        display: none;
    }
    .file-explorer.is-list .file-meta {
        grid-template-columns: repeat(2, minmax(90px, auto));
        row-gap: 4px;
    }
}

@media (max-width: 640px) {
    .file-explorer.is-list .file-container {
        grid-template-columns: 24px minmax(0, 1fr) auto;
    }
    .file-explorer.is-list .file-content {
        grid-template-columns: 56px minmax(0, 1fr);
        gap: 6px 12px;
    }
    .file-explorer.is-list .file-meta {
        grid-template-columns: minmax(0, 1fr);
        gap: 2px 0;
    }
}
.file-explorer {
    display: grid;
    width: 100%;
    padding-top: 6px;
    gap: clamp(14px, 1.8vw, 22px);
    font-size: 1em;
    transition: background-color 0.3s ease, transform 0.3s ease, width 0.3s ease;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    overflow-y: auto;
}
.file-explorer.is-list {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--row-gap);
}
.file-explorer.is-compact:not(.is-list) .file-container {
    padding: calc(var(--card-padding-y) - 4px) clamp(14px, 2vw, 20px);
    gap: 12px;
}
.file-explorer.is-compact:not(.is-list) .thumbnail {
    aspect-ratio: 3 / 2;
}
.file-explorer.is-compact:not(.is-list) .file-meta {
    display: none;
}
.file-explorer.is-compact:not(.is-list) .filename {
    font-size: 0.92rem;
}
.file-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: var(--card-padding-y) clamp(16px, 2vw, 22px);
    position: relative;
    width: 100%;
    border-radius: 18px;
    border: 1px solid transparent;
    background: var(--vault-card);
    box-shadow: var(--vault-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
    cursor: pointer;
}
.file-explorer.is-list .file-container {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
    padding: var(--row-padding) clamp(16px, 3vw, 24px);
    border-radius: 14px;
}
.file-container:hover,
.file-container:focus-within {
    transform: translateY(-4px);
    box-shadow: var(--vault-shadow-hover);
    border-color: var(--vault-border-strong);
    background: var(--vault-card-hover);
}
.file-container.active {
    border-color: var(--vault-accent-strong);
    box-shadow: 0 0 0 1px rgba(167, 123, 255, 0.45), var(--vault-shadow-hover);
}
.file-table-header {
    display: none;
}
.file-table-row {
    display: none;
}

.file-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1 1 auto;
}
.file-explorer.is-list .file-content {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: 4px 16px;
    align-items: start;
}

.file-container .thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    background: linear-gradient(160deg, rgba(126, 87, 194, 0.25), rgba(149, 117, 205, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.file-explorer.is-list .file-container .thumbnail {
    width: 56px;
    min-width: 56px;
    height: 56px;
    border-radius: 12px;
    grid-column: 1 / 2;
    grid-row: 1 / span 3;
}
.file-container img,
.file-container .thumbnail svg,
.file-container .thumbnail img {
    width: 62%;
    height: 62%;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
}
.hover-preview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 10;
}

.file-container .checkbox {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 10px;
    background: rgba(8, 6, 18, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.file-container .checkbox input {
    width: 16px;
    height: 16px;
    cursor: pointer;
}
.file-container.active .checkbox,
.file-container:hover .checkbox,
.file-container:focus-within .checkbox,
.file-explorer.selection-active .file-container .checkbox {
    opacity: 1;
    pointer-events: auto;
}
.file-explorer.is-list .file-container .checkbox {
    position: static;
    opacity: 0;
    background: transparent;
    border: none;
    width: auto;
    height: auto;
    pointer-events: none;
}
.file-explorer.is-list .file-container .checkbox input {
    width: 18px;
    height: 18px;
}
.file-explorer.is-list .file-container:hover .checkbox,
.file-explorer.is-list .file-container:focus-within .checkbox,
.file-explorer.selection-active .file-container .checkbox {
    opacity: 1;
    pointer-events: auto;
}

.file-container .filename {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    max-width: 100%;
    text-overflow: ellipsis;
    font-weight: 500;
    font-size: 0.98rem;
}
.file-explorer.is-list .file-container .filename {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    font-size: 0.95rem;
}

.file-meta {
    display: flex;
    align-items: center;
    gap: 8px 16px;
    flex-wrap: wrap;
    color: var(--vault-muted);
    font-size: 0.82rem;
}
.file-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.file-container .filetype,
.file-container .modified,
.file-container .size {
    display: inline-flex;
    padding: 0;
}
.file-explorer.is-list .file-container .filetype,
.file-explorer.is-list .file-container .modified,
.file-explorer.is-list .file-container .size {
    font-size: 0.85rem;
}
.file-explorer.is-list .file-meta {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    display: grid;
    grid-template-columns: repeat(3, minmax(90px, auto));
    gap: 0 16px;
}
.speaker-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.speaker-tag,
.face-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(167, 123, 255, 0.18);
    color: var(--vault-text);
    font-size: 0.75rem;
    font-weight: 500;
}
.file-explorer.is-list .speaker-tags {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
}

.file-container .dropdown {
    position: absolute;
    top: 16px;
    right: 16px;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.file-container:hover .dropdown,
.file-container:focus-within .dropdown,
.file-container.active .dropdown {
    opacity: 1;
    transform: translateY(0);
}
.file-explorer.is-list .file-container .dropdown {
    position: static;
    opacity: 1;
    transform: none;
    justify-self: end;
}

@media (hover: none) {
    .file-container .dropdown,
    .file-container .checkbox {
        opacity: 1;
        transform: none;
    }
}

/* Photo editor overlay */
.photo-editor-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.97);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.photo-editor-modal.is-open {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.photo-editor-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.photo-editor-modal.is-open .photo-editor-backdrop {
    opacity: 1;
}

.photo-editor-shell {
    position: relative;
    min-width: clamp(340px, 70vw, 980px);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 32px;
    border-radius: 18px;
    background: rgba(26, 22, 42, 0.82);
    border: 1px solid rgba(167, 123, 255, 0.3);
    box-shadow: 0 18px 44px rgba(8, 6, 18, 0.45);
    backdrop-filter: blur(12px) saturate(120%);
    overflow: hidden;
}

.photo-editor-header,
.photo-editor-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 22px;
    border-radius: 14px;
    background: linear-gradient(160deg, rgba(126, 87, 194, 0.25), rgba(149, 117, 205, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.photo-editor-header-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.photo-editor-header-info h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--vault-text);
}

.photo-editor-subtitle {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(240, 241, 255, 0.78);
}

.photo-editor-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.toolbar-group {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.toolbar-group--zoom {
    align-items: center;
}

.toolbar-group--history {
    align-items: center;
}

.photo-editor-zoom-display {
    min-width: 56px;
    text-align: center;
    font-weight: 600;
    color: var(--vault-text);
}

.photo-editor-close {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(12, 12, 20, 0.45);
    color: var(--vault-text);
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.photo-editor-close:hover,
.photo-editor-close:focus-visible {
    background: rgba(167, 123, 255, 0.25);
    box-shadow: 0 0 6px rgba(167, 123, 255, 0.35);
    outline: none;
    transform: translateY(-1px);
}

.photo-editor-body {
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex: 1 1 auto;
    overflow: hidden;
}

.photo-editor-stage-area {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4px;
}

.photo-editor-stage-wrapper {
    width: 100%;
    background: rgba(15, 12, 26, 0.85);
    border-radius: 18px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
    max-height: 70vh;
    overflow: hidden;
}

.photo-editor-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 220px;
    max-height: calc(70vh - 36px);
}

.photo-editor-stage canvas {
    max-width: 100%;
    height: auto;
    max-height: calc(70vh - 48px);
    border-radius: 12px;
    box-shadow: 0 16px 42px rgba(8, 6, 18, 0.45);
}

.photo-editor-controls {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.photo-editor-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.photo-editor-tab {
    border-radius: 12px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(167, 123, 255, 0.16);
    color: var(--vault-muted);
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.photo-editor-tab.is-active {
    background: var(--vault-accent-gradient);
    color: var(--white);
    box-shadow: 0 10px 24px rgba(126, 87, 194, 0.28);
    border-color: rgba(167, 123, 255, 0.55);
}

.photo-editor-panels {
    background: rgba(18, 16, 33, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 22px 26px;
    display: grid;
    gap: 24px;
    box-shadow: 0 18px 36px rgba(8, 6, 18, 0.35);
}

.photo-editor-panel {
    display: none;
    flex-direction: column;
    gap: 18px;
}

.photo-editor-panel.is-active {
    display: flex;
}

.photo-editor-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.photo-editor-footer .footer-primary,
.photo-editor-footer .footer-secondary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.toolbar-button {
    font: 500 0.9rem/1 var(--poppins, 'Inter', sans-serif);
    padding: 10px 16px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.05);
    color: var(--vault-text);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.toolbar-button:hover,
.toolbar-button:focus-visible {
    transform: scale(1.03);
    box-shadow: 0 0 6px rgba(167, 123, 255, 0.3);
    outline: none;
}

.toolbar-button--primary {
    background: var(--vault-accent-gradient);
    color: var(--white);
    border-color: rgba(167, 123, 255, 0.6);
}

.toolbar-button--primary:hover,
.toolbar-button--primary:focus-visible {
    box-shadow: 0 10px 24px rgba(126, 87, 194, 0.35);
}

.toolbar-button--outline {
    background: transparent;
    border-color: rgba(167, 123, 255, 0.45);
    color: var(--vault-text);
}

.toolbar-button--outline:hover,
.toolbar-button--outline:focus-visible {
    background: rgba(167, 123, 255, 0.18);
}

.toolbar-button--ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--vault-text);
}

.toolbar-button[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.photo-editor-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(12, 10, 24, 0.62);
    border-radius: 12px;
    color: var(--vault-text);
}

.photo-editor-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(167, 123, 255, 0.24);
    overflow: hidden;
}

.photo-editor-progress::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--vault-accent-gradient);
    transform: translateX(-100%);
    animation: editor-progress 1.4s infinite ease-in-out;
}

@keyframes editor-progress {
    0% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(-10%);
    }
    100% {
        transform: translateX(100%);
    }
}

.dropbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(33, 29, 48, 0.85);
    color: var(--vault-text);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.dropbtn:hover,
.dropbtn:focus-visible {
    background: var(--vault-accent-gradient);
    border-color: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
}

.file-dropdown-content {
    display: none;
    background: rgba(18, 16, 33, 0.95);
    min-width: 180px;
    box-shadow: 0 18px 36px rgba(8, 6, 18, 0.45);
    border-radius: 14px;
    border: 1px solid rgba(167, 123, 255, 0.2);
    overflow: hidden;
}
.file-dropdown-content a {
    color: var(--vault-text);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    transition: background 0.2s ease, color 0.2s ease;
}
.file-dropdown-content a:hover {
    background: rgba(126, 87, 194, 0.18);
    color: var(--white);
}
.file-dropdown-content.is-open {
    display: block;
}
/* 
.file-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
    border: 2px solid #bb86fc;
    border-radius: 10px;
}

.file-table th, .file-table td {
    border: 1px solid #ccc;
    padding: 0.2em;
    text-align: left;
    font-size: 1em; /* Standardize font size */
    height: 30px; /* Standardize height */
}

.file-table th {
    background-color: #333;
    color: #fff;
    cursor: pointer;
}

.file-table td {
    background-color: #444;
}

.actions-column {
    width: 50px;
    padding: 0 0;
    font-size: 1em;
}

.name-column {
    width: auto;
    padding: 0 0;
    font-size: 1em;
}

.file-table th.actions-column, .file-table td.actions-column {
    width: 50px;
    text-align: center;
}

.file-table th:first-child, .file-table td:first-child {
    text-align: center;
    width: 40px;
}

.file-table th:nth-child(2), .file-table td:nth-child(2) {
    max-width: 600px;
    /* white-space: nowrap; */
    text-overflow: ellipsis;
    overflow: hidden;
    word-break: break-all;
    word-wrap: break-word;
}

/* Custom class to right-align the search form */
.right-align-form {
    display: flex;
    justify-content: flex-end;
    padding-bottom: 10px;
    padding-right: 20px;
    align-items: center;
}

.right-align-input {
    padding: 5px; /* Adjust padding */
    font-size: 1em; /* Standardize font size */
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-right: 10px; /* Add some space between input and button */
    height: 35px; /* Standardize height */
}

.right-align-button {
    text-decoration: none;
    color: #ffffff;
    background-color: #bb86fc;
    padding: 5px 10px; /* Adjust padding */
    border-radius: 5px;
    font-size: 0.6em; /* Standardize font size */
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    height: 40px; /* Standardize height */
}

.right-align-input:focus {
    border-color: #bb86fc;
    box-shadow: 0 0 2px #bb86fc, 0 0 4px #bb86fc, 0 0 6px #bb86fc, 0 0 8px #bb86fc;
    outline: none; /* Remove the default focus outline */
}

.right-align-button:hover {
    background-color: rgba(0, 0, 0, 0);
    color: #ffffff;
    background-color: #000000; /* Change background to black */
    box-shadow: 0 0 2px #bb86fc, 0 0 7px #bb86fc, 0 0 11px #bb86fc, 0 0 15px #bb86fc;
}

.table-heading {
    color: #ffffff;
    text-decoration: none;
    display: inline-block;
    padding: 0 0;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 1em; /* Standardize font size */
}

.table-heading:hover {
    text-shadow: 0 0 5px #bb86fc, 0 0 10px #bb86fc, 0 0 15px #bb86fc, 0 0 20px #bb86fc;
}

/* Custom CSS for adding padding */
.vault-heading {
    margin: 0; /* Ensure there is no extra margin around the heading */
    display: flex; /* Use flexbox for the heading */
    justify-content: space-between; /* Space items within the heading */
    align-items: center; /* Center items vertically */
    width: 100%; /* Ensure the heading takes the full width */
}

/* Flash messages */
.flashes {
    list-style-type: none;
    padding: 0;
    width: 100%;
    right: 20px;
}

.flashes li {
    position: relative;
    padding: 1em;
    margin-bottom: 0.5em;
    border-radius: 5px;
    color: #ffffff;
}
.flash-close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #ffffff;
    float: right;
    font-size: 28px;
    font-weight: bold;
    transition: box-shadow 0.3s ease;
    cursor: pointer;
}
.flash-close-button:hover,
.flash-close-button:focus {
    color: #000000;
    text-decoration: none;
    cursor: pointer;
    text-shadow: 0 0 2px #bb86fc, 0 0 7px #bb86fc, 0 0 11px #bb86fc, 0 0 15px #bb86fc;
}

.flash-success {
    background-color: #4CAF50;
}

.flash-error {
    background-color: #f44336;
}

/* New styles for top buttons */
.top-bar {
    text-align: center;
    margin-top: 60px;
    margin-bottom: 1rem;
}

.top-buttons {
    display: flex;
    justify-content: space-between;
    width: 50%;
    margin: 1rem auto;
    padding-bottom: 1rem;
}

.nav-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    padding-right: 20px;
}

.search-form {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.search-input {
    position: relative;
    border: 1px solid var(--white-dark);
    border-radius: 25px;
    margin-right: 10px;
    background: var(--dark);
    color: var(--white);
    font-size: 15px;
    padding: 5px 45px 5px 15px;
}
.search-input.hide {
    display: none;
}
.search-input:focus{
    outline: 2px solid var(--purple);     /* oranges! yey */
}
.search-input::placeholder {
    color: var(--white);
    opacity: 0.8;
}
.button-link {
    position: absolute;
    right: 20px;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
    cursor: pointer;
    stroke: var(--grey-bold-dar);
    width: 20px;
}
.search-input.hide ~ .button-link {
    position: relative !important;
    right: 0 !important;
}
.button-link:hover {
    /* background-color: rgba(0, 0, 0, 0); Make background transparent */
    stroke: var(--purple);
    /* text-shadow */
}

.fixed-button-container {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: rgba(0, 0, 0, 0);
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: rgba(18, 16, 33, 0.95);
    min-width: 180px;
    box-shadow: 0 18px 36px rgba(8, 6, 18, 0.45);
    z-index: 10;
    right: 0;
    border-radius: 14px;
    border: 1px solid rgba(167, 123, 255, 0.2);
    overflow: hidden;
}

.dropdown-content a {
    color: var(--vault-text);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-content a:hover {
    background: rgba(126, 87, 194, 0.18);
    color: var(--white);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .dropbtn {
    color: var(--white);
}

.modal:not(.fade) {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.8); /* Dark background with opacity */
    justify-content: center;
    align-items: center;
}

/* Keep legacy modals styled without overriding Bootstrap's .modal */
.modal:not(.fade) .modal-content {
    display: flex;
    position: relative;
    background-color: rgba(0, 0, 0, 0.8); /* Dark background similar to form-container */
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #bb86fc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 400px;
    text-align: center;
    color: #ffffff; /* White text color */
}

.close-button {
    position: absolute;
    top: 5px;
    right: 10px;
    color: #ffffff;
    float: right;
    font-size: 28px;
    font-weight: bold;
    transition: box-shadow 0.3s ease;
}

.close-button:hover,
.close-button:focus {
    color: #000000;
    text-decoration: none;
    cursor: pointer;
    text-shadow: 0 0 2px #bb86fc, 0 0 7px #bb86fc, 0 0 11px #bb86fc, 0 0 15px #bb86fc;
}

.add-folder-close-button {
    position: absolute;
    top: 5px;
    right: 10px;
    color: #ffffff;
    float: right;
    font-size: 28px;
    font-weight: bold;
    transition: box-shadow 0.3s ease;
}

.add-folder-close-button:hover,
.add-folder-close-button:focus {
    color: #000000;
    text-decoration: none;
    cursor: pointer;
    text-shadow: 0 0 2px #bb86fc, 0 0 7px #bb86fc, 0 0 11px #bb86fc, 0 0 15px #bb86fc;
}

.modal:not(.fade) .modal-content p {
    color: #ffffff; /* Ensure the paragraph text is black */
    text-shadow: 0 0 2px #bb86fc, 0 0 7px #bb86fc, 0 0 11px #bb86fc, 0 0 15px #bb86fc;
}

.add-folder-form {
    display: flex;
    justify-content: space-between;
}

.add-folder-form input, .add-folder-form select {
    margin-right: 20px;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    color: #000000;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.add-folder-form input:focus, .add-folder-form select:focus {
    border-color: #bb86fc;
    box-shadow: 0 0 8px rgba(187, 134, 252, 0.6);
    outline: none;
}

/* Styles specific to the form and checkbox */

/* Style for the checkbox container */
.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 1em; /* Space between elements */
}

/* Style for the checkbox input */
.form-check-input {
    width: 20px; /* Standardize width */
    height: 20px; /* Standardize height */
    margin-right: 10px; /* Space between checkbox and label */
    accent-color: #bb86fc; /* Color that matches the button */
}

/* Style for the checkbox label */
.form-check-label {
    font-size: 1em; /* Standardize font size */
    color: #ffffff; /* Ensure the text color matches the theme */
}

/* Checkbox focus styling */
.form-check-input:focus {
    outline: none; /* Remove default focus outline */
    box-shadow: 0 0 8px rgba(187, 134, 252, 0.6); /* Purple glow similar to other inputs */
}

.profile-container {
    width: 90%;
    margin: 0px auto 0px auto;
    padding: 20px;
    border-radius: 25px;
    background-color: rgba(0, 0, 0, 0.9);
    color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
}

.profile-section {
    margin-bottom: 30px;
}

.profile-section h2 {
    font-size: 1.5em;
    margin-bottom: 15px;
    text-shadow: 0 0 3px #bb86fc, 0 0 7px #bb86fc, 0 0 12px #bb86fc, 0 0 17px #bb86fc;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input, .form-group select {
    /* width: 100%; */
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    background-color: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus, .form-group select:focus {
    border-color: #bb86fc;
    box-shadow: 0 0 8px rgba(187, 134, 252, 0.6);
    outline: none;
}

.activity-log-table {
    width: 100%;
    border-collapse: collapse;
}

.activity-log-table th, .activity-log-table td {
    padding: 10px;
    border: 1px solid #ccc;
}

.activity-log-table th {
    background-color: #333;
    color: #ffffff;
}

.activity-log-table td {
    background-color: #444;
    color: #ffffff;
}

.storage-bar {
    width: 100%;
    background-color: #555;
    border-radius: 10px;
    margin: 10px 0;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.used-storage {
    height: 20px;
    background-color: #bb86fc;
}

#vault-storage-info {
    display: inline-flex;
    flex-direction: column;
    gap: 6px;
    min-width: 240px;
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(18, 16, 33, 0.72);
    border: 1px solid rgba(167, 123, 255, 0.25);
    color: var(--vault-muted);
    box-shadow: 0 14px 30px rgba(8, 6, 18, 0.35);
}
#vault-storage-info .storage-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
}
#vault-storage-info .used-storage {
    height: 10px;
    background: var(--vault-accent-gradient);
    border-radius: inherit;
    transition: width 0.4s ease;
}
#vault-storage-info span {
    font-size: 0.85rem;
    color: var(--vault-text);
}

.contact-page-wrapper {
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

/* Style the contact form container */
.contact-form-container {
    width: 92%;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 30px;
    border-radius: 25px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    text-align: center;
    color: #ffffff;
}

/* Reduce the width of the "Choose File" button */
/* .contact-form-group input[type="file"] {
    width: auto; 
    padding: 10px; 
    background-color: #bb86fc; 
    color: #ffffff; 
    border-radius: 5px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center; 
} */

.contact-form-group .custom-file-input-label {
    width: auto; /* Change from full width to auto */
    padding: 10px; /* Add padding for better appearance */
    background-color: #bb86fc; /* Match the button color */
    color: #ffffff; /* White text color */
    border-radius: 5px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center; /* Center the text inside the button */
}

/* Firefox scrollbar styling */
/* .contact-form-container {
    scrollbar-width: thin;
    scrollbar-color: #ffffff rgba(0, 0, 0, 0.3); 
} */

/* Center the "Send Message" button */
.contact-form-group .button {
    background-color: #bb86fc;
    margin: 0 auto; /* Center the button horizontally */
    display: block; /* Ensure the button behaves as a block-level element */
    width: 100%;
}

/* Style the contact form heading */
.contact-form-container h1 {
    font-size: 2em;
    margin-bottom: 1em;
    text-shadow: 0 0 3px #bb86fc, 0 0 7px #bb86fc, 0 0 12px #bb86fc, 0 0 17px #bb86fc; /* Purple glow */
}

/* Style individual form groups */
.contact-form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 1em;
}

/* Style form labels */
.contact-form-group label {
    font-size: 1.2em;
    margin-bottom: 0.5em;
    color: #ffffff; /* White text color */
    text-align: left;
    width: 100%;
}

/* Style form inputs and textarea */
.contact-form-group input,
.contact-form-group textarea {
    width: calc(100% - 1.5em);
    padding: 0.75em;
    font-size: 1em;
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.8); /* Dark background */
    color: #ffffff; /* White text color */
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s, box-shadow 0.3s;
}

/* Style form inputs and textarea on focus */
.contact-form-group input:focus,
.contact-form-group textarea:focus {
    border-color: #bb86fc; /* Purple border on focus */
    box-shadow: 0 0 8px rgba(187, 134, 252, 0.6); /* Purple glow */
    outline: none;
}

/* Adjust textarea resizing */
.contact-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Style for file input */
.contact-form-group input[type="file"] {
    display: none; /* Hide the default file input */
}

/* Style the scrollbar track */
.contact-form-container::-webkit-scrollbar {
    width: 15px;
}

/* Style the scrollbar thumb */
.contact-form-container::-webkit-scrollbar-thumb {
    background-color: #ffffff;
    border-radius: 10px;
    border: 3px solid #000000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Change the thumb on hover */
.contact-form-container::-webkit-scrollbar-thumb:hover {
    background-color: #bb86fc;
}

/* Style the scrollbar track */
.contact-form-container::-webkit-scrollbar-track {
    border-radius: 10px;
    position: relative;
    margin-top: 118px;
    margin-bottom: 8px;
}


div::-webkit-scrollbar {
    width: 15px;
}

/* Style the scrollbar thumb */
div::-webkit-scrollbar-thumb {
    background-color: #ffffff;
    border-radius: 10px;
    border: 3px solid #000000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Change the thumb on hover */
div::-webkit-scrollbar-thumb:hover {
    background-color: #bb86fc;
}

/* Style the scrollbar track */
div::-webkit-scrollbar-track {
    border-radius: 10px;
    position: relative;
    margin-top: 118px;
    margin-bottom: 8px;
}



/* Custom label for the file input */
.custom-file-input-label {
    display: inline-block;
    margin-top: 10px;
    padding: 10px;
    cursor: pointer;
    background-color: #bb86fc;
    color: #ffffff;
    border-radius: 5px;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect for the custom file input label */
.custom-file-input-label:hover {
    background-color: rgba(0, 0, 0, 0);
    color: #ffffff;
    background-color: #000000; /* Change background to black */
    box-shadow: 0 0 2px #bb86fc, 0 0 7px #bb86fc, 0 0 11px #bb86fc, 0 0 15px #bb86fc;
}

/* Style for the captcha container */
.captcha-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1em;
}

/* Style for error messages */
.error-message {
    color: #f44336; /* Red for error messages */
    margin-bottom: 1em;
    text-align: left;
    width: 100%;
}

/* Style for success messages */
.success-message {
    color: #4CAF50; /* Green for success messages */
    margin-bottom: 1em;
    text-align: center;
}

/* Style for the submit button */
.button {
    text-decoration: none;
    color: #ffffff;
    background-color: var(--purple);
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1em;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.button.red {
    background-color: var(--red);
}
button[disabled] {
    opacity: 0.7; /* Make the button semi-transparent */
    /* Remove hover effects */
    transition: none; /* Disable transitions */
    pointer-events: none; /* Prevent hover events */
}

/* Hover effect for the submit button */
.button:hover {
    background-color: rgba(0, 0, 0, 0);
    color: #ffffff;
    background-color: #000000; /* Change background to black */
    box-shadow: 0 0 2px #bb86fc, 0 0 7px #bb86fc, 0 0 11px #bb86fc, 0 0 15px #bb86fc;
}

/* Custom scrollbar styling for the contact form container */
.contact-form-container::-webkit-scrollbar {
    width: 15px; /* Match the width of the table container scrollbar */
}

.contact-form-container::-webkit-scrollbar-track {
    border-radius: 10px; /* Match the rounded corners of the track */
    background-color: rgba(0, 0, 0, 0.3); /* Semi-transparent dark background */
    margin-top: 10px; /* Adjusted to fit within the form container */
    margin-bottom: 10px; /* Adjusted to fit within the form container */
}

.contact-form-container::-webkit-scrollbar-thumb {
    background-color: #ffffff; /* White color to match the table container */
    border-radius: 10px; /* Rounded corners for the thumb */
    border: 3px solid #000000; /* Dark border for contrast */
    transition: background-color 0.3s ease, box-shadow 0.3s ease; /* Smooth transition effects */
}

.contact-form-container::-webkit-scrollbar-thumb:hover {
    background-color: #bb86fc; /* Purple color on hover to match the theme */
}

/* rename input */
.rename-submit {
    display: none;
}

.dir {
    color: yellowgreen;
}

.shareLink {
    width: 70%;
    border-radius: 5px;
    resize: none;
    margin-right: 20px;
}

.form-radio-columns {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px; /* Adds margin to separate from the checkbox */
}

.form-radio-columns .form-check {
    display: flex;
    align-items: center;
}

.form-radio-columns input[type="radio"] {
    margin-right: 10px; /* Space between radio button and label */
}

#notification-slider {
    position: fixed;
    top: -80px; /* Initially hidden */
    right: 20px;
    background-color: #f44336;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    transition: top 0.5s ease;
}

#notification-slider.show {
    top: 80px; /* Slide down */
}

.convert-modal-content {
    display: flex;
    flex-direction: column;
    position: relative;
    background-color: rgba(0, 0, 0, 0.8); /* Dark background similar to form-container */
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #bb86fc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 400px;
    text-align: center;
    color: #ffffff; /* White text color */
}
.convert-btn {
    width: 50px;
    height: 50px;
    margin-right: 10px;
    align-content: center;
    text-decoration: none;
    color: #ffffff;
    background-color: #bb86fc;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1em;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.convert-btn:hover {
    background-color: rgba(0, 0, 0, 0);
    color: #ffffff;
    background-color: #000000; /* Change background to black */
    box-shadow: 0 0 2px #bb86fc, 0 0 7px #bb86fc, 0 0 11px #bb86fc, 0 0 15px #bb86fc;
}
.convert-btn-group {
    display: flex;
    margin-bottom: 10px;
}

.upload-close-button {
    position: absolute;
    top: 5px;
    right: 10px;
    color: #ffffff;
    float: right;
    font-size: 28px;
    font-weight: bold;
    transition: box-shadow 0.3s ease;
}

.upload-close-button:hover,
.upload-close-button:focus {
    color: #000000;
    text-decoration: none;
    cursor: pointer;
    text-shadow: 0 0 2px #bb86fc, 0 0 7px #bb86fc, 0 0 11px #bb86fc, 0 0 15px #bb86fc;
}

.upload-progress {
    height: 30px;
    padding-right: 10px;
    padding-left: 10px;
}
.progress-bar {
    width: 0%;
    background-color: #bb86fc;
    height: 10px;
    border-radius: 5px;
}
.content-container {
    border-radius: 25px;
    width: 98%;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.8);
    overflow-y: auto;
}

.payment-form-group {
    margin-bottom: 15px;
    gap: 15px;
    gap: 15px;
    display: flex;
    flex-direction: column;
}
.custom-control.custom-radio {
    display: flex;
    gap: 20px;
}
.custom-control-label {
    display: flex;
    gap: 15px;
    align-items: center;
}
.payment-form-group.form-check {
    display: flex;
    flex-direction: row;
}

.refer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.refer-container h2 {
    text-align: center;
}
.refer-bio  ul {
    display: flex;
    gap: 20px;
    justify-content: center;
}
.refer-bio ul li{
    width: 30%;
}
.refer-container .refer-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.refer-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.send-email {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
#referral-copied-text {
    position: absolute; 
    bottom: -20px; 
    left: 0px; 
    display: none;
}
.refer-container input {
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1em;
    border: none;
}
.refer-container input:focus{
    outline: 2px solid var(--purple);
}
.refer-form ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding-inline-start: 0px;
}

.bottom-upload-progress {
    position: absolute; /* Keep this for absolute positioning */
    bottom: 0;
    right: 20px;
    max-height: 323px;
    width: 100%;
    max-width: 300px;
    background-color: var(--purple-dark);
    display: none;
    flex-direction: column;
    z-index: 1;
    box-shadow: 0px 0px 4px var(--purple);
    border-radius: 15px 15px 0px 0px;
}
.bottom-upload-progress-header {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    box-shadow: 0px 0px 4px var(--purple);
    border-radius: 15px 15px 0px 0px;
}
.bottom-upload-progress-container {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.file-progress {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    align-items: center;
    gap: 12px;
}
.file-progress span {
    width: 200px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}
.file-progress:hover {
    background-color: var(--dark-grey);
}
.file-progress .file-status {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    stroke-width: 1.8;
    color: var(--purple);
}
.file-progress .file-status--error {
    color: #d2377a;
}
.circular-progress {
    transform: rotate(-90deg);
}
.progress-circle {
    transition: stroke-dashoffset 0.5s ease;
}

.bottom-upload-progress-container::-webkit-scrollbar {
    width: 15px;
}

/* Style the scrollbar thumb */
.bottom-upload-progress-container::-webkit-scrollbar-thumb {
    background-color: #ffffff;
    border-radius: 10px;
    border: 3px solid #000000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Change the thumb on hover */
.bottom-upload-progress-container::-webkit-scrollbar-thumb:hover {
    background-color: #bb86fc;
}

/* Style the scrollbar track */
.bottom-upload-progress-container::-webkit-scrollbar-track {
    border-radius: 10px;
    position: relative;
    margin-top: 5px;
    margin-bottom: 8px;
}

.vault-media-player {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(18, 16, 33, 0.72);
    border: 1px solid rgba(167, 123, 255, 0.25);
    box-shadow: 0 14px 32px rgba(7, 5, 16, 0.35);
    color: var(--vault-text);
    min-width: min(360px, 100%);
    flex: 1 1 320px;
}

.vault-media-player[hidden] {
    display: none !important;
}

.vault-media-controls {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.vault-media-button {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.15);
    color: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.vault-media-button svg {
    width: 18px;
    height: 18px;
}

.vault-media-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.vault-media-button:not(:disabled):hover,
.vault-media-button:not(:disabled):focus-visible {
    border-color: rgba(167, 123, 255, 0.65);
    background: rgba(167, 123, 255, 0.18);
    transform: translateY(-1px);
}

.vault-media-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.vault-media-label {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vault-media-timeline {
    position: relative;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    cursor: pointer;
}

.vault-media-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--vault-accent-gradient);
    transition: width 0.1s linear;
}

.vault-media-time {
    font-size: 0.78rem;
    color: var(--vault-muted);
}

@media (max-width: 768px) {
    .vault-media-player {
        flex-wrap: wrap;
        gap: 12px;
    }

    .vault-media-controls {
        width: 100%;
        justify-content: flex-start;
    }

    .vault-media-body {
        width: 100%;
    }
}

/* file viewer modal */
.file-viewer-modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 9000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.8); /* Dark background with opacity */
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.file-viewer-content {
    display: flex;
    position: relative;
    background-color: rgba(0, 0, 0, 0.8);
    margin: 0 auto;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: min(1100px, 96vw);
    height: 90vh;
    text-align: center;
    color: #ffffff;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.file-viewer-body {
    display: flex;
    width: 100%;
    height: 100%;
    gap: 12px;
}
.file-viewer-preview {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
.file-viewer-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.file-viewer-content video {
    max-width: 100%;
    max-height: 100%;
}
#file_viewer_stage {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
}
#file_viewer_stage img,
#file_viewer_stage video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.file-viewer-action {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    color: #f8fafc;
    border-radius: 12px;
    padding: 8px 10px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.file-viewer-action:hover {
    background: rgba(255,255,255,0.16);
    transform: translateY(-1px);
}
.file-viewer-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.06);
    color: #e5e7eb;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.file-viewer-pill:hover {
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.28);
    color: #fff;
}
.file-viewer-pill[aria-pressed="true"] {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border-color: #7c3aed;
    color: #fff;
}
.viewer-face-overlay {
    position: absolute;
    pointer-events: auto;
    inset: 0;
}
.viewer-face-box {
    position: absolute;
    border: 2px solid rgba(74, 222, 128, 0.8);
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.viewer-face-highlight {
    position: absolute;
    inset: -4px;
    border: 1px dashed rgba(255,255,255,0.45);
    border-radius: 10px;
}
.viewer-face-chip {
    pointer-events: auto;
}
.viewer-face-box {
    pointer-events: auto;
}
.viewer-face-chip {
    position: absolute;
    top: -36px;
    left: 0;
    transform: translateY(-4px);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0,0,0,0.8);
    color: #f8fafc;
    border: 1px solid rgba(255,255,255,0.16);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.viewer-face-chip input {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 8px;
    padding: 4px 6px;
    color: #fff;
    min-width: 120px;
}
.viewer-face-chip input:focus {
    outline: 2px solid #7c3aed;
    outline-offset: 1px;
    border-color: #7c3aed;
}
.viewer-face-name {
    font-weight: 600;
}
.viewer-face-box.is-saving .viewer-face-chip {
    opacity: 0.6;
}
.viewer-face-box.is-success .viewer-face-chip {
    border-color: #4ade80;
    color: #bbf7d0;
}
.viewer-face-box.is-error .viewer-face-chip {
    border-color: #f87171;
    color: #fecdd3;
}
#file_viewer_download {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}
#pdf_viewer {
    flex-direction: column;
    overflow: auto;
    height: 100%;
    max-width: 100%;
}
/* Style the scrollbar track */
#pdf_viewer::-webkit-scrollbar {
    width: 15px;
}

/* Style the scrollbar thumb */
#pdf_viewer::-webkit-scrollbar-thumb {
    background-color: #ffffff;
    border-radius: 10px;
    border: 3px solid #000000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Change the thumb on hover */
#pdf_viewer::-webkit-scrollbar-thumb:hover {
    background-color: #bb86fc;
}

/* Style the scrollbar track */
#pdf_viewer::-webkit-scrollbar-track {
    border-radius: 10px;
    position: relative;
    margin-top: 18px;
    margin-bottom: 8px;
}
#document_viewer {
    width: 90%;
    height: 100%;
    background: white;
}

.login-action-group {
    flex-wrap: wrap;
    margin-top: 1.5rem;
    width: 100%;
}

.login-action-group .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 200px;
    min-width: 180px;
}

.login-action-group .button.login-submit {
    background-color: var(--purple);
}

.login-action-group .button.face-login-trigger {
    background-color: #1f2533;
    border: 1px solid rgba(187, 134, 252, 0.4);
}

.face-login-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 900;
}

.face-login-modal[data-open="true"] {
    display: flex;
}

.face-login-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 10, 20, 0.72);
    backdrop-filter: blur(6px);
}

.face-login-dialog {
    position: relative;
    background: linear-gradient(160deg, rgba(20, 25, 45, 0.95), rgba(12, 16, 32, 0.92));
    border-radius: 20px;
    padding: 2rem;
    width: min(540px, 92vw);
    box-shadow: 0 30px 90px rgba(4, 6, 12, 0.55);
    color: #eef1ff;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.face-login-close {
    position: absolute;
    top: 12px;
    right: 12px;
    border: none;
    background: transparent;
    color: #bfc8ff;
    font-size: 1.75rem;
    cursor: pointer;
}

.face-login-lead {
    margin: 0;
    color: rgba(219, 226, 255, 0.8);
}

.face-login-video {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(8, 12, 24, 0.85);
    aspect-ratio: 4 / 3;
}

.face-login-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.face-login-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    color: rgba(231, 237, 255, 0.75);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: radial-gradient(circle, rgba(205, 221, 255, 0.1) 0%, rgba(0, 0, 0, 0) 65%);
}

.face-login-prompts {
    margin: 0;
    padding-left: 1.25rem;
    color: rgba(211, 219, 255, 0.82);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.face-login-prompts li.active {
    color: #8ecbff;
    font-weight: 600;
}

.face-login-prompts li.completed {
    opacity: 0.55;
    text-decoration: line-through;
}

.face-login-status {
    min-height: 1.4rem;
    font-size: 0.95rem;
    color: rgba(219, 227, 255, 0.85);
}

.face-login-status.error {
    color: #ff7a7a;
}

.face-login-status.success {
    color: #80ffb3;
}

.face-login-status.info {
    color: #8ecbff;
}

.face-login-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: space-between;
}

.button.tertiary {
    background: transparent;
    border: 1px solid rgba(142, 203, 255, 0.5);
    color: #bfc8ff;
}

@media (max-width: 600px) {
    .login-action-group {
        flex-direction: column;
        align-items: stretch;
    }

    .login-action-group .button {
        min-width: 100%;
    }

    .face-login-dialog {
        padding: 1.5rem;
        width: min(480px, 96vw);
    }

    .face-login-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .face-login-actions .button {
        width: 100%;
    }
}
