/* =========================================================
   DESIGNVERSE — COMPONENTS
   Reusable UI Components
   ========================================================= */


/* =========================================================
   1. GLASS PANELS
   ========================================================= */

.glass-panel {
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.075),
            rgba(255, 255, 255, 0.025)
        );

    border: 1px solid var(--border);

    border-radius: var(--radius-lg);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 20px 60px rgba(0, 0, 0, 0.25);

    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.glass-panel-hover {
    transition:
        transform var(--transition-normal),
        border-color var(--transition-normal),
        background var(--transition-normal),
        box-shadow var(--transition-normal);
}

.glass-panel-hover:hover {
    transform: translateY(-4px);

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.095),
            rgba(255, 255, 255, 0.035)
        );

    border-color: var(--border-light);

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.35);
}


/* =========================================================
   2. BADGES
   ========================================================= */

.badge {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 6px;

    width: fit-content;

    padding: 6px 10px;

    border: 1px solid transparent;

    border-radius: 999px;

    font-size: 9px;
    font-weight: 800;

    line-height: 1;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}

.badge-primary {
    color: #ddd6fe;

    background:
        rgba(124, 58, 237, 0.14);

    border-color:
        rgba(124, 58, 237, 0.25);
}

.badge-blue {
    color: #bae6fd;

    background:
        rgba(37, 99, 235, 0.14);

    border-color:
        rgba(56, 189, 248, 0.2);
}

.badge-pink {
    color: #fbcfe8;

    background:
        rgba(236, 72, 153, 0.12);

    border-color:
        rgba(236, 72, 153, 0.2);
}

.badge-success {
    color: #bbf7d0;

    background:
        rgba(34, 197, 94, 0.1);

    border-color:
        rgba(34, 197, 94, 0.2);
}

.badge-warning {
    color: #fde68a;

    background:
        rgba(234, 179, 8, 0.1);

    border-color:
        rgba(234, 179, 8, 0.2);
}

.badge-danger {
    color: #fecaca;

    background:
        rgba(239, 68, 68, 0.1);

    border-color:
        rgba(239, 68, 68, 0.2);
}


/* =========================================================
   3. ICON BUTTON
   ========================================================= */

.icon-button {
    width: 42px;
    height: 42px;

    display: inline-grid;
    place-items: center;

    border: 1px solid var(--border);

    border-radius: 12px;

    background:
        rgba(255, 255, 255, 0.04);

    color: var(--text-secondary);

    transition:
        transform var(--transition-fast),
        color var(--transition-fast),
        background var(--transition-fast),
        border-color var(--transition-fast);
}

.icon-button:hover {
    transform: translateY(-2px);

    color: white;

    background:
        rgba(255, 255, 255, 0.08);

    border-color: var(--border-light);
}

.icon-button.primary {
    color: #ddd6fe;

    background:
        rgba(124, 58, 237, 0.13);

    border-color:
        rgba(124, 58, 237, 0.25);
}


/* =========================================================
   4. TOOLTIP
   ========================================================= */

.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);

    position: absolute;

    left: 50%;
    bottom: calc(100% + 9px);

    padding: 7px 10px;

    border: 1px solid var(--border);

    border-radius: 8px;

    background:
        rgba(8, 8, 13, 0.95);

    color: white;

    font-size: 10px;

    white-space: nowrap;

    opacity: 0;
    visibility: hidden;

    transform:
        translate(-50%, 4px);

    transition:
        opacity var(--transition-fast),
        transform var(--transition-fast);
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;

    transform:
        translate(-50%, 0);
}


/* =========================================================
   5. SEARCH BAR
   ========================================================= */

.search-box {
    position: relative;

    width: 100%;
}

.search-box i {
    position: absolute;

    top: 50%;
    left: 15px;

    color: var(--text-muted);

    font-size: 14px;

    transform: translateY(-50%);

    pointer-events: none;
}

