:root {
    --dc-blue: #0072bc;
    --dc-blue-dark: #005a94;
    --dc-orange: #f58220;
    --dc-yellow: #ffc20e;
    --dc-purple: #6f2c8f;

    --dc-bg: #f7fbff;
    --dc-card: #ffffff;
    --dc-border: #e5edf5;

    --dc-text: #1f2a44;
    --dc-muted: #6f7d95;

    --shadow-soft: 0 14px 40px rgba(31, 42, 68, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top right, rgba(245, 130, 32, 0.13), transparent 28%),
        radial-gradient(circle at top left, rgba(0, 114, 188, 0.12), transparent 25%),
        var(--dc-bg);
    color: var(--dc-text);
    font-family: "Segoe UI", Arial, sans-serif;
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */

.app-sidebar {
    width: 280px;
    background: rgba(255, 255, 255, 0.94);
    border-right: 1px solid var(--dc-border);
    padding: 26px 22px;
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0 auto 0 0;
    box-shadow: 8px 0 35px rgba(31, 42, 68, 0.04);
}

.brand-box {
    margin-bottom: 34px;
}

.brand-box img {
    width: 210px;
    max-width: 100%;
    display: block;
}

.side-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.side-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border-radius: 16px;
    text-decoration: none;
    color: var(--dc-text);
    font-weight: 700;
    transition: 0.2s ease;
}

.side-link:hover {
    background: #eaf6ff;
    color: var(--dc-blue);
    transform: translateX(3px);
}

.side-link.active {
    background: linear-gradient(90deg, rgba(111, 44, 143, 0.13), rgba(0, 114, 188, 0.10));
    color: var(--dc-purple);
}

.sidebar-bottom {
    margin-top: auto;
    padding-top: 24px;
    color: var(--dc-purple);
    font-weight: 800;
    font-size: 14px;
}

/* Main */

.app-main {
    margin-left: 280px;
    width: calc(100% - 280px);
    min-height: 100vh;
}

.app-topbar {
    min-height: 118px;
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid var(--dc-border);
    padding: 28px 38px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(12px);
}

.eyebrow {
    margin: 0;
    color: var(--dc-purple);
    font-size: 14px;
    font-weight: 800;
}

.app-topbar h2 {
    margin: 5px 0 0;
    font-size: 28px;
    font-weight: 850;
}

.logout-pill {
    text-decoration: none;
    background: linear-gradient(135deg, var(--dc-purple), var(--dc-blue));
    color: white;
    padding: 11px 22px;
    border-radius: 999px;
    font-weight: 800;
    box-shadow: 0 10px 22px rgba(111, 44, 143, 0.22);
}

.logout-pill:hover {
    color: white;
    opacity: 0.9;
}

.page-content {
    padding: 34px 38px;
}

/* Bootstrap overrides */

