/* Minimal Custom CSS over Bootstrap 5 */
body {
    background-color: #f8f9fa;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #343a40;
}

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-panel {
    background: #ffffff;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    width: 100%;
}

.auth-panel.login {
    max-width: 400px;
}
.auth-panel.register {
    max-width: 500px;
}

/* SaaS Bold Dashboard Structure */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
    background-color: #f6f8fb; /* Match the gray offset */
}

.sidebar {
    width: 260px;
    background: #ffffff;
    border-right: 1px solid #eef0f3;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.sidebar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 2.5rem;
    text-decoration: none;
    display: flex;
    align-items: center;
}
.sidebar-brand .icon-logo { margin-right: 0.5rem; width: 32px; height: 32px; background: #6366f1; border-radius: 8px; display: inline-block; }

.sidebar-heading {
    font-size: 0.75rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

.sidebar .nav-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: #4b5563;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    transition: all 0.2s;
}

.sidebar .nav-item:hover, .sidebar .nav-item.active {
    background: #eef2ff; /* Light purple/blue */
    color: #4f46e5; /* Primary purple/blue */
}

.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.top-navbar {
    background: #ffffff;
    border-bottom: 1px solid #eef0f3;
    padding: 1rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.greeting-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.nav-circular-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
    border: none;
    cursor: pointer;
}

.user-dropdown {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    color: #374151;
}

.user-dropdown img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.main-content {
    flex: 1;
    padding: 2.5rem;
    overflow-y: auto;
}

.page-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.page-title-row h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.breadcrumbs {
    font-size: 0.85rem;
    color: #6b7280;
}

.metric-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    border: 1px solid #f3f4f6;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: #ffffff;
}

.icon-green { background: #22c55e; }
.icon-orange { background: #f97316; }
.icon-purple { background: #8b5cf6; }
.icon-blue { background: #0ea5e9; }

.metric-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.metric-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.metric-change {
    font-size: 0.8rem;
    font-weight: 600;
}
.change-up { color: #22c55e; }
.change-down { color: #ef4444; }

.overview-section { margin-top: 3rem; }
.overview-title { font-size: 1.6rem; font-weight: 700; color: #111827; margin-bottom: 0.25rem; }
.overview-subtitle { font-size: 0.95rem; color: #6b7280; margin-bottom: 2rem; }

.chart-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    border: 1px solid #f3f4f6;
    height: 250px;
    display: flex;
    flex-direction: column;
}
.chart-card h6 { font-size: 0.85rem; color: #6b7280; font-weight: 500; margin-bottom: 0.5rem; }
.chart-card .val { font-size: 1.5rem; font-weight: 700; color: #111827; }

.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    background: #ffffff;
    border: 1px solid #f3f4f6;
}

.page-header {
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.response-message {
    white-space: pre-wrap; /* For the multi-line pending message */
}

/* Split Layout for Auth Pages */
.split-page {
    min-height: 100vh;
    background-color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.split-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    overflow: hidden;
    max-width: 1000px;
    width: 100%;
    display: flex;
    flex-direction: row;
}
.brand-panel {
    background-color: #0d6efd; /* Fazil Blue */
    color: #ffffff;
    padding: 3.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.form-panel {
    padding: 3.5rem 4rem;
    flex: 1.1;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.brand-panel h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    line-height: 1.25;
}
.brand-panel p {
    font-size: 1.05rem;
    line-height: 1.6;
    opacity: 0.9;
    font-weight: 300;
}
.testimonial-box {
    margin-top: auto;
    background: rgba(255, 255, 255, 0.12);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    font-weight: 400;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.author-avatar {
    width: 44px;
    height: 44px;
    background: #ffffff;
    color: #0d6efd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}
.author-info h6 { margin: 0; font-weight: 600; font-size: 0.95rem; }
.author-info span { font-size: 0.75rem; opacity: 0.8; }

.auth-title { font-weight: 700; font-size: 1.5rem; margin-bottom: 0.5rem; color: #111827; }
.auth-subtitle { color: #6b7280; font-size: 0.95rem; margin-bottom: 2rem; }
.form-label { font-size: 0.875rem; font-weight: 600; color: #374151; margin-bottom: 0.35rem; }
.form-control { padding: 0.75rem 1rem; border-radius: 8px; border: 1px solid #d1d5db; box-shadow: none; transition: border-color 0.15s ease-in-out; }
.form-control:focus { border-color: #0d6efd; box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15); }
.btn-primary { padding: 0.75rem; border-radius: 8px; font-weight: 600; background-color: #0d6efd; border: none; }
.btn-primary:active { transform: scale(0.98); }

.sso-button { display: flex; align-items: center; justify-content: center; gap: 0.5rem; border: 1px solid #d1d5db; padding: 0.5rem 1rem; border-radius: 8px; color: #374151; font-weight: 500; font-size: 0.9rem; text-decoration: none; width: 100%; transition: background-color 0.2s; }
.sso-button:hover { background-color: #f3f4f6; color: #111827; }
.sso-icon { width: 18px; height: 18px; }

.divider { display: flex; align-items: center; text-align: center; color: #9ca3af; font-size: 0.8rem; margin: 1.5rem 0; text-transform: uppercase; }
.divider::before, .divider::after { content: ''; flex: 1; border-bottom: 1px solid #e5e7eb; }
.divider:not(:empty)::before { margin-right: 0.5rem; }
.divider:not(:empty)::after { margin-left: 0.5rem; }

@media (max-width: 991px) {
    .split-container { flex-direction: column; max-width: 500px; }
    .brand-panel { padding: 2rem; }
    .testimonial-box { margin-top: 2rem; }
    .form-panel { padding: 2.5rem 2rem; }
}
