:root {
    --saas-ink: #172033;
    --saas-muted: #667085;
    --saas-surface: #ffffff;
    --saas-canvas: #f6f8fc;
    --saas-line: #e8ecf3;
    --saas-primary: #5b5bd6;
    --saas-primary-dark: #4543b8;
    --saas-accent: #1fb59b;
    --saas-sidebar: #171b33;
    --saas-radius: 18px;
    --saas-shadow: 0 10px 30px rgba(24, 33, 66, .06);
}

body { background: var(--saas-canvas); color: var(--saas-ink); }
.content-page { background: var(--saas-canvas); }
.content-page > .content { padding-top: 12px; }

.page-title-box { min-height: 76px; margin: 0 0 1.25rem; padding: .35rem 0; }
.page-title-box .page-title { color: var(--saas-ink); font-size: 1.35rem; font-weight: 700; letter-spacing: -.025em; }
.breadcrumb-item, .breadcrumb-item a { color: var(--saas-muted); font-size: .78rem; text-decoration: none; }

.card, .card-box { border: 1px solid var(--saas-line); border-radius: var(--saas-radius); box-shadow: var(--saas-shadow); }
.card-box { background: var(--saas-surface); }
.card-header { background: transparent; border-bottom: 1px solid var(--saas-line); padding: 1.1rem 1.25rem; }
.card-body { padding: 1.25rem; }

.btn { border-radius: 10px; font-weight: 600; letter-spacing: -.01em; }
.btn-primary { background: var(--saas-primary); border-color: var(--saas-primary); box-shadow: 0 5px 12px rgba(91, 91, 214, .2); }
.btn-primary:hover, .btn-primary:focus { background: var(--saas-primary-dark); border-color: var(--saas-primary-dark); }

