:root {
    --primary-color: #aa00aa;
    --secondary-color: #ff55ff;
    --background-color: #111827;
    --content-bg: #1f2937;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
}

.sidebar-link:hover, .sidebar-link.active {
    background-color: var(--content-bg);
    color: var(--secondary-color);
}

/* --- Custom Checkbox Styles --- */
.custom-checkbox {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #374151; /* gray-700 */
    border: 1px solid #4b5563; /* gray-600 */
    border-radius: 0.25rem;
    width: 1.25rem;
    height: 1.25rem;
    position: relative;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
    vertical-align: middle;
    margin-right: 0.5rem;
}

.custom-checkbox:checked {
    background-color: var(--primary-color);
    border-color: var(--secondary-color);
}

.custom-checkbox:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(170, 0, 170, 0.5);
}

.custom-checkbox:checked::after {
    content: '✔';
    position: absolute;
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* --- NEW: Custom Radio Button Styles --- */
.custom-radio {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #374151; /* gray-700 */
    border: 1px solid #4b5563; /* gray-600 */
    border-radius: 50%; /* Make it round */
    width: 1.25rem;
    height: 1.25rem;
    position: relative;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
    vertical-align: middle;
    margin-right: 0.5rem;
}

.custom-radio:checked {
    background-color: var(--primary-color);
    border-color: var(--secondary-color);
}

.custom-radio:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(170, 0, 170, 0.5);
}

.custom-radio:checked::after {
    content: '';
    position: absolute;
    display: block;
    background-color: white;
    border-radius: 50%;
    width: 0.6rem; /* Size of the inner dot */
    height: 0.6rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


/* Quill Editor Styling */
.ql-toolbar {
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
    border-color: #4b5563 !important; /* gray-600 */
}

.ql-container {
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
    border-color: #4b5563 !important;
    color: #d1d5db; /* gray-300 */
    min-height: 150px;
}

.ql-editor p, .ql-editor ol, .ql-editor ul, .ql-editor pre, .ql-editor blockquote, .ql-editor h1, .ql-editor h2, .ql-editor h3 {
     color: #d1d5db;
}

.ql-snow .ql-stroke { stroke: #9ca3af; }
.ql-snow .ql-fill { fill: #9ca3af; }

/* Make images in posts responsive */
.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* --- Role Title Badges for Dashboard --- */
.role-title-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px; /* This makes it pill-shaped */
    color: #ffffff;
    font-size: 1.5rem; /* text-2xl */
    font-weight: 700;  /* font-bold */
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.role-manager { background-color: #aa0000; }
.role-event-manager { background-color: #aa00aa; }
.role-event-coordinator { background-color: #ff55ff; }

/* For lighter colors, use a dark text for better contrast */
.role-builder { 
    background-color: #55ff55;
    color: #111827; 
}
.role-qa {
    background-color: #ffff55;
    color: #111827;
}

/* --- Profile Picture Borders --- */
.pfp-border {
    border-width: 3px;
    border-style: solid;
}

.pfp-border-default { border-color: #4b5563; } /* gray-600 */
.pfp-border-manager { border-color: #aa0000; }
.pfp-border-event-manager { border-color: #aa00aa; }
.pfp-border-event-coordinator { border-color: #ff55ff; }
.pfp-border-builder { border-color: #55ff55; }
.pfp-border-qa { border-color: #ffff55; }

/* --- Consistent Role Tags --- */
.role-tag {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.75rem; /* text-xs */
    font-weight: 600; /* font-semibold */
    margin: 2px;
}

/* --- NEW: Username Colors --- */
.username-manager { color: #aa0000; }
.username-event-manager { color: #aa00aa; }
.username-event-coordinator { color: #ff55ff; }
.username-builder { color: #55ff55; }
.username-qa { color: #ffff55; }

/* --- NEW: Thread Tags --- */
.thread-tag {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    background-color: #4b5563; /* gray-600 */
    color: #d1d5db; /* gray-300 */
}


/* Responsive Adjustments for Mobile */
@media (max-width: 768px) {
    /* Make the reply box profile image smaller on mobile to save space */
    #reply-profile-container img {
        width: 4rem; /* 64px */
        height: 4rem; /* 64px */
    }

    #reply-profile-container p {
        font-size: 1rem; /* 16px */
    }

    /* Reduce padding on main content for smaller screens */
    main.p-8 {
        padding: 1rem;
    }
}