/* ========================================= */
/* LFG SYSTEM STYLES - JUDGEMENT GUILD      */
/* ========================================= */

/* ===================== */
/* RESET & BASE STYLES  */
/* ===================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #1e1e1e;
    color: #dcddde;
    line-height: 1.5;
    overflow-x: hidden;
}

/* ===================== */
/* LAYOUT               */
/* ===================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px;
}

/* Page Header - Contains title and user profile */
.page-header {
    position: relative;
    text-align: center;
    padding: 20px 0 16px;
    border-bottom: 2px solid #2f3136;
    margin-bottom: 16px;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.page-header p {
    font-size: 0.9rem;
    color: #96989d;
}

/* ===================== */
/* USER PROFILE DROPDOWN */
/* ===================== */
.user-profile {
    position: absolute;
    top: 20px;
    right: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-profile-button {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #2f3136;
    border: 2px solid #40444b;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.user-profile-button:hover {
    background: #40444b;
    border-color: #8306f7;
}

/* User avatar - shows Discord avatar or initials */
.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #8306f7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #ffffff;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.user-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
}

.user-status {
    font-size: 0.75rem;
    color: #96989d;
}

/* Dropdown arrow animation */
.dropdown-arrow {
    color: #96989d;
    font-size: 0.7rem;
    transition: transform 0.2s;
}

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

/* Dropdown menu */
.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: #2f3136;
    border: 2px solid #40444b;
    border-radius: 8px;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    overflow: hidden;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #dcddde;
    cursor: pointer;
    transition: background 0.2s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background: #40444b;
}

.dropdown-item.danger {
    color: #ed4245;
}

.dropdown-item.danger:hover {
    background: #ed424520;
}

.dropdown-divider {
    height: 1px;
    background: #40444b;
    margin: 4px 0;
}

/* Mobile responsive - move profile to center */
@media (max-width: 768px) {
    .user-profile {
        position: static;
        justify-content: center;
        margin-bottom: 16px;
    }
}

/* ===================== */
/* LAYOUT - SPLIT VIEW  */
/* ===================== */
/* Split layout - Parties left, Queue right */
.lfg-container.split-view {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    height: 600px; /* Fixed equal height for both sections */
}

.section-parties-left,
.section-queue-right {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%; /* Fill parent height */
    background: #2f3136;
    border-radius: 10px;
    padding: 16px;
    overflow: hidden;
}

.section-parties-left .parties-list {
    flex: 1;
    overflow-y: auto;
    margin-top: 12px;
    padding-right: 4px;
}

.section-queue-right .queue-table-wrapper {
    flex: 1;
    overflow-y: auto;
    margin-top: 12px;
}

/* Scrollbar styling for parties list */
.section-parties-left .parties-list::-webkit-scrollbar,
.section-queue-right .queue-table-wrapper::-webkit-scrollbar {
    width: 8px;
}

.section-parties-left .parties-list::-webkit-scrollbar-track,
.section-queue-right .queue-table-wrapper::-webkit-scrollbar-track {
    background: #202225;
    border-radius: 4px;
}

.section-parties-left .parties-list::-webkit-scrollbar-thumb,
.section-queue-right .queue-table-wrapper::-webkit-scrollbar-thumb {
    background: #4f545c;
    border-radius: 4px;
}

.section-parties-left .parties-list::-webkit-scrollbar-thumb:hover,
.section-queue-right .queue-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #5f656c;
}

/* Responsive - stack on smaller screens */
@media (max-width: 1200px) {
    .lfg-container.split-view {
        grid-template-columns: 1fr;
        height: auto;
    }
}

/* ===================== */
/* ACTIVE PANEL         */
/* ===================== */
.active-panel {
    background: #2f3136;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 12px;
    border: 2px solid #5865f2;
}

.active-panel-title {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 16px;
    font-weight: 700;
}

.active-status-card {
    background: #202225;
    border-radius: 8px;
    padding: 16px;
}

.active-status-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.active-status-header h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin: 0;
}