.search-box input {
    width: 100%;

    min-height: 46px;

    padding:
        0 16px 0 44px;

    border: 1px solid var(--border);

    border-radius: 13px;

    outline: none;

    background:
        rgba(255, 255, 255, 0.045);

    color: white;

    transition:
        border-color var(--transition-fast),
        background var(--transition-fast),
        box-shadow var(--transition-fast);
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-box input:focus {
    background:
        rgba(255, 255, 255, 0.065);

    border-color:
        rgba(168, 85, 247, 0.55);

    box-shadow:
        0 0 0 3px rgba(124, 58, 237, 0.1);
}


/* =========================================================
   6. FORM ELEMENTS
   ========================================================= */

.form-group {
    display: flex;

    flex-direction: column;

    gap: 8px;
}

.form-label {
    color: var(--text-secondary);

    font-size: 12px;
    font-weight: 600;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;

    border: 1px solid var(--border);

    border-radius: 13px;

    outline: none;

    background:
        rgba(255, 255, 255, 0.045);

    color: white;

    transition:
        border-color var(--transition-fast),
        background var(--transition-fast),
        box-shadow var(--transition-fast);
}

.form-input,
.form-select {
    height: 48px;

    padding: 0 14px;
}

.form-textarea {
    min-height: 130px;

    padding: 14px;

    resize: vertical;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    background:
        rgba(255, 255, 255, 0.065);

    border-color:
        rgba(168, 85, 247, 0.55);

    box-shadow:
        0 0 0 3px rgba(124, 58, 237, 0.1);
}

.form-hint {
    color: var(--text-muted);

    font-size: 10px;
}

.form-error {
    color: #fca5a5;

    font-size: 10px;
}

.form-success {
    color: #86efac;

    font-size: 10px;
}


/* =========================================================
   7. AVATAR SYSTEM
   ========================================================= */

.avatar {
    display: grid;

    place-items: center;

    flex-shrink: 0;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #7c3aed,
            #2563eb
        );

    color: white;

    font-weight: 800;
}

.avatar-xs {
    width: 26px;
    height: 26px;

    font-size: 8px;
}

.avatar-sm {
    width: 34px;
    height: 34px;

    font-size: 10px;
}

.avatar-md {
    width: 44px;
    height: 44px;

    font-size: 12px;
}

.avatar-lg {
    width: 64px;
    height: 64px;

    font-size: 18px;
}

.avatar-xl {
    width: 90px;
    height: 90px;

    font-size: 24px;
}

.avatar-image {
    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: inherit;
}


/* =========================================================
   8. AVATAR GROUP
   ========================================================= */

.avatar-group {
    display: flex;

    padding-left: 8px;
}

.avatar-group .avatar {
    margin-left: -8px;

    border: 2px solid var(--bg-primary);
}


/* =========================================================
   9. USER MINI PROFILE
   ========================================================= */

.user-mini {
    display: flex;

    align-items: center;

    gap: 10px;

    min-width: 0;
}

.user-mini-info {
    min-width: 0;

    display: flex;

    flex-direction: column;
}

.user-mini-name {
    overflow: hidden;

    color: white;

    font-size: 12px;
    font-weight: 700;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-mini-handle {
    overflow: hidden;

    color: var(--text-muted);

    font-size: 10px;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   10. DESIGN CARD — REUSABLE
   ========================================================= */

.design-item {
    position: relative;

    overflow: hidden;

    border: 1px solid var(--border);

    border-radius: var(--radius-lg);

    background:
        rgba(255, 255, 255, 0.035);

    transition:
        transform var(--transition-normal),
        border-color var(--transition-normal),
        box-shadow var(--transition-normal);
}

.design-item:hover {
    transform: translateY(-5px);

    border-color:
        rgba(168, 85, 247, 0.3);

    box-shadow:
        0 20px 55px rgba(0, 0, 0, 0.3);
}

.design-item-image {
    position: relative;

    aspect-ratio: 4 / 3;

    overflow: hidden;

    background:
        var(--gradient-soft);
}

.design-item-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform var(--transition-slow);
}

.design-item:hover .design-item-image img {
    transform: scale(1.04);
}

.design-item-overlay {
    position: absolute;

    inset: 0;

    display: flex;

    align-items: flex-end;

    padding: 14px;

    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.65),
            transparent 45%
        );

    opacity: 0;

    transition:
        opacity var(--transition-normal);
}