.card {
    border: 1px solid var(--dc-border);
    border-radius: 22px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.card-body {
    padding: 24px;
}

.btn {
    border-radius: 13px;
    font-weight: 800;
}

.btn-primary {
    background: var(--dc-blue);
    border-color: var(--dc-blue);
}

.btn-primary:hover {
    background: var(--dc-blue-dark);
    border-color: var(--dc-blue-dark);
}

.btn-warning {
    background: var(--dc-orange);
    border-color: var(--dc-orange);
    color: white;
}

.btn-warning:hover {
    color: white;
    opacity: 0.9;
}

.form-control,
.form-select {
    border-radius: 14px;
    border: 1px solid var(--dc-border);
    padding: 11px 14px;
}

.table {
    margin-bottom: 0;
    vertical-align: middle;
}

.table thead th {
    background: #f7faff;
    color: var(--dc-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border-bottom: 1px solid var(--dc-border);
}

.table tbody td {
    padding: 15px 12px;
}

.table a {
    color: var(--dc-purple);
    font-weight: 800;
    text-decoration: none;
}

.badge {
    border-radius: 999px;
    padding: 7px 12px;
    font-weight: 800;
}

/* Stat cards */

.row .card {
    min-height: 135px;
}

.row .card h6 {
    color: var(--dc-muted);
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.row .card h2 {
    color: var(--dc-blue);
    font-size: 38px;
    font-weight: 900;
}

/* Mobile */

@media (max-width: 900px) {
    .app-shell {
        flex-direction: column;
    }

    .app-sidebar {
        position: relative;
        width: 100%;
        inset: auto;
    }

    .app-main {
        margin-left: 0;
        width: 100%;
    }

    .app-topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .page-content {
        padding: 22px;
    }
}
.dashboard-hero {
    background: linear-gradient(135deg, rgba(0, 114, 188, 0.12), rgba(111, 44, 143, 0.10), rgba(245, 130, 32, 0.10));
    border: 1px solid var(--dc-border);
    border-radius: 26px;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-soft);
}

.dashboard-hero h1 {
    font-weight: 900;
    margin: 0;
}

.metric-card {
    background: white;
    border: 1px solid var(--dc-border);
    border-radius: 24px;
    padding: 22px;
    box-shadow: var(--shadow-soft);
    min-height: 150px;
}

.metric-card p {
    margin: 12px 0 4px;
    color: var(--dc-muted);
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
}

.metric-card h2 {
    font-weight: 900;
    font-size: 36px;
    color: var(--dc-text);
}

.metric-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.metric-icon.blue {
    background: rgba(0, 114, 188, 0.12);
}

.metric-icon.orange {
    background: rgba(245, 130, 32, 0.16);
}

.metric-icon.green {
    background: rgba(25, 135, 84, 0.12);
}

.metric-icon.red {
    background: rgba(220, 53, 69, 0.12);
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.quick-action-card {
    background: white;
    border: 1px solid var(--dc-border);
    border-radius: 22px;
    padding: 20px;
    text-decoration: none;
    color: var(--dc-text);
    display: flex;
    gap: 15px;
    align-items: center;
    box-shadow: var(--shadow-soft);
    transition: 0.2s ease;
}

.quick-action-card:hover {
    transform: translateY(-3px);
    color: var(--dc-purple);
}

.quick-action-card span {
    font-size: 28px;
}

.quick-action-card h5 {
    margin: 0;
    font-weight: 900;
}

.quick-action-card p {
    margin: 3px 0 0;
    color: var(--dc-muted);
    font-size: 14px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    margin-bottom: 18px;
}

.section-heading h3 {
    font-weight: 900;
    margin: 0;
}

.section-heading p {
    color: var(--dc-muted);
    margin: 4px 0 0;
}

.small-link {
    color: var(--dc-purple);
    font-weight: 800;
    text-decoration: none;
}

.task-table tbody tr {
    transition: 0.15s ease;
}

.task-table tbody tr:hover {
    background: #f7fbff;
}

.task-link {
    font-weight: 900;
    color: var(--dc-purple);
    text-decoration: none;
}

.task-subtitle {
    font-size: 13px;
    color: var(--dc-muted);
    margin-top: 3px;
}

.status-pill,
.priority-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
}

.status-pill.completed {
    background: rgba(25, 135, 84, 0.12);
    color: #198754;
}

.status-pill.awaiting {
    background: rgba(111, 44, 143, 0.14);
    color: var(--dc-purple);
}

.status-pill.onhold {
    background: rgba(108, 117, 125, 0.15);
    color: #6c757d;
}

.status-pill.progress {
    background: rgba(245, 130, 32, 0.16);
    color: #b85c00;
}

.status-pill.started {
    background: rgba(0, 114, 188, 0.12);
    color: var(--dc-blue);
}

.priority-pill.high {
    background: rgba(220, 53, 69, 0.13);
    color: #dc3545;
}

.priority-pill.medium {
    background: rgba(245, 130, 32, 0.16);
    color: #b85c00;
}

.priority-pill.low {
    background: rgba(25, 135, 84, 0.12);
    color: #198754;
}

@media (max-width: 1000px) {
    .dashboard-hero {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }
}
.side-link i{
    font-size:20px;
    width:26px;
    text-align:center;
    color:var(--dc-blue);
    transition:.2s;
}

.side-link:hover i{
    color:var(--dc-purple);
    transform:scale(1.1);
}
/* ==========================================
   Dawn Care Component Library
========================================== */

.dc-card{
    background:#fff;
    border-radius:22px;
    border:1px solid var(--dc-border);
    box-shadow:var(--shadow-soft);
    padding:24px;
    transition:.25s ease;
}

.dc-card:hover{
    transform:translateY(-3px);
    box-shadow:0 20px 45px rgba(31,42,68,.10);
}

.dc-btn-primary{
    background:linear-gradient(135deg,var(--dc-blue),var(--dc-purple));
    color:#fff;
    border:none;
    border-radius:14px;
    padding:12px 22px;
    font-weight:700;
    transition:.2s;
    text-decoration:none;
    display:inline-flex;
    align-items:center;
    justify-content:center;
}

.dc-btn-primary:hover{
    color:#fff;
    transform:translateY(-2px);
    box-shadow:0 10px 25px rgba(0,114,188,.25);
}

.dc-btn-secondary{
    background:#fff;
    color:var(--dc-blue);
    border:1px solid var(--dc-border);
    border-radius:14px;
    padding:12px 22px;
    font-weight:700;
    text-decoration:none;
    transition:.2s;
}

.dc-btn-secondary:hover{
    background:#eef8ff;
}

.dc-section-title{
    font-size:28px;
    font-weight:900;
    margin-bottom:5px;
}

.dc-section-subtitle{
    color:var(--dc-muted);
    margin-bottom:25px;
}

.dc-divider{
    height:1px;
    background:var(--dc-border);
    margin:30px 0;
}
/* ==========================================
   Task Form Styling
========================================== */

.form-page-header {
    background: linear-gradient(
        135deg,
        rgba(0, 114, 188, 0.12),
        rgba(111, 44, 143, 0.10),
        rgba(245, 130, 32, 0.10)
    );
    border: 1px solid var(--dc-border);
    border-radius: 26px;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-soft);
}

.form-page-header h1 {
    font-weight: 900;
    margin: 0;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-field.full-width {
    grid-column: span 2;
}

.form-field label {
    font-weight: 800;
    color: var(--dc-text);
    margin-bottom: 8px;
}

.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    border-radius: 14px;
    border: 1px solid var(--dc-border);
    padding: 12px 14px;
    background: white;
}

.form-field textarea {
    min-height: 140px;
}

.checkbox-panel {
    background: #f8fbff;
    border: 1px solid var(--dc-border);
    border-radius: 18px;
    padding: 18px;
}

.checkbox-panel ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.checkbox-panel li {
    margin-bottom: 10px;
    font-weight: 600;
}

.checkbox-panel input {
    margin-right: 8px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 14px;
    margin-bottom: 40px;
}

@media (max-width: 900px) {
    .form-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-field.full-width {
        grid-column: span 1;
    }

    .form-actions {
        flex-direction: column;
    }
}

.comment-card {
    background: #f8fbff;
    border: 1px solid var(--dc-border);
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 14px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: var(--dc-muted);
}

.comment-card p {
    margin: 0;
    color: var(--dc-text);
}

/* ==========================================
   Login Page
========================================== */

.login-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top right, rgba(245, 130, 32, 0.16), transparent 28%),
        radial-gradient(circle at top left, rgba(0, 114, 188, 0.16), transparent 26%),
        linear-gradient(135deg, #f7fbff, #ffffff);
}

