/* Committee Connect Specific Styles */

:root {
    --font-headline: 'Bebas Neue', sans-serif;
    --font-body: 'Barlow', sans-serif;
    --font-mono: 'Source Code Pro', monospace;

    /* HSL values matching concept */
    --background: 240 10% 98%;
    --foreground: 222.2 84% 4.9%;
    --card: 0 0% 100%;
    --card-foreground: 222.2 84% 4.9%;
    --primary: 222.2 47.4% 11.2%;
    --primary-foreground: 210 40% 98%;
    --secondary: 210 40% 96.1%;
    --secondary-foreground: 222.2 47.4% 11.2%;
    --muted: 220 14% 96%;
    --muted-foreground: 215.4 16.3% 46.9%;
    --accent: 0 72% 51%;
    /* MCAA Red */
    --accent-foreground: 0 0% 100%;
    --border: 214.3 31.8% 91.4%;
    --radius: 0.75rem;
}

body {
    font-family: var(--font-body);
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
}

.font-headline {
    font-family: var(--font-headline);
    text-transform: uppercase;
}

/* Utility classes */
.hidden {
    display: none !important;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-row {
    flex-direction: row;
}

.items-start {
    align-items: flex-start;
}

.items-center {
    align-items: center;
}

.items-end {
    align-items: flex-end;
}

.justify-start {
    justify-content: flex-start;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-end {
    justify-content: flex-end;
}

.gap-1 {
    gap: 0.25rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.space-y-4>*+* {
    margin-top: 1rem;
}

.space-y-6>*+* {
    margin-top: 1.5rem;
}

.p-3 {
    padding: 0.75rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.min-h-screen {
    min-height: 100vh;
}

.w-full {
    width: 100%;
}

.h-16 {
    height: 4rem;
}

.h-4 {
    height: 1rem;
}

.w-4 {
    width: 1rem;
}

.h-10 {
    height: 2.5rem;
}

.w-10 {
    width: 2.5rem;
}

.h-8 {
    height: 2rem;
}

.w-8 {
    width: 2rem;
}

.border {
    border: 1px solid hsl(var(--border));
}

.border-b {
    border-bottom: 1px solid hsl(var(--border));
}

.border-dashed {
    border-style: dashed;
}

.rounded {
    border-radius: 0.375rem;
}

.rounded-lg {
    border-radius: var(--radius);
}

.rounded-md {
    border-radius: 0.375rem;
}

.rounded-full {
    border-radius: 9999px;
}

.bg-background {
    background-color: hsl(var(--background));
}

.bg-card {
    background-color: hsl(var(--card));
}

.bg-muted {
    background-color: hsl(var(--muted));
}

.bg-muted\/40 {
    background-color: hsl(var(--muted) / 0.4);
}

.bg-muted\/50 {
    background-color: hsl(var(--muted) / 0.5);
}

.bg-primary {
    background-color: hsl(var(--primary));
}

.bg-secondary {
    background-color: hsl(var(--secondary));
}

.text-foreground {
    color: hsl(var(--foreground));
}

.text-primary {
    color: hsl(var(--primary));
}

.text-primary-foreground {
    color: hsl(var(--primary-foreground));
}

.text-muted-foreground {
    color: hsl(var(--muted-foreground));
}

.text-secondary-foreground {
    color: hsl(var(--secondary-foreground));
}

.text-destructive {
    color: hsl(var(--destructive));
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-base {
    font-size: 1rem;
    line-height: 1.5rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.uppercase {
    text-transform: uppercase;
}

.tracking-wide {
    letter-spacing: 0.025em;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

.tracking-widest {
    letter-spacing: 0.1em;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.sticky {
    position: sticky;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.top-0 {
    top: 0;
}

.bottom-2 {
    bottom: 0.5rem;
}

.right-2 {
    right: 0.5rem;
}

.z-30 {
    z-index: 30;
}

.overflow-auto {
    overflow: auto;
}

.overflow-y-auto {
    overflow-y: auto;
}

.overflow-x-auto {
    overflow-x: auto;
}

.overflow-hidden {
    overflow: hidden;
}

.flex-1 {
    flex: 1 1 0%;
}

.shrink-0 {
    flex-shrink: 0;
}

.max-w-xs {
    max-width: 20rem;
}

.transition-colors {
    transition-property: color, background-color, border-color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.inline-flex {
    display: inline-flex;
}

.aspect-square {
    aspect-ratio: 1 / 1;
}

.object-cover {
    object-fit: cover;
}

.resize-none {
    resize: none;
}

.pr-4 {
    padding-right: 1rem;
}

.pr-24 {
    padding-right: 6rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

/* Grid */
.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.auto-rows-min {
    grid-auto-rows: min-content;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .lg\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .lg\:p-6 {
        padding: 1.5rem;
    }

    .dashboard-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 640px) {
    .sm\:px-6 {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* Card Styles - IMPROVED */
.card {
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border));
    background-color: hsl(var(--card));
    color: hsl(var(--card-foreground));
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.card-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid hsl(var(--border) / 0.5);
}

.card-title {
    font-family: var(--font-headline);
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.card-description {
    font-size: 0.938rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
}

.card-content {
    padding: 2rem;
}

.card-footer {
    display: flex;
    align-items: center;
    padding: 1.5rem 2rem;
    border-top: 1px solid hsl(var(--border) / 0.5);
}

/* Button styles - IMPROVED */
.btn-mcaa-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    font-weight: 600;
    background-color: hsl(var(--accent));
    color: #ffffff;
    /* Explicit white for better contrast against red */
    border: none;
    cursor: pointer;
    transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-mcaa-primary:hover {
    background-color: hsl(var(--accent) / 0.9);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(234, 0, 41, 0.2);
}

.btn-mcaa-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    font-weight: 500;
    background-color: transparent;
    color: hsl(var(--foreground));
    border: 1px solid hsl(var(--border));
    cursor: pointer;
    transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-mcaa-secondary:hover {
    background-color: hsl(var(--muted));
}

.btn-sm {
    height: 2.25rem;
    padding: 0 1rem;
    font-size: 0.875rem;
}

/* Modal - IMPROVED */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 50;
    backdrop-filter: blur(4px);
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* Spinner */
.mcaa-spinner {
    border: 3px solid hsl(var(--muted));
    border-top: 3px solid hsl(var(--accent));
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Hover effects */
.hover\\:bg-muted\\/50:hover {
    background-color: hsl(var(--muted) / 0.5);
}

.hover\\:underline:hover {
    text-decoration: underline;
}

.hover\\:bg-secondary\\/80:hover {
    background-color: hsl(var(--secondary) / 0.8);
}

/* Input/textarea styles */
input[type="text"],
input[type="email"],
textarea,
select {
    display: flex;
    width: 100%;
    border-radius: 0.375rem;
    border: 1px solid hsl(var(--border));
    background-color: hsl(var(--background));
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    transition: border-color 150ms;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: hsl(var(--accent));
    box-shadow: 0 0 0 3px hsl(var(--accent) / 0.1);
}

textarea {
    min-height: 80px;
    resize: vertical;
}

/* Message spacing */
.space-y-2>*+* {
    margin-top: 0.5rem;
}

/* Reaction picker */
.reaction-picker {
    animation: fadeIn 0.1s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-2px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.emoji-btn {
    cursor: pointer;
    border: none;
    background: transparent;
}

/* Hover effects */
.hover\:scale-110:hover {
    transform: scale(1.1);
}

.transition-opacity {
    transition: opacity 0.15s ease;
}

.transition-transform {
    transition: transform 0.1s ease;
}

/* Background opacity classes */
.bg-primary\/10 {
    background-color: hsl(var(--primary) / 0.1);
}

/* Utilities */
.ml-0\.5 {
    margin-left: 0.125rem;
}

.mt-0\.5 {
    margin-top: 0.125rem;
}

.mb-0\.5 {
    margin-bottom: 0.125rem;
}

.gap-0\.5 {
    gap: 0.125rem;
}

.py-1\.5 {
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
}

.py-2\.5 {
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
}

.py-3\.5 {
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
}

.px-1\.5 {
    padding-left: 0.375rem;
    padding-right: 0.375rem;
}

.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}