/* Main Desvix Application Styles */
:root {
    --desvix-bottom-bar-height: 30px;
    --desvix-dark: #232323;
    --desvix-darker: #191919;
    --desvix-light: #414141;
    --desvix-lighter: #646464;
    --desvix-lightest: #bebebe;
    --desvix-live-hover: #bee178;
    --desvix-live: #a1cd44;
    --desvix-navbar-width: 260px;
    --desvix-neutral-disabled: #2a2a2a;
    --desvix-neutral: #323232;
    --desvix-neutral-hover: #414141;
    --desvix-primary: #0f91fa;
    --desvix-primary-hover: #55b4ff;
    --desvix-accent: #ff3c00;
    --desvix-accent-hover: #ff5f32;
    --desvix-sidebar-width: 300px;
    --desvix-topbar-height: 60px;
    --desvix-white: #ffffff;
    --desvix-yellow-hover: #FFF07D;
    --desvix-yellow: #FFE600;
    --desvix-popup-backdrop: #2e2e2e99;
    --desvix-border-radius: 4px;
}

body {
    background-color: var(--desvix-darker);
    color: var(--desvix-white);
    font-family: 'Roboto', Arial, sans-serif;
    font-weight: lighter;
    margin: 0;
    padding: 0;
    user-select: none;
}

.no-input {
    pointer-events: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--desvix-white);
    font-weight: 700;
    margin: 0;
}

h1 {
    font-size: 26px;
}

h2 {
    font-size: 22px;
}

h3 {
    font-size: 18px;
}

h4 {
    font-size: 16px;
}

h5 {
    font-size: 14px;
}

p {
    font-size: 14px;
    font-weight: 400;
}

a {
    color: var(--desvix-primary);
    cursor: pointer;
    text-decoration: none;
}

/* Buttons */

.btn-primary,
.btn-cancel,
.btn-danger,
.btn-neutral,
.btn-yellow {
    border-radius: var(--desvix-border-radius);
    border: none;
    color: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    transition: background-color 0.2s;
    padding: 8px;
}

.btn-primary:disabled,
.btn-cancel:disabled,
.btn-danger:disabled,
.btn-neutral:disabled,
.btn-yellow:disabled {
    background-color: var(--desvix-dark);
    color: var(--desvix-lighter);
    cursor: not-allowed;
    opacity: 0.6;
    transition: background-color 0.2s;
}

.btn-primary:disabled:hover,
.btn-cancel:disabled:hover,
.btn-danger:disabled:hover,
.btn-neutral:disabled:hover,
.btn-yellow:disabled:hover {
    background-color: var(--desvix-dark);
    color: var(--desvix-lighter);
}

.btn-primary {
    background-color: var(--desvix-primary);
}

.btn-primary:hover {
    background-color: var(--desvix-primary-hover);
}

.btn-danger {
    background-color: var(--desvix-accent);
}

.btn-danger:hover {
    background-color: var(--desvix-accent-hover);
}

.btn-cancel {
    background-color: transparent;
    color: var(--desvix-lightest);
}

.btn-cancel:hover {
    background-color: var(--desvix-light);
}

.btn-neutral {
    background-color: var(--desvix-neutral);
}

.btn-neutral:hover {
    background-color: var(--desvix-primary);
}

.btn-yellow {
    background-color: var(--desvix-yellow);
    color: #000;
}

.btn-yellow:hover {
    background-color: var(--desvix-yellow-hover);
}

/* Common button classes */
.download-button {
    padding: 8px;
    height: 48px;
    box-sizing: border-box;
    width: 280px;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    align-self: center;
}

/* Inputs */
.input-container {
    align-items: center;
    background-color: var(--desvix-neutral);
    border-radius: var(--desvix-border-radius);
    display: flex;
    height: 36px;
    width: 100%;
}

form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-label {
    color: var(--desvix-lightest);
    font-size: 14px;
    font-weight: 400;
}

.form-input {
    background-color: var(--desvix-neutral);
    border-radius: var(--desvix-border-radius);
    border: none;
    box-sizing: border-box;
    color: white;
    padding: 16px;
    width: 100%;
    height: 48px;
}

