body {
    font-family: 'Inter', sans-serif;
    background-color: #171717;
    color: #FFFFFF;
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #171717; 
}
::-webkit-scrollbar-thumb {
    background: #333; 
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #C93E3E; 
}

.nav-link.active {
    color: #FFFFFF;
}

.sidebar-item {
    border-left: 3px solid transparent;
    transition: all 0.2s;
    cursor: pointer;
}
.sidebar-item:hover {
    background-color: rgba(255, 255, 255, 0.03);
    color: #fff;
}
.sidebar-item.active {
    background-color: rgba(201, 62, 62, 0.08);
    color: #C93E3E;
    border-left-color: #C93E3E;
}

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-enter {
    animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.modal-exit {
    animation: modalPopOut 0.2s ease-in forwards;
}

@keyframes modalPopOut {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0.95); }
}

.btn-accent {
    transition: all 0.2s ease;
}
.btn-accent:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(201, 62, 62, 0.3);
}

.status-dot {
    height: 8px;
    width: 8px;
    border-radius: 50%;
    background-color: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

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

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

@keyframes fadeInSimple {
	from { opacity: 0; transform: scale(0.98); }
	to { opacity: 1; transform: scale(1); }
}

.animate-slide-in { animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.animate-slide-out { animation: slideOutRight 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.animate-fade-in { animation: fadeInSimple 0.3s ease-out forwards; }

.rule-card:hover {
    border-color: rgba(201, 62, 62, 0.5);
    background-color: #252525;
}

.filter-btn.active {
    background-color: #C93E3E;
    color: white;
    border-color: #C93E3E;
}

.input-dark {
    background-color: #121212;
    border: 1px solid #333;
    color: white;
    padding: 12px;
    border-radius: 8px;
    width: 100%;
    transition: border-color 0.2s;
}
.input-dark:focus {
    border-color: #C93E3E;
    outline: none;
}

.chat-bubble {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.95rem;
    position: relative;
    word-wrap: break-word;
    line-height: 1.4;
}

.chat-bubble.mine {
    background-color: #C93E3E;
    color: white;
    margin-right: 10px;
    border-top-right-radius: 0;
}

.chat-bubble.theirs {
    background-color: #2a2a2a;
    color: #eee;
    border: 1px solid #333;
    margin-left: 10px;
    border-top-left-radius: 0;
}

#profileAvatar {
    position: relative;
    z-index: 20; 
}

.toast-enter {
    animation: toastSlideIn 0.3s cubic-bezier(0.21, 1.02, 0.73, 1);
}
.toast-exit {
    animation: toastSlideOut 0.3s forwards cubic-bezier(0.06, 0.71, 0.55, 1);
}

@keyframes toastSlideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes toastSlideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

.user-avatar {
    box-sizing: border-box;
    object-fit: cover;
    aspect-ratio: 1/1;
    transition: all 0.3s ease;
    padding: 3px;
    background-color: transparent;
    border: 2px solid #333;
}

.avatar-ranked {
    --rank-r: 255;
    --rank-g: 255;
    --rank-b: 255;

    border-color: rgb(var(--rank-r), var(--rank-g), var(--rank-b));
    box-shadow: 0 0 15px rgba(var(--rank-r), var(--rank-g), var(--rank-b), 0.5);
    animation: glow-universal 3s infinite alternate;
}

@keyframes glow-universal {
    from { box-shadow: 0 0 10px rgba(var(--rank-r), var(--rank-g), var(--rank-b), 0.3); }
    to { box-shadow: 0 0 20px rgba(var(--rank-r), var(--rank-g), var(--rank-b), 0.7); }
}