.design-item:hover .design-item-overlay {
    opacity: 1;
}

.design-item-body {
    padding: 14px;
}

.design-item-title {
    margin-bottom: 8px;

    color: white;

    font-family: "Space Grotesk", sans-serif;

    font-size: 15px;
    font-weight: 600;
}

.design-item-meta {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 10px;
}


/* =========================================================
   11. LIKE / VOTE BUTTON
   ========================================================= */

.vote-button {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    min-height: 34px;

    padding: 0 10px;

    border: 1px solid var(--border);

    border-radius: 10px;

    background:
        rgba(0, 0, 0, 0.25);

    color: var(--text-secondary);

    font-size: 11px;
    font-weight: 700;

    transition:
        color var(--transition-fast),
        background var(--transition-fast),
        border-color var(--transition-fast),
        transform var(--transition-fast);
}

.vote-button:hover {
    transform: translateY(-1px);

    color: #f9a8d4;

    background:
        rgba(236, 72, 153, 0.1);

    border-color:
        rgba(236, 72, 153, 0.25);
}

.vote-button.active {
    color: #f9a8d4;

    background:
        rgba(236, 72, 153, 0.12);

    border-color:
        rgba(236, 72, 153, 0.3);
}


/* =========================================================
   12. CHALLENGE CARD
   ========================================================= */

.challenge-card {
    position: relative;

    overflow: hidden;

    border: 1px solid var(--border);

    border-radius: var(--radius-lg);

    background:
        rgba(255, 255, 255, 0.035);

    transition:
        transform var(--transition-normal),
        border-color var(--transition-normal);
}

.challenge-card:hover {
    transform: translateY(-5px);

    border-color:
        rgba(168, 85, 247, 0.3);
}

.challenge-card-cover {
    position: relative;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    background:
        var(--gradient-soft);
}

.challenge-card-cover img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform var(--transition-slow);
}

.challenge-card:hover .challenge-card-cover img {
    transform: scale(1.05);
}

.challenge-card-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to bottom,
            transparent 50%,
            rgba(0, 0, 0, 0.7)
        );
}

.challenge-card-content {
    padding: 18px;
}

.challenge-card-top {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 10px;

    margin-bottom: 12px;
}

.challenge-card-title {
    margin-bottom: 8px;

    font-size: 18px;
}

.challenge-card-description {
    margin-bottom: 18px;

    color: var(--text-muted);

    font-size: 11px;

    line-height: 1.7;
}

.challenge-card-stats {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 12px;

    color: var(--text-muted);

    font-size: 10px;
}

.challenge-card-stats span {
    display: inline-flex;

    align-items: center;

    gap: 5px;
}


/* =========================================================
   13. XP PROGRESS BAR
   ========================================================= */

.xp-progress {
    width: 100%;
}

.xp-progress-header {
    display: flex;

    justify-content: space-between;

    gap: 10px;

    margin-bottom: 7px;

    font-size: 10px;
}

.xp-progress-header span:first-child {
    color: var(--text-secondary);
}

.xp-progress-header span:last-child {
    color: white;

    font-weight: 700;
}

.xp-progress-track {
    width: 100%;
    height: 7px;

    overflow: hidden;

    border-radius: 999px;

    background:
        rgba(255, 255, 255, 0.07);
}

.xp-progress-fill {
    height: 100%;

    border-radius: inherit;

    background:
        var(--gradient-main);

    box-shadow:
        0 0 15px rgba(124, 58, 237, 0.4);

    transition:
        width 600ms ease;
}


