.v2-root-reset,
html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body::before,
body::after {
    content: "";
    position: fixed;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

body:not(.v2-page-ready)::before {
    inset: 0;
    z-index: 9998;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    background: #ffffff;
}

body:not(.v2-page-ready)::after {
    left: 50%;
    top: 50%;
    z-index: 9999;
    width: 56px;
    height: 56px;
    margin-left: -28px;
    margin-top: -28px;
    opacity: 1;
    visibility: visible;
    background: url("/assets/loader.gif") center center / contain no-repeat;
}

.v2-scrollbar::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.v2-scrollbar::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #fdba74 0%, #fb923c 55%, #f97316 100%);
    border: 2px solid #fff7ed;
    border-radius: 999px;
}

.v2-scrollbar::-webkit-scrollbar-track {
    background: rgba(255, 237, 213, 0.65);
    border-radius: 999px;
}

.v2-scrollbar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #fb923c 0%, #f97316 55%, #ea580c 100%);
}

.v2-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: #fb923c rgba(255, 237, 213, 0.65);
}

.v2-avatar-round {
    width: 2.75rem;
    height: 2.75rem;
    min-width: 2.75rem;
    aspect-ratio: 1 / 1;
    border-radius: 9999px !important;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}

.v2-sidebar-active {
    background: #ffefe6;
    color: #c2410c;
    border: 1px solid #fdba74;
}

.v2-skeleton {
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 37%, #e2e8f0 63%);
    background-size: 400% 100%;
    animation: v2-shimmer 1.4s ease infinite;
}

@keyframes v2-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: 0 0; }
}

.app-bg {
    background: radial-gradient(circle at top right, rgba(255, 108, 47, 0.10), transparent 40%),
                radial-gradient(circle at bottom left, rgba(251, 146, 60, 0.10), transparent 35%);
}

.v2-bell-active {
    animation: v2-bell-shake 2.2s ease-in-out infinite;
}

.v2-bell-badge-ping {
    animation: v2-bell-ping 1.4s ease-out infinite;
}

.v2-bell-badge {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.55);
    animation: v2-bell-badge 1.4s ease-in-out infinite;
}

@keyframes v2-bell-ping {
    0% {
        transform: scale(1);
        opacity: 0.85;
    }
    75%,
    100% {
        transform: scale(1.45);
        opacity: 0;
    }
}

@keyframes v2-bell-badge {
    0%,
    100% {
        transform: scale(1);
    }
    45% {
        transform: scale(1.08);
    }
}

@keyframes v2-bell-shake {
    0%,
    100% {
        transform: rotate(0deg);
    }
    3% {
        transform: rotate(8deg);
    }
    6% {
        transform: rotate(-7deg);
    }
    9% {
        transform: rotate(5deg);
    }
    12% {
        transform: rotate(-3deg);
    }
    15% {
        transform: rotate(0deg);
    }
}