.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
}

.login-brand-panel {
    padding: 70px;
    background:
        linear-gradient(135deg, rgba(0, 114, 188, 0.95), rgba(111, 44, 143, 0.88)),
        radial-gradient(circle at bottom left, rgba(245, 130, 32, 0.35), transparent 35%);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-logo {
    width: 240px;
    background: white;
    border-radius: 24px;
    padding: 18px;
    margin-bottom: 40px;
    box-shadow: 0 18px 45px rgba(31, 42, 68, 0.2);
}

.login-brand-panel h1 {
    font-size: 46px;
    font-weight: 900;
    margin-bottom: 18px;
}

.login-brand-panel p {
    font-size: 19px;
    line-height: 1.7;
    max-width: 600px;
    opacity: 0.95;
}

.login-card {
    align-self: center;
    justify-self: center;
    width: min(460px, 90%);
    background: white;
    border: 1px solid var(--dc-border);
    border-radius: 28px;
    padding: 38px;
    box-shadow: var(--shadow-soft);
}

.login-card-header h2 {
    font-weight: 900;
    margin-bottom: 8px;
}

.login-card input {
    width: 100%;
    border-radius: 14px;
    border: 1px solid var(--dc-border);
    padding: 13px 15px;
}

@media (max-width: 900px) {
    .login-page {
        grid-template-columns: 1fr;
    }

    .login-brand-panel {
        padding: 35px;
    }

    .login-brand-panel h1 {
        font-size: 34px;
    }

    .login-card {
        margin: 30px 0;
    }
}