/* =========================================================
   14. RANK BADGE
   ========================================================= */

.rank-badge {
    min-width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    border-radius: 12px;

    background:
        rgba(255, 255, 255, 0.05);

    border: 1px solid var(--border);

    color: var(--text-secondary);

    font-family: "Space Grotesk", sans-serif;

    font-size: 12px;
    font-weight: 800;
}

.rank-badge.gold {
    color: #fbbf24;

    background:
        rgba(251, 191, 36, 0.08);

    border-color:
        rgba(251, 191, 36, 0.2);
}

.rank-badge.silver {
    color: #d1d5db;

    background:
        rgba(209, 213, 219, 0.08);
}

.rank-badge.bronze {
    color: #fdba74;

    background:
        rgba(249, 115, 22, 0.08);

    border-color:
        rgba(249, 115, 22, 0.2);
}


/* =========================================================
   15. EMPTY STATE
   ========================================================= */

.empty-state {
    min-height: 300px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    padding: 35px;

    border: 1px dashed var(--border-light);

    border-radius: var(--radius-lg);

    text-align: center;
}

.empty-state-icon {
    width: 58px;
    height: 58px;

    display: grid;
    place-items: center;

    margin-bottom: 18px;

    border-radius: 17px;

    background:
        rgba(124, 58, 237, 0.1);

    color: #c4b5fd;

    font-size: 21px;
}

.empty-state h3 {
    margin-bottom: 8px;

    font-size: 18px;
}

.empty-state p {
    max-width: 400px;

    margin-bottom: 20px;

    font-size: 12px;
}


/* =========================================================
   16. ALERTS
   ========================================================= */

.alert {
    display: flex;

    align-items: flex-start;

    gap: 12px;

    padding: 14px 16px;

    border: 1px solid var(--border);

    border-radius: 13px;

    font-size: 12px;
}

.alert-icon {
    flex-shrink: 0;

    width: 30px;
    height: 30px;

    display: grid;
    place-items: center;

    border-radius: 9px;
}

.alert-content {
    flex: 1;
}

.alert-title {
    margin-bottom: 2px;

    color: white;

    font-size: 12px;
    font-weight: 700;
}

.alert-message {
    color: var(--text-muted);

    font-size: 10px;

    line-height: 1.6;
}

.alert-info {
    background:
        rgba(37, 99, 235, 0.08);

    border-color:
        rgba(37, 99, 235, 0.2);
}

.alert-info .alert-icon {
    background:
        rgba(37, 99, 235, 0.15);

    color: #93c5fd;
}

.alert-success {
    background:
        rgba(34, 197, 94, 0.07);

    border-color:
        rgba(34, 197, 94, 0.18);
}

.alert-success .alert-icon {
    background:
        rgba(34, 197, 94, 0.13);

    color: #86efac;
}

.alert-warning {
    background:
        rgba(234, 179, 8, 0.07);

    border-color:
        rgba(234, 179, 8, 0.18);
}

.alert-warning .alert-icon {
    background:
        rgba(234, 179, 8, 0.12);

    color: #fde68a;
}

.alert-danger {
    background:
        rgba(239, 68, 68, 0.07);

    border-color:
        rgba(239, 68, 68, 0.18);
}

.alert-danger .alert-icon {
    background:
        rgba(239, 68, 68, 0.12);

    color: #fca5a5;
}


/* =========================================================
   17. DROPDOWN
   ========================================================= */

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;

    top: calc(100% + 10px);
    right: 0;

    min-width: 190px;

    padding: 7px;

    border: 1px solid var(--border);

    border-radius: 14px;

    background:
        rgba(10, 10, 16, 0.94);

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.45);

    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);

    opacity: 0;
    visibility: hidden;

    transform:
        translateY(-5px);

    transition:
        opacity var(--transition-fast),
        transform var(--transition-fast),
        visibility var(--transition-fast);

    z-index: 200;
}

.dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;

    transform:
        translateY(0);
}

.dropdown-item {
    width: 100%;

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 10px;

    border-radius: 9px;

    color: var(--text-secondary);

    font-size: 11px;

    text-align: left;

    transition:
        background var(--transition-fast),
        color var(--transition-fast);
}

.dropdown-item:hover {
    background:
        rgba(255, 255, 255, 0.06);

    color: white;
}

.dropdown-divider {
    height: 1px;

    margin: 6px 4px;

    background: var(--border);
}


/* =========================================================
   18. TABS
   ========================================================= */

.tabs {
    display: flex;

    align-items: center;

    gap: 4px;

    padding: 4px;

    width: fit-content;

    border: 1px solid var(--border);

    border-radius: 12px;

    background:
        rgba(255, 255, 255, 0.035);
}

.tab {
    min-height: 36px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 0 13px;

    border-radius: 8px;

    color: var(--text-muted);

    font-size: 11px;
    font-weight: 600;

    transition:
        color var(--transition-fast),
        background var(--transition-fast);
}

.tab:hover {
    color: var(--text-secondary);
}

.tab.active {
    color: white;

    background:
        rgba(255, 255, 255, 0.08);

    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.15);
}


/* =========================================================
   19. PAGINATION
   ========================================================= */

.pagination {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 6px;

    margin-top: 30px;
}

.page-button {
    width: 36px;
    height: 36px;

    display: grid;
    place-items: center;

    border: 1px solid var(--border);

    border-radius: 9px;

    background:
        rgba(255, 255, 255, 0.035);

    color: var(--text-muted);

    font-size: 11px;

    transition:
        color var(--transition-fast),
        background var(--transition-fast),
        border-color var(--transition-fast);
}

.page-button:hover,
.page-button.active {
    color: white;

    background:
        rgba(124, 58, 237, 0.14);

    border-color:
        rgba(124, 58, 237, 0.3);
}


/* =========================================================
   20. MODAL
   ========================================================= */

.modal {
    position: fixed;

    inset: 0;

    display: grid;

    place-items: center;

    padding: 20px;

    background:
        rgba(0, 0, 0, 0.72);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity var(--transition-normal),
        visibility var(--transition-normal);

    z-index: 2000;
}

.modal.open {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: min(100%, 560px);

    max-height: calc(100vh - 40px);

    overflow-y: auto;

    padding: 28px;

    border: 1px solid var(--border);

    border-radius: var(--radius-lg);

    background:
        rgba(10, 10, 16, 0.95);

    box-shadow:
        0 30px 100px rgba(0, 0, 0, 0.6);

    transform:
        translateY(15px) scale(0.98);

    transition:
        transform var(--transition-normal);
}

.modal.open .modal-content {
    transform:
        translateY(0) scale(1);
}

.modal-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 22px;
}

.modal-title {
    font-size: 21px;
}

.modal-close {
    width: 36px;
    height: 36px;

    display: grid;
    place-items: center;

    border-radius: 9px;

    color: var(--text-muted);

    transition:
        background var(--transition-fast),
        color var(--transition-fast);
}

.modal-close:hover {
    background:
        rgba(255, 255, 255, 0.07);

    color: white;
}

.modal-footer {
    display: flex;

    justify-content: flex-end;

    gap: 10px;

    margin-top: 25px;

    padding-top: 20px;

    border-top: 1px solid var(--border);
}


/* =========================================================
   21. NOTIFICATION ITEM
   ========================================================= */

.notification-item {
    display: flex;

    align-items: flex-start;

    gap: 12px;

    padding: 14px;

    border-bottom: 1px solid var(--border);

    transition:
        background var(--transition-fast);
}

.notification-item:hover {
    background:
        rgba(255, 255, 255, 0.025);
}

.notification-item.unread {
    background:
        rgba(124, 58, 237, 0.055);
}