.sidebar-soft {
    background: linear-gradient(180deg, #fffaf6 0%, #fff3ea 42%, #ffffff 100%);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    color: #475569;
    transition: 0.2s;
}

.nav-item:hover {
    background: #fff4ec;
    color: #9a3412;
}

.nav-item.active {
    background: #ffefe6;
    color: #c2410c;
    border: 1px solid #fdba74;
}

.nav-sub-item {
    display: block;
    margin-left: 26px;
    margin-top: 4px;
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    transition: 0.2s;
}

.nav-sub-item:hover {
    background: #fff4ec;
    color: #9a3412;
}

.nav-sub-item.active {
    background: #ffefe6;
    color: #c2410c;
}

.accordion-open > [data-accordion-icon] {
    transform: rotate(180deg);
}

.v2-dropzone {
    border: 2px dashed #fdba74;
    border-radius: 16px;
    background: linear-gradient(180deg, #fffaf5 0%, #fff7ed 100%);
    padding: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.v2-dropzone:hover {
    border-color: #fb923c;
    background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
}

.v2-dropzone.dz-drag-hover {
    border-color: #f97316;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.15);
}

.v2-dropzone .dz-message {
    margin: 0;
    padding: 18px 10px;
    text-align: center;
}

.v2-dropzone .dz-preview {
    margin: 0;
}

.v2-dropzone.v2-dropzone-custom-remove .dz-remove {
    display: none !important;
}

.v2-dropzone .dz-preview .dz-image {
    border-radius: 12px;
    border: 1px solid #fed7aa;
    background: #fff;
}

.v2-dropzone .dz-preview .dz-error-message {
    top: 100%;
}

.v2-dropzone .dz-preview.v2-uploading .v2-upload-overlay {
    opacity: 1;
}

.v2-dropzone-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 12px;
}

@media (max-width: 420px) {
    .v2-dropzone-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 10px;
    }
}

.v2-dropzone-card {
    position: relative;
    border: 1px solid #fed7aa;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.08);
}

.v2-dropzone-card .dz-image {
    width: 100%;
    height: 132px;
    border-radius: 0;
    border: 0;
}

.v2-dropzone-card .dz-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.v2-dropzone-meta {
    padding: 8px 10px 10px 10px;
}

.v2-dropzone-name {
    display: block;
    font-size: 11px;
    line-height: 1.2rem;
    font-weight: 700;
    color: #334155;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.v2-dropzone-size {
    display: block;
    margin-top: 2px;
    font-size: 10px;
    color: #64748b;
}

.v2-dropzone-remove {
    position: absolute;
    right: 8px;
    top: 8px;
    z-index: 12;
    border-radius: 999px;
    border: 1px solid #fecaca;
    background: rgba(255, 255, 255, 0.95);
    color: #dc2626;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    padding: 6px 9px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.v2-dropzone-remove:hover {
    background: #fef2f2;
    border-color: #fca5a5;
}

.v2-upload-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.45);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.v2-dropzone-progress {
    margin-top: 8px;
    height: 5px;
    border-radius: 999px;
    background: #ffedd5;
    overflow: hidden;
}

.v2-dropzone-progress > span {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #fb923c 0%, #f97316 100%);
    transition: width 0.2s ease;
}

.v2-textarea {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    background: linear-gradient(180deg, #ffffff 0%, #fffdfb 100%);
    padding: 12px 14px;
    font-size: 14px;
    color: #0f172a;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.v2-textarea::placeholder {
    color: #94a3b8;
}

.v2-textarea:hover {
    border-color: #fdba74;
}

.v2-textarea:focus {
    border-color: #fb923c;
    box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.18);
    background: #fff;
}

.v2-rich-editor {
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.v2-rich-editor:focus-within {
    border-color: #fb923c;
    box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.18);
}

.v2-rich-editor .ql-toolbar.ql-snow {
    border: 0;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #fffaf5 0%, #fff7ed 100%);
    padding: 10px;
}

.v2-rich-editor .ql-container.ql-snow {
    border: 0;
    font-family: "Manrope", sans-serif;
}

.v2-rich-editor .ql-editor {
    min-height: 140px;
    max-height: 320px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.7;
    color: #0f172a;
}

.lg-backdrop {
    background-color: rgba(2, 6, 23, 0.9) !important;
}

.lg-outer .lg-content {
    background: transparent;
}

.lg-outer .lg-toolbar {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.78) 0%, rgba(15, 23, 42, 0) 100%);
}

.lg-outer .lg-toolbar .lg-icon {
    color: #fff;
}

.lg-outer .lg-thumb-outer {
    background: rgba(15, 23, 42, 0.75);
}

.lg-outer .lg-thumb-item {
    border-color: #fdba74;
    border-radius: 8px;
}

.lg-outer .lg-thumb-item.active,
.lg-outer .lg-thumb-item:hover {
    border-color: #f97316;
}
