@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;500;700&family=Fira+Code:wght@400;500&display=swap');

:root {
    /* MAOSC Theme Colors */
    --mint: #B6EED9;
    --light-green: #DFF0C8;
    --peach: #FFD9BD;
    --pink: #FF9AA2;
    --text-dark: #2d3436;
    --text-light: #636e72;
    --white: #ffffff;
    --bg-light: #fafafa;

    --border-color: #ebebeb;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-dark);
}

a {
    text-decoration: none;
    color: inherit;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

p {
    color: var(--text-light);
}

/* Layouts */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(182, 238, 217, 0.2) 0%, rgba(255, 217, 189, 0.2) 100%);
}

.glass-panel {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 440px;
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.form-input {
    width: 100%;
    background: var(--white);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02) inset;
}

.form-input:focus {
    outline: none;
    border-color: var(--pink);
    box-shadow: 0 0 0 3px rgba(255, 154, 162, 0.2);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--pink);
    color: white;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    width: 100%;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 154, 162, 0.4);
}

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

/* Custom Multi-Select Dropdown */
.multi-select {
    position: relative;
    display: inline-block;
    width: auto;
    min-width: 160px;
    font-size: 0.9rem;
    user-select: none;
}

.ms-header {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: var(--text-dark);
}

.ms-header:hover {
    border-color: var(--pink);
}

.ms-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 120px;
}

.ms-options {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 100%;
    margin-top: 4px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 50;
    display: none;
    max-height: 250px;
    overflow-y: auto;
}

.ms-options.show {
    display: block;
}

.ms-options label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    color: var(--text-dark);
}

.ms-options label:hover {
    background: var(--bg-light);
}

.ms-options input[type="checkbox"] {
    accent-color: var(--pink);
    width: 14px;
    height: 14px;
    cursor: pointer;
}

/* Dashboard Layout */
.dashboard-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: var(--white);
    border-right: 1px solid var(--border-color);
    padding: 2rem 1.5rem;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.02);
}

.brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-light);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.2s;
    margin-bottom: 0.5rem;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 154, 162, 0.1);
    color: var(--pink);
}

.main-content {
    padding: 2.5rem;
    overflow-y: auto;
    background-color: var(--bg-light);
}

/* Badges & Tables */
.badge {
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge.draft {
    background: rgba(99, 110, 114, 0.1);
    color: var(--text-light);
}

.badge.reviewed {
    background: rgba(182, 238, 217, 0.3);
    color: #20bf6b;
}

.badge.selected {
    background: rgba(255, 154, 162, 0.2);
    color: #eb3b5a;
}

/* Code Editor Specifics */
code,
pre,
.latex-editor {
    font-family: 'Fira Code', monospace;
}

.editor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    height: calc(100vh - 150px);
}

.latex-textarea {
    width: 100%;
    height: 100%;
    background: var(--white);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    font-size: 0.95rem;
    resize: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.latex-textarea:focus {
    outline: none;
    border-color: var(--mint);
    box-shadow: 0 0 0 3px rgba(182, 238, 217, 0.3);
}

.pdf-preview {
    background: #ffffff;
    border-radius: var(--radius-md);
    border: none;
    width: 100%;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Utilities */
.gradient-text {
    background: linear-gradient(45deg, var(--text-dark), var(--pink));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}