.notification-icon {
    width: 36px;
    height: 36px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    border-radius: 11px;

    background:
        rgba(124, 58, 237, 0.12);

    color: #c4b5fd;

    font-size: 12px;
}

.notification-body {
    flex: 1;
}

.notification-text {
    color: var(--text-secondary);

    font-size: 11px;

    line-height: 1.6;
}

.notification-text strong {
    color: white;
}

.notification-time {
    display: block;

    margin-top: 4px;

    color: var(--text-muted);

    font-size: 9px;
}


/* =========================================================
   22. UPLOAD DROPZONE
   ========================================================= */

.dropzone {
    position: relative;

    min-height: 230px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    padding: 30px;

    border: 1px dashed rgba(168, 85, 247, 0.35);

    border-radius: var(--radius-lg);

    background:
        rgba(124, 58, 237, 0.045);

    text-align: center;

    transition:
        border-color var(--transition-fast),
        background var(--transition-fast);
}

.dropzone:hover,
.dropzone.dragover {
    border-color:
        rgba(168, 85, 247, 0.7);

    background:
        rgba(124, 58, 237, 0.09);
}

.dropzone-icon {
    width: 58px;
    height: 58px;

    display: grid;
    place-items: center;

    margin-bottom: 16px;

    border-radius: 16px;

    background:
        rgba(124, 58, 237, 0.12);

    color: #c4b5fd;

    font-size: 22px;
}

.dropzone h3 {
    margin-bottom: 6px;

    font-size: 17px;
}

.dropzone p {
    max-width: 340px;

    margin-bottom: 16px;

    font-size: 11px;
}

.dropzone input[type="file"] {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    cursor: pointer;

    opacity: 0;
}


/* =========================================================
   23. LOADING SPINNER
   ========================================================= */

.spinner {
    width: 30px;
    height: 30px;

    border: 3px solid rgba(255, 255, 255, 0.1);

    border-top-color: #a855f7;

    border-radius: 50%;

    animation:
        dv-spin 800ms linear infinite;
}

.spinner-sm {
    width: 18px;
    height: 18px;

    border-width: 2px;
}

.spinner-lg {
    width: 44px;
    height: 44px;

    border-width: 4px;
}


/* =========================================================
   24. SKELETON LOADING
   ========================================================= */

.skeleton {
    position: relative;

    overflow: hidden;

    border-radius: 8px;

    background:
        rgba(255, 255, 255, 0.06);
}

.skeleton::after {
    content: "";

    position: absolute;

    inset: 0;

    transform:
        translateX(-100%);

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.07),
            transparent
        );

    animation:
        skeleton-loading 1.4s infinite;
}

.skeleton-text {
    width: 100%;
    height: 12px;
}

.skeleton-title {
    width: 65%;
    height: 20px;

    margin-bottom: 10px;
}

.skeleton-avatar {
    width: 44px;
    height: 44px;

    border-radius: 50%;
}


/* =========================================================
   25. TOAST NOTIFICATION
   ========================================================= */

.toast-container {
    position: fixed;

    right: 20px;
    bottom: 20px;

    display: flex;

    flex-direction: column;

    gap: 10px;

    width: min(
        calc(100% - 40px),
        360px
    );

    z-index: 3000;

    pointer-events: none;
}

.toast {
    display: flex;

    align-items: flex-start;

    gap: 12px;

    padding: 14px;

    border: 1px solid var(--border);

    border-radius: 14px;

    background:
        rgba(10, 10, 16, 0.92);

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.4);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    pointer-events: auto;

    animation:
        toast-in 350ms ease forwards;
}

.toast-icon {
    width: 32px;
    height: 32px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    border-radius: 9px;

    background:
        rgba(124, 58, 237, 0.14);

    color: #c4b5fd;
}

.toast-body {
    flex: 1;
}

.toast-title {
    margin-bottom: 2px;

    color: white;

    font-size: 12px;
    font-weight: 700;
}

