@import url("https://cdn.jsdelivr.net/npm/@fontsource/outfit@5.0.16/index.min.css");
@import url("https://cdn.jsdelivr.net/npm/@fontsource/space-grotesk@5.0.16/index.min.css");

/* =============================================================================
   DocMe — Clinical Platform Styles
   Province: Nova Scotia, Canada
   ============================================================================= */

/* Custom properties */
:root {
    --pharmclinix-navy:     #1a3a5c;
    --pharmclinix-blue:     #1d6fa4;
    --pharmclinix-teal:     #0d8a7f;
    --sidebar-width:        240px;
    --sidebar-bg:           #1e2d3d;
    --sidebar-text:         #b8c7d9;
    --sidebar-active:       #ffffff;
    --sidebar-hover-bg:     rgba(255,255,255,0.07);
    --topnav-bg:            #1a3a5c;
}

/* Body */
.docme-body {
    background-color: #f4f6f8;
    font-family: "Outfit", "Segoe UI", sans-serif;
    color: #2c3e50;
}

/* ============================================================
   Top navbar
   ============================================================ */
.bg-primary-dark {
    background-color: var(--topnav-bg) !important;
}

/* ============================================================
   Sidebar
   ============================================================ */
.sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    max-width: var(--sidebar-width);
    background-color: var(--sidebar-bg);
    min-height: 100%;
    position: sticky;
    top: 56px;
    height: calc(100vh - 56px);
    overflow-y: auto;
}

.sidebar .nav-link {
    color: var(--sidebar-text);
    font-size: 0.875rem;
    padding: 0.5rem 0.85rem;
    border-radius: 6px;
    margin-bottom: 2px;
    transition: background-color 0.15s ease, color 0.15s ease;
    display: flex;
    align-items: center;
}

.sidebar .nav-link:hover {
    background-color: var(--sidebar-hover-bg);
    color: var(--sidebar-active);
}

.sidebar .nav-link.active {
    background-color: var(--pharmclinix-blue);
    color: #ffffff;
    font-weight: 600;
}

.nav-section-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #4a6080;
    padding: 1rem 0.85rem 0.25rem;
    list-style: none;
}

/* ============================================================
   Dashboard stat cards
   ============================================================ */
.stat-card {
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    border-radius: 10px;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1) !important;
}

.stat-icon {
    font-size: 1.75rem;
    line-height: 1;
}

.stat-number {
    font-size: 1.6rem;
    line-height: 1.1;
    color: #1a3a5c;
}

.stat-label {
    margin-top: 2px;
}

/* ============================================================
   Service placeholder cards
   ============================================================ */
.service-card-placeholder {
    border-radius: 8px;
    transition: box-shadow 0.15s ease;
}

.service-card-placeholder:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
}

.text-primary-custom {
    color: var(--pharmclinix-blue);
}

/* ============================================================
   Badges / subtle colours (Bootstrap 5.3 adds these natively,
   but we include fallbacks for any missing ones)
   ============================================================ */
.bg-primary-light {
    background-color: #ddeaf6;
}

.text-primary {
    color: var(--pharmclinix-blue) !important;
}

/* ============================================================
   Cards general
   ============================================================ */
.card {
    border-radius: 10px;
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
}

/* ============================================================
   Tables
   ============================================================ */
.table > :not(caption) > * > * {
    padding: 0.65rem 0.85rem;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn-primary {
    background-color: var(--pharmclinix-blue);
    border-color: var(--pharmclinix-blue);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--pharmclinix-navy);
    border-color: var(--pharmclinix-navy);
}

/* ============================================================
   Login page
   ============================================================ */
.docme-body .min-vh-100 {
    background:
        radial-gradient(circle at 15% 20%, #fff7b3 0%, transparent 35%),
        radial-gradient(circle at 80% 18%, #8fe7ff 0%, transparent 40%),
        radial-gradient(circle at 85% 85%, #ffd7a8 0%, transparent 35%),
        linear-gradient(135deg, #13c3d6 0%, #1d6fa4 42%, #2450a6 100%);
    position: relative;
    overflow: hidden;
}

.login-shell {
    max-width: 460px;
    position: relative;
}

.login-glow {
    position: absolute;
    z-index: 0;
    border-radius: 999px;
    filter: blur(10px);
}

.login-glow-a {
    width: 160px;
    height: 160px;
    background: rgba(255, 227, 115, 0.55);
    top: -30px;
    left: -26px;
}

.login-glow-b {
    width: 140px;
    height: 140px;
    background: rgba(127, 235, 255, 0.58);
    right: -30px;
    bottom: -24px;
}

.login-card {
    width: 100%;
    max-width: 440px;
    border-radius: 24px;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 20px 60px rgba(7, 49, 83, 0.35);
    backdrop-filter: blur(4px);
    animation: loginFadeUp 550ms ease-out;
}

.login-badge {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-size: 1.8rem;
    color: #13415f;
    background: linear-gradient(145deg, #fff7c4 0%, #9befff 100%);
    box-shadow: 0 10px 22px rgba(40, 113, 152, 0.2);
}

.login-title {
    font-family: "Space Grotesk", "Outfit", sans-serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: #0e3150;
    letter-spacing: 0.01em;
}

.login-subtitle {
    color: #4b6783;
    font-size: 0.92rem;
}

.login-input-group .input-group-text,
.login-input-group .form-control {
    background: #ffffff;
    border-color: #d6e3ef;
}

.login-input-group .input-group-text {
    color: #1b5f8f;
}

.login-input-group .form-control:focus {
    border-color: #5ec6ea;
    box-shadow: 0 0 0 0.2rem rgba(94, 198, 234, 0.2);
}

.btn-login {
    color: #08324e;
    border: none;
    background: linear-gradient(90deg, #ffd95e 0%, #9befff 50%, #7ce0ff 100%);
    box-shadow: 0 8px 18px rgba(23, 106, 150, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-login:hover,
.btn-login:focus {
    color: #082f47;
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(20, 97, 137, 0.28);
}

.login-note {
    border-top: 1px solid #e5eef6;
    padding-top: 1rem;
    color: #5e7388;
}

@keyframes loginFadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   Breadcrumbs
   ============================================================ */
.breadcrumb {
    font-size: 0.85rem;
}

/* ============================================================
   Responsive — collapse sidebar on small screens
   ============================================================ */
@media (max-width: 768px) {
    .sidebar {
        display: none !important;
    }
}