.form-control, .form-select { border-color: #dce2ed; border-radius: 10px; min-height: 42px; }
.form-control:focus, .form-select:focus { border-color: rgba(91, 91, 214, .65); box-shadow: 0 0 0 .2rem rgba(91, 91, 214, .12); }

.table > :not(caption) > * > * { border-bottom-color: var(--saas-line); padding: .8rem .9rem; }
.table thead th { background: #f9faff; color: #475467; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

.navbar-custom { background: rgba(255, 255, 255, .93) !important; border-bottom: 1px solid var(--saas-line); box-shadow: 0 1px 0 rgba(16, 24, 40, .02); backdrop-filter: blur(14px); }
.saas-mobile-brand img { max-height: 27px; }
.saas-workspace { align-items: center; gap: .7rem; margin-left: .8rem; }
.saas-workspace__dot { width: 9px; height: 9px; border-radius: 999px; background: var(--saas-accent); box-shadow: 0 0 0 4px rgba(31, 181, 155, .12); }
.saas-workspace__label, .saas-workspace strong { display: block; line-height: 1.15; }
.saas-workspace__label { color: var(--saas-muted); font-size: .67rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.saas-workspace strong { color: var(--saas-ink); font-size: .85rem; font-weight: 700; }

.saas-icon-button { align-items: center; border-radius: 10px; display: inline-flex; height: 38px; justify-content: center; width: 38px; }
.saas-icon-button:hover { background: #f0f2fb; }
.saas-user-menu { align-items: center; border: 1px solid var(--saas-line); border-radius: 12px; display: flex !important; gap: .6rem; min-height: 42px; padding: .25rem .55rem !important; }
.saas-user-avatar { align-items: center; background: linear-gradient(145deg, var(--saas-primary), #7a76e8); color: white; display: inline-flex; font-size: .78rem; font-weight: 700; height: 29px; justify-content: center; width: 29px; }
.saas-user-copy { line-height: 1.15; }
.saas-user-copy strong { color: var(--saas-ink); font-size: .77rem; }
.saas-user-copy small { color: var(--saas-muted); font-size: .68rem; }
.profile-dropdown { border: 1px solid var(--saas-line); border-radius: 14px; box-shadow: 0 15px 40px rgba(23, 32, 51, .12); overflow: hidden; }
.saas-profile-header { background: #f8f9ff; padding: .85rem 1rem; }
.saas-profile-header span { color: var(--saas-muted); display: block; font-size: .68rem; margin-bottom: .15rem; text-transform: uppercase; }
.saas-logout-icon { align-items: center; background: #f0f1ff; border-radius: 14px; color: var(--saas-primary); display: flex; font-size: 1.4rem; height: 48px; justify-content: center; width: 48px; }

.saas-sidebar { background: linear-gradient(180deg, var(--saas-sidebar) 0%, #101326 100%) !important; border-right: 0; }
.saas-sidebar-brand { border-bottom: 1px solid rgba(255, 255, 255, .08); }
.saas-sidebar .side-nav { padding: .3rem .75rem 1.25rem; }
.saas-sidebar .side-nav-title { color: #9098bc; font-size: .64rem; font-weight: 700; letter-spacing: .09em; margin: 1.15rem .55rem .4rem; padding: 0; text-transform: uppercase; }
.saas-sidebar .side-nav-link { border-radius: 10px; color: #c1c7df; margin: .12rem 0; min-height: 42px; transition: background .18s ease, color .18s ease, transform .18s ease; }
.saas-sidebar .side-nav-link i { color: #a9b0d0; }
.saas-sidebar .side-nav-link:hover { background: rgba(255, 255, 255, .08); color: #fff; transform: translateX(2px); }
.saas-sidebar .side-nav-link:hover i, .saas-sidebar .side-nav-link.active i { color: #fff; }
.saas-sidebar .side-nav-link.active { background: linear-gradient(135deg, var(--saas-primary), #7774df); box-shadow: 0 8px 18px rgba(14, 15, 49, .3); color: #fff; font-weight: 700; }
.saas-sidebar-workspace { border-bottom: 1px solid rgba(255, 255, 255, .08); padding: 1rem 1.25rem .9rem; }
.saas-sidebar-workspace span, .saas-sidebar-workspace strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.saas-sidebar-workspace span { color: #8f97bb; font-size: .66rem; font-weight: 600; letter-spacing: .06em; margin-bottom: .22rem; text-transform: uppercase; }
.saas-sidebar-workspace strong { color: #fff; font-size: .84rem; }

.saas-hero { background: radial-gradient(circle at 80% 0%, rgba(134, 127, 250, .38), transparent 32%), linear-gradient(135deg, #262961 0%, #4747b5 100%); border-radius: 22px; box-shadow: 0 15px 36px rgba(50, 48, 145, .22); color: #fff; overflow: hidden; padding: clamp(1.5rem, 3.5vw, 2.5rem); position: relative; }
.saas-hero::after { border: 1px solid rgba(255, 255, 255, .14); border-radius: 50%; content: ""; height: 240px; position: absolute; right: -90px; top: -110px; width: 240px; }
.saas-hero__eyebrow { align-items: center; color: rgba(255, 255, 255, .72); display: flex; font-size: .72rem; font-weight: 700; gap: .4rem; letter-spacing: .06em; text-transform: uppercase; }
.saas-hero__eyebrow i { color: #86f1db; }
.saas-hero h1 { color: #fff; font-size: clamp(1.65rem, 3vw, 2.25rem); font-weight: 700; letter-spacing: -.04em; margin: .5rem 0; }
.saas-hero p { color: rgba(255, 255, 255, .78); font-size: .95rem; margin: 0; max-width: 600px; }
.saas-hero .btn-light { border: 0; color: var(--saas-primary-dark); font-weight: 700; position: relative; z-index: 1; }
.saas-section-heading { align-items: center; display: flex; justify-content: space-between; margin: 1.8rem 0 .85rem; }
.saas-section-heading h2 { color: var(--saas-ink); font-size: 1rem; font-weight: 700; letter-spacing: -.02em; margin: 0; }
.saas-section-heading span { color: var(--saas-muted); font-size: .8rem; }
.saas-action-card { align-items: center; background: var(--saas-surface); border: 1px solid var(--saas-line); border-radius: 16px; color: inherit; display: flex; gap: .85rem; height: 100%; padding: 1rem; text-decoration: none; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.saas-action-card:hover { border-color: rgba(91, 91, 214, .35); box-shadow: 0 10px 24px rgba(31, 39, 82, .08); color: inherit; transform: translateY(-3px); }
.saas-action-card__icon { align-items: center; background: #edeeff; border-radius: 12px; color: var(--saas-primary); display: inline-flex; flex: 0 0 42px; font-size: 1.2rem; height: 42px; justify-content: center; }
.saas-action-card strong, .saas-action-card small { display: block; }
.saas-action-card strong { color: var(--saas-ink); font-size: .86rem; margin-bottom: .15rem; }
.saas-action-card small { color: var(--saas-muted); font-size: .73rem; }
.saas-info-card { background: var(--saas-surface); border: 1px solid var(--saas-line); border-radius: 16px; height: 100%; padding: 1.15rem; }
.saas-info-card__icon { align-items: center; background: #e6fbf5; border-radius: 10px; color: #0a9f84; display: inline-flex; height: 34px; justify-content: center; margin-bottom: .7rem; width: 34px; }
.saas-info-card h3 { color: var(--saas-ink); font-size: .86rem; font-weight: 700; margin: 0 0 .25rem; }
.saas-info-card p { color: var(--saas-muted); font-size: .76rem; margin: 0; }
.footer { background: transparent; border-top: 1px solid var(--saas-line); color: var(--saas-muted); font-size: .75rem; }

.saas-auth-page {
    background: radial-gradient(circle at 15% 15%, rgba(114, 111, 232, .18), transparent 28%), radial-gradient(circle at 85% 85%, rgba(31, 181, 155, .13), transparent 25%), var(--saas-canvas);
}
.saas-auth-card { border: 1px solid rgba(225, 229, 241, .9); box-shadow: 0 24px 60px rgba(28, 37, 77, .12); overflow: hidden; }
.saas-auth-card__header { background: linear-gradient(135deg, #24275b, #4a48b8); border: 0; padding: 1.6rem; }
.saas-auth-card__header img { filter: brightness(0) invert(1); max-width: 165px; object-fit: contain; }
.saas-auth-card__intro { max-width: 340px; }
.saas-auth-card__eyebrow { color: var(--saas-primary); display: inline-flex; font-size: .7rem; font-weight: 700; gap: .35rem; letter-spacing: .04em; margin-bottom: .55rem; text-transform: uppercase; }
.saas-auth-card__intro h1 { color: var(--saas-ink); font-size: 1.5rem; font-weight: 700; letter-spacing: -.035em; margin-bottom: .35rem; }
.saas-auth-card__intro p { color: var(--saas-muted); font-size: .83rem; margin-bottom: 1.8rem; }

@media (max-width: 767.98px) {
    .content-page > .content { padding-top: 0; }
    .page-title-box { min-height: auto; padding-top: .8rem; }
    .saas-user-menu { border: 0; padding: .25rem !important; }
    .saas-hero { border-radius: 16px; }
}