.toast-message {
    color: var(--text-muted);

    font-size: 10px;

    line-height: 1.5;
}

.toast-close {
    color: var(--text-muted);

    font-size: 12px;

    transition: color var(--transition-fast);
}

.toast-close:hover {
    color: white;
}


/* =========================================================
   26. DIVIDERS
   ========================================================= */

.divider {
    width: 100%;
    height: 1px;

    background:
        var(--border);
}

.divider-text {
    display: flex;

    align-items: center;

    gap: 15px;

    color: var(--text-muted);

    font-size: 10px;
}

.divider-text::before,
.divider-text::after {
    content: "";

    flex: 1;

    height: 1px;

    background:
        var(--border);
}


/* =========================================================
   27. TAG / CHIP
   ========================================================= */

.chip-group {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;
}

.chip {
    display: inline-flex;

    align-items: center;

    gap: 6px;

    padding: 7px 10px;

    border: 1px solid var(--border);

    border-radius: 999px;

    background:
        rgba(255, 255, 255, 0.035);

    color: var(--text-muted);

    font-size: 10px;

    transition:
        color var(--transition-fast),
        background var(--transition-fast),
        border-color var(--transition-fast);
}

.chip:hover {
    color: white;

    background:
        rgba(255, 255, 255, 0.07);

    border-color:
        var(--border-light);
}

.chip.active {
    color: #ddd6fe;

    background:
        rgba(124, 58, 237, 0.12);

    border-color:
        rgba(124, 58, 237, 0.3);
}


/* =========================================================
   28. STAT CARD
   ========================================================= */

.stat-card {
    padding: 22px;

    border: 1px solid var(--border);

    border-radius: var(--radius-lg);

    background:
        rgba(255, 255, 255, 0.035);
}

.stat-card-icon {
    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    margin-bottom: 18px;

    border-radius: 11px;

    background:
        rgba(124, 58, 237, 0.12);

    color: #c4b5fd;
}

.stat-card-value {
    margin-bottom: 3px;

    font-family: "Space Grotesk", sans-serif;

    font-size: 27px;
    font-weight: 700;

    letter-spacing: -0.05em;
}

.stat-card-label {
    color: var(--text-muted);

    font-size: 10px;
}


/* =========================================================
   29. STATUS DOT
   ========================================================= */

.status {
    display: inline-flex;

    align-items: center;

    gap: 6px;

    color: var(--text-muted);

    font-size: 10px;
}

.status-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: currentColor;
}

.status-online {
    color: #4ade80;
}

.status-offline {
    color: #71717a;
}

.status-busy {
    color: #f87171;
}

.status-away {
    color: #fbbf24;
}


/* =========================================================
   30. VISUALLY HIDDEN
   ========================================================= */

.visually-hidden {
    position: absolute !important;

    width: 1px !important;
    height: 1px !important;

    padding: 0 !important;
    margin: -1px !important;

    overflow: hidden !important;

    clip: rect(0, 0, 0, 0) !important;

    white-space: nowrap !important;

    border: 0 !important;
}


/* =========================================================
   COMPONENT ANIMATIONS
   ========================================================= */

@keyframes dv-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes skeleton-loading {
    100% {
        transform: translateX(100%);
    }
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* =========================================================
   END OF COMPONENTS
   ========================================================= */


/* =========================================================
   31. NAVBAR BRANDING
   ========================================================= */

.navbar-brand .navbar-logo-icon {
    display: none;
}

.navbar-brand .navbar-logo-full {
    display: block;
    width: auto;
    max-width: 180px;
    height: auto;
    border-radius: 14px;
}

/* Mobile / Small Screens */
@media (max-width: 600px) {

    .navbar-brand .navbar-logo-full {
        display: none;
    }

    .navbar-brand .navbar-logo-icon {
        display: block;
        width: 42px;
        height: 42px;
        object-fit: contain;
        border-radius: 12px;
    }
}