.leader-badge {
    background: #faa61a;
    color: #000;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.active-note {
    color: #b9bbbe;
    font-style: italic;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.active-party-members {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.active-member {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #2f3136;
    padding: 8px 12px;
    border-radius: 6px;
}

.active-member img {
    width: 32px;
    height: 32px;
}

.active-member-name {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
}

.active-member-level {
    color: #00d9ff;
    font-size: 0.8rem;
}

.active-queue-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.active-queue-info img {
    width: 48px;
    height: 48px;
}

.active-stats {
    display: flex;
    gap: 16px;
    padding-top: 12px;
    border-top: 1px solid #36393f;
    color: #96989d;
    font-size: 0.85rem;
}

.active-empty {
    text-align: center;
    padding: 30px 20px;
}

.active-empty-content {
    max-width: 400px;
    margin: 0 auto;
}

.active-empty-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.active-empty h4 {
    color: #ffffff;
    font-size: 1.3rem;
    margin: 0 0 8px 0;
}

.active-empty p {
    color: #b9bbbe;
    font-size: 0.95rem;
    margin: 0 0 20px 0;
}

.active-empty-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* ===================== */
/* OLD STACKED LAYOUT (KEEP FOR COMPATIBILITY) */
/* ===================== */
/* NOTIFICATIONS        */
/* ===================== */
/* Toast notifications in top-right corner */
.notifications {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
}

.notification {
    background: #2f3136;
    border-left: 4px solid;
    border-radius: 8px;
    padding: 14px 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    animation: slideIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Notification type colors */
.notification.success { border-color: #3ba55d; }
.notification.error { border-color: #ed4245; }
.notification.info { border-color: #5865f2; }
.notification.warning { border-color: #faa61a; }

.notification-icon {
    font-size: 1.4rem;
}

.notification-content {
    flex: 1;
    font-size: 0.9rem;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ===================== */
/* SECTIONS             */
/* ===================== */
/* Container for queue and party sections */
.section {
    background: #2f3136;
    border-radius: 10px;
    padding: 16px;
    height: fit-content;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 2px solid #202225;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Count badge (e.g., queue size, party count) */
.section-count {
    background: #5865f2;
    color: #fff;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ===================== */
/* BUTTONS              */
/* ===================== */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.btn:active {
    transform: translateY(0);
}

/* Button variants */
.btn-primary {
    background: #5865f2;
    color: #fff;
}

.btn-primary:hover {
    background: #4752c4;
}

.btn-success {
    background: #3ba55d;
    color: #fff;
}

.btn-success:hover {
    background: #2d7d46;
}

.btn-danger {
    background: #ed4245;
    color: #fff;
}

.btn-danger:hover {
    background: #c03537;
}

.btn-secondary {
    background: #4e5058;
    color: #fff;
}

.btn-secondary:hover {
    background: #3c3f45;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.85rem;
}

/* ===================== */
/* QUEUE                */
/* ===================== */
/* Excel-style Queue Table */
.queue-table-wrapper {
    margin-top: 12px;
    overflow-x: auto;
    border-radius: 6px;
    border: 1px solid #2f3136;
}

.queue-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.queue-table thead {
    background: #2f3136;
    position: sticky;
    top: 0;
    z-index: 10;
}

.queue-table thead th {
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    color: #b9bbbe;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #40444b;
    white-space: nowrap;
}

.queue-table tbody tr {
    background: #36393f;
    transition: background 0.15s ease;
    border-bottom: 1px solid #2f3136;
}

.queue-table tbody tr:hover {
    background: #3a3d44;
}

.queue-table tbody tr:last-child {
    border-bottom: none;
}

.queue-table td {
    padding: 10px 12px;
    vertical-align: middle;
}

.queue-cell-class {
    width: 50px;
    text-align: center;
}

.queue-cell-class img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    vertical-align: middle;
}

.queue-cell-player {
    font-weight: 600;
    color: #ffffff;
    min-width: 120px;
}

.queue-cell-level {
    width: 60px;
    text-align: center;
    color: #00d9ff;
    font-weight: 600;
}

.queue-cell-note {
    color: #b9bbbe;
    font-style: italic;
    max-width: 300px;
}

.queue-cell-note .note-text {
    color: #dcddde;
}

.queue-cell-note .note-empty {
    color: #4f545c;
}

.queue-cell-time {
    width: 100px;
    color: #96989d;
    font-size: 0.85rem;
}

.queue-cell-action {
    width: 80px;
    text-align: center;
}

.queue-cell-action .btn {
    padding: 4px 12px;
    font-size: 0.8rem;
}

.queue-empty {
    text-align: center;
    padding: 30px;
    color: #96989d;
    font-style: italic;
}

/* ===================== */
/* PARTIES              */
/* ===================== */
.parties-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

/* Scrollbar styling only when in split-view context (defined above) */

/* Individual party card - 2 Row Layout (Compact) */
.party-card {
    background: #202225;
    border-radius: 6px;
    padding: 12px;
    border-left: 3px solid #faa61a; /* Orange for recruiting */
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.party-card.full {
    border-left-color: #3ba55d; /* Green for full parties */
}

/* Row 1: Party Info */
.party-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px solid #2f3136;
}

.party-main-info {
    flex: 1;
}

.party-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2px;
}

.party-note-inline {
    font-size: 0.75rem;
    color: #b9bbbe;
    font-style: italic;
    margin-top: 2px;
}

.party-stats {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
}

.party-count {
    font-weight: 600;
    color: #00d9ff;
    font-size: 0.85rem;
}

.party-time {
    font-size: 0.75rem;
    color: #96989d;
}

/* Status badges */
.status-badge {
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
}

.status-badge.recruiting {
    background: #faa61a;
    color: #000;
}

.status-badge.full {
    background: #3ba55d;
    color: #fff;
}

/* Row 2: Member Cards (8 slots) - Compact */
.party-members-row {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 6px;
}

/* Individual Member Card - Compact */
.member-card {
    background: #2f3136;
    border-radius: 4px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    min-height: 65px;
    transition: all 0.2s ease;
}

.member-card:hover {
    background: #36393f;
    transform: translateY(-1px);
}

.member-card-empty {
    background: #1a1c1f;
    border: 1px dashed #2f3136;
    justify-content: center;
}

.member-card-empty:hover {
    background: #1a1c1f;
    transform: none;
}

.member-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
}

.member-class-icon {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.member-info {
    text-align: center;
    width: 100%;
}

.member-name {
    font-size: 0.7rem;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.member-level {
    font-size: 0.65rem;
    color: #00d9ff;
    font-weight: 600;
}

.leader-crown {
    margin-left: 2px;
    font-size: 0.75rem;
}

.empty-slot {
    color: #4f545c;
    font-size: 0.7rem;
    text-align: center;
}

/* Kick Button */
.kick-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #ed4245;
    border: none;
    color: #fff;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    font-size: 0.65rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    padding: 0;
    line-height: 1;
}

.member-card:hover .kick-btn {
    opacity: 1;
}

.kick-btn:hover {
    background: #c03537;
}

/* Responsive adjustments */
@media (max-width: 1400px) {
    .party-members-row {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .party-members-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.party-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

/* ===================== */
/* COMPACT HORIZONTAL LAYOUT */
/* ===================== */
.party-card-compact {
    background: #202225;
    border-radius: 6px;
    padding: 10px;
    border-left: 3px solid #faa61a;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.party-card-compact.full {
    border-left-color: #3ba55d;
}

.party-card-compact.my-party {
    border-left-color: #5865f2;
    background: #252831;
}

/* Top Row: Party Header with Name, Note, Count, Time */
.party-header-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #2f3136;
}

.party-name-compact {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 100px;
}

.party-note-compact {
    font-size: 0.7rem;
    color: #b9bbbe;
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.party-meta-compact {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    flex-shrink: 0;
}

.party-count-compact {
    font-weight: 700;
    color: #00d9ff;
    font-size: 0.85rem;
    min-width: 35px;
}

.party-time-compact {
    font-size: 0.7rem;
    color: #96989d;
    white-space: nowrap;
}

/* Bottom Row: Member Cards - Horizontal */
.party-members-horizontal {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 2px 0;
}

.party-members-horizontal::-webkit-scrollbar {
    height: 6px;
}

.party-members-horizontal::-webkit-scrollbar-track {
    background: #1a1c1f;
    border-radius: 4px;
}

.party-members-horizontal::-webkit-scrollbar-thumb {
    background: #4f545c;
    border-radius: 4px;
}

.party-members-horizontal::-webkit-scrollbar-thumb {
    background: #4f545c;
    border-radius: 4px;
}

.member-card-horizontal {
    background: #2f3136;
    border-radius: 4px;
    padding: 4px 7px;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 90px;
    max-width: 130px;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.member-card-horizontal:hover {
    background: #36393f;
}

.member-empty-horizontal {
    background: #1a1c1f;
    border: 1px dashed #2f3136;
    justify-content: center;
    min-width: 60px;
}

.member-empty-horizontal:hover {
    background: #1a1c1f;
}

.member-icon-horizontal {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.member-info-horizontal {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
    min-width: 0;
}

.member-name-horizontal {
    font-size: 0.72rem;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.crown-horizontal {
    font-size: 0.7rem;
    margin-right: 2px;
}

.member-level-horizontal {
    font-size: 0.65rem;
    color: #00d9ff;
    font-weight: 600;
}

.empty-text {
    color: #4f545c;
    font-size: 0.7rem;
}

.kick-btn-horizontal {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #ed4245;
    border: none;
    color: #fff;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    font-size: 0.6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    padding: 0;
    line-height: 1;
}

.member-card-horizontal:hover .kick-btn-horizontal {
    opacity: 1;
}

.kick-btn-horizontal:hover {
    background: #c03537;
}

/* ===================== */
/* PENDING REQUESTS     */
/* ===================== */
/* Join requests section (for party leaders) */
.requests-section {
    background: #2f3136;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
}

.request-card {
    background: #202225;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.request-info {
    flex: 1;
}

.request-info strong {
    color: #ffffff;
    font-size: 0.95rem;
}

.request-info span {
    display: block;
    font-size: 0.85rem;
    color: #96989d;
    margin-top: 2px;
}

.request-actions {
    display: flex;
    gap: 8px;
}

/* ===================== */
/* MODALS               */
/* ===================== */
/* Modal overlay (darkened background) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Modal content box */
.modal {
    background: #2f3136;
    border-radius: 10px;
    padding: 24px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: scaleIn 0.2s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-header {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
}

.modal-body {
    margin-bottom: 20px;
}

/* Form elements */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #b9bbbe;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #202225;
    border-radius: 6px;
    background: #202225;
    color: #dcddde;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #5865f2;
}

/* Class selection grid */
.class-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

@media (max-width: 600px) {
    .class-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.class-option {
    background: #202225;
    border: 2px solid #202225;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.class-option:hover {
    background: #292b2f;
}

.class-option.selected {
    border-color: #5865f2;
    background: #2f3651;
}

.class-option img {
    width: 48px;
    height: 48px;
    margin-bottom: 6px;
}

.class-option-name {
    font-size: 0.85rem;
    font-weight: 600;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Message boxes */
.error-message {
    background: #ed4245;
    color: #fff;
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.success-message {
    background: #3ba55d;
    color: #fff;
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

/* ===================== */
/* UTILITY              */
/* ===================== */
.text-muted {
    color: #96989d;
}

.leader-badge {
    color: #faa61a;
    font-size: 0.8rem;
    margin-left: 4px;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #96989d;
}

/* Loading spinner */
.spinner {
    border: 3px solid #202225;
    border-top-color: #5865f2;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
