:root {
    --bs-primary: #4f46e5;
    --bs-primary-rgb: 79, 70, 229;
    --brand-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

body {
    background-color: #f8f9fb;
}

.btn-primary {
    background-color: #4f46e5;
    border-color: #4f46e5;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #4338ca;
    border-color: #4338ca;
}

.btn-outline-primary {
    color: #4f46e5;
    border-color: #4f46e5;
}

.btn-outline-primary:hover {
    background-color: #4f46e5;
    border-color: #4f46e5;
}

a {
    color: #4f46e5;
    text-decoration: none;
}

a:hover {
    color: #4338ca;
}

.text-primary {
    color: #4f46e5 !important;
}

.bg-primary {
    background-color: #4f46e5 !important;
}

.brand-gradient {
    background: var(--brand-gradient);
}

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: var(--brand-gradient);
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 20px 45px rgba(17, 24, 39, 0.15);
    padding: 2.25rem;
}

.auth-logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: #4f46e5;
}

.card {
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* Blog card */
.blog-card {
    border-radius: 0.75rem;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(17, 24, 39, 0.12);
}

.blog-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.blog-card-link {
    color: inherit;
    display: block;
    height: 100%;
}

.blog-card-link:hover {
    color: inherit;
}

.avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-lg {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
}

/* Blog content typography - preserves paragraph formatting from editor */
.blog-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #1f2937;
}

.blog-content p {
    margin-bottom: 1.25rem;
    white-space: pre-wrap;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

.blog-content blockquote {
    border-left: 4px solid #4f46e5;
    padding-left: 1rem;
    color: #4b5563;
    font-style: italic;
}

.blog-content pre {
    background: #1f2937;
    color: #f9fafb;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
}

.blog-content table {
    width: 100%;
    border-collapse: collapse;
}

.blog-content table td,
.blog-content table th {
    border: 1px solid #e5e7eb;
    padding: 0.5rem 0.75rem;
}

.sidebar .nav-link {
    color: #374151;
    border-radius: 0.5rem;
    padding: 0.55rem 0.9rem;
}

.sidebar .nav-link.active {
    background-color: #eef2ff;
    color: #4f46e5;
    font-weight: 600;
}

.sidebar .nav-link:hover {
    background-color: #f3f4f6;
}

.stat-card {
    border-radius: 0.75rem;
}

.status-badge {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
}