.form-input:disabled {
    background-color: var(--desvix-dark);
    color: var(--desvix-lighter);
    cursor: not-allowed;
    opacity: 0.7;
}

.form-input::placeholder {
    color: var(--desvix-lighter);
}

.form-input.invalid {
    border: 1px solid var(--desvix-accent);
    box-shadow: 0 0 0 1px var(--desvix-accent);
}

select.form-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23bebebe'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
}

select.form-input option {
    background-color: var(--desvix-neutral);
    color: var(--desvix-white);
    padding: 8px;
}

input[type="text"], 
input[type="email"], 
input[type="password"] {
    border: none;
    color: var(--desvix-white);
    padding: 10px;
    width: 100%;
}

input::placeholder {
    color: var(--desvix-white);
    user-select: none;
}

input:focus {
    outline: none;
}

input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    background-color: var(--desvix-neutral);
    border-radius: var(--desvix-border-radius);
    border: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

input[type="checkbox"]:hover {
    background-color: var(--desvix-dark);
}

.checkbox-tick {
    display: none;
    color: transparent;
    position: absolute;
    pointer-events: none;
    transform: translate(3px, 0);
    transition: color 0.2s ease;
}

input[type="checkbox"]:checked + .checkbox-tick {
    display: block;
    color: var(--desvix-white);
}

/* Password specific styles */
.password-container input[type="password"]:not(:placeholder-shown) {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    letter-spacing: 0.15em;
    font-weight: 700;
}

.password-container {
    position: relative;
    width: 100%;
}

.password-toggle {
    cursor: pointer;
    position: absolute;
    width: 20px;
    right: 14px;
    top: 14px;
}

.password-toggle svg {
    position: absolute;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.hidden {
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Misc */

.password-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--desvix-white);
}
.data-loading .lanim {
    position: relative;
    overflow: hidden;
    border-radius: var(--desvix-border-radius);
    background-color: var(--desvix-darker);
    color: transparent !important;
    pointer-events: none;
}

.data-loading .lanim::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.data-loading .lanim > *,
.data-loading .lanim > *::before,
.data-loading .lanim > *::after {
    color: transparent !important;
    background-color: transparent !important;
}

/* Modals */
.modal-button-container {
    display: flex;
    flex-direction: row;
    gap: 24px;
    justify-content: flex-end;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: color-mix(in srgb, var(--desvix-darker) 90%, white 10%);
    border-radius: var(--desvix-border-radius);
}

::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--desvix-darker) 90%, white 1%);
    border-radius: var(--desvix-border-radius);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--desvix-light);
}

/* Settings Page */
.setting-row {
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    gap: 12px;
}

.setting-label {
    color: var(--desvix-white);
    flex: 0 0 200px;
    font-size: 14px;
    opacity: 0.8;
}

.setting-value {
    flex: 1;
    font-size: 14px;
    display: flex;
    flex-direction: row;
    gap: 8px;
}

.setting-action-button {
    background-color: transparent;
    border-radius: var(--desvix-border-radius);
    border: none;
    color: #0099ff;
    cursor: pointer;
    font-weight: bold;
    /*padding: 8px 12px;*/
    padding: 2px 4px;
    transition: background-color 0.2s;
}

.setting-action-button:hover {
    background-color: var(--desvix-light);
}

/* Storage Info */
.storage-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.storage-info-header {
    display: flex;
    justify-content: space-between;
}

.personal-label {
    color: var(--desvix-lightest);
    font-size: 12px;
}

.storage-text {
    color: var(--desvix-lightest);
    font-size: 12px;
    text-align: right;
}

/* Progress Bar */
.progress-bar {
    position: relative; 
    background-color: #333;
    border-radius: 2px;
    height: 4px;
    overflow: hidden;
}

.progress-bar-fill {

    background-color: var(--desvix-primary);
    height: 100%;
    border-radius: 2px;
}

.error-message {
    color: var(--desvix-accent);
    font-size: 12px;
    margin-top: 4px;
}

.rotate-180 {
    transform: rotate(180deg);
}