/* Global reset-ish */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Page background */
body {
    background: #f5f7fb;
    color: #1f2933;
}

/* Page layout: main + right sidebar */
.page-layout {
    display: flex;
    min-height: 100vh;
    padding: 24px;
    gap: 24px;
}

/* Main area (left) */
.main-area {
    flex: 1;
    background: #ffffff;
    border-radius: 16px;
    padding: 24px 32px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
}

.main-header h1 {
    margin: 0 0 16px;
    font-size: 24px;
    font-weight: 700;
}

/* Hero illustration + main CTA */
.hero {
    flex: 0 0 auto;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

/* Canvas placeholder for illustration */
#rive {
    width: 100%;
    max-height: 420px;
    border-radius: 16px;
    background: #e6f0ff;          /* placeholder blue background */
    border: 1px solid #d0e2ff;
    display: block;
}

/* Main big button */
.primary-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    background: #2563eb;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
    transition: background 0.15s ease, transform 0.1s ease,
                box-shadow 0.15s ease;
}

.primary-cta:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.35);
}

/* Text section */
.description {
    margin-top: 8px;
}

.description p {
    margin: 0 0 8px;
    line-height: 1.5;
    color: #4b5563;
}

/* Right sidebar */
.right-sidebar {
    width: 320px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Generic card styles */
.sidebar-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

/* User card */
.user-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: #e5edff;
    color: #1d4ed8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.user-label {
    margin: 0;
    font-size: 12px;
    color: #6b7280;
}

.user-name {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

/* Main sidebar button styles */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: #2563eb;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.15s ease;
}

.btn-primary:hover {
    background: #1d4ed8;
}

/* Actions card (tabs & secondary links) */
.actions-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.actions-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}

.tab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 4px;
    border-radius: 999px;
    background: #f3f4ff;
    color: #111827;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease,
                color 0.15s ease;
}

.tab-btn:hover {
    background: #e0e7ff;
    border-color: #c7d2fe;
}

.actions-secondary {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.link-btn {
    display: inline-flex;
    align-items: center;
    padding: 6px 4px;
    border-radius: 8px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
}

.link-btn:hover {
    text-decoration: underline;
}

/* Widget cards */
.widget-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.widget-title {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 600;
    color: #111827;
}

.widget-score {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #111827;
}

.widget-text {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
      color: #6b7280;
}