/* Global CSS for RUU Dashboard */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-main: #ffffff;
    --sidebar-bg: #141414;
    --sidebar-text: #9ca3af;
    --sidebar-active-bg: #ffffff;
    --sidebar-active-text: #141414;
    --border: #e5e7eb;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --btn-primary: #000000;
    --btn-primary-text: #ffffff;
    --btn-outline: #ffffff;
    --btn-outline-border: #d1d5db;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    display: flex;
    background-color: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
}

/* Sidebar Styles */
#sidebar {
    width: 260px;
    background-color: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    border-right: 1px solid #2a2a2a;
}

.sidebar-brand {
    padding: 24px;
    font-weight: 700;
    font-size: 16px;
    color: #ffffff;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: 1px solid #2a2a2a;
    margin-bottom: 16px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-nav a {
    text-decoration: none;
    color: var(--sidebar-text);
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.sidebar-nav a:hover {
    color: #ffffff;
}

.sidebar-nav a.active {
    background-color: var(--sidebar-active-bg);
    color: var(--sidebar-active-text);
}

.sidebar-user {
    margin-top: auto;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid #2a2a2a;
}

.sidebar-user .avatar {
    background-color: #333;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.sidebar-user .name {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
}

/* Main Content Area */
#main-wrapper {
    margin-left: 260px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Top Header */
.top-header {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    border-bottom: 1px solid var(--border);
}

.page-title {
    font-size: 20px;
    font-weight: 600;
}

.header-user .avatar {
    background-color: #e2e8f0;
    color: #475569;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
}

/* Content Container */
.content {
    padding: 40px;
    max-width: 1200px;
    width: 100%;
}

/* Cards & Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.card {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    background: #fff;
    margin-bottom: 24px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-black {
    background-color: var(--btn-primary);
    color: var(--btn-primary-text);
}

.btn-black:hover {
    background-color: #333;
}

.btn-outline {
    background-color: var(--btn-outline);
    border: 1px solid var(--btn-outline-border);
    color: var(--text-primary);
}

.btn-outline:hover {
    background-color: #f9fafb;
}

.btn-full {
    width: 100%;
}

/* Inputs & Forms */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
}

.form-control:focus {
    border-color: #000;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* specific UI elements seen in screenshots */
.badge-active {
    background-color: #f3f4f6;
    color: #374151;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #e5e7eb;
}

.progress-bar-container {
    margin: 16px 0;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 6px;
    font-weight: 500;
}

.progress-track {
    height: 6px;
    background-color: #f3f4f6;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #000;
}

/* FAQ Elements */
.search-bar {
    width: 100%;
    padding: 14px 20px 14px 44px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    margin-bottom: 24px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="%239ca3af" stroke-width="2"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg>') no-repeat 16px center;
}

.pills {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
}

.pill {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    background: #fff;
}

.pill.active {
    background: #000;
    color: #fff;
    border-color: #000;
}

.section-title {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 0.5px;
    margin: 24px 0 12px 0;
}

.accordion-item {
    border-bottom: 1px solid var(--border);
}

.accordion-title {
    padding: 18px 0;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
}

.accordion-content {
    display: none;
    padding-bottom: 18px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.accordion-item.active .accordion-content {
    display: block;
}

/* File Upload */
.upload-box {
    border: 1px dashed var(--border);
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
}

.upload-box:hover {
    background-color: #f9fafb;
}

.upload-box svg {
    margin-bottom: 12px;
}
