@import url('https://fonts.googleapis.com/css2?family=Sora:wght@100..800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Sora", sans-serif;
    background: hsl(200 30% 92%);
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul {
    margin: 0;
}

ul {
    padding: 0;
}

a {
    display: inline-block;
    text-decoration: none;
}

li {
    list-style: none;
}

/* --------------------- parent dashboard header -------------------- */

.parent-dashboard-header {
    position: relative;
    background: hsl(15 80% 55%);
    padding: 0 20px;
}

.parent-header-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-logo {
    width: 80px;
}

.header-logo img {
    width: 100%;
    object-fit: cover;
}

.parent-dashborad-wrap .parent-menus {
    display: flex;
    align-items: center;
    gap: 20px;
}

.parent-header-heading {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    text-transform: capitalize;
}

.parent-menus a {
    color: hsl(40 30% 82%);
    font-size: 14px;
    font-weight: 500;
    position: relative;
}

.parent-menus a::before {
    content: "";
    background: hsl(40 30% 82%);
    width: 2px;
    height: 15px;
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
}

.parent-menus li:last-child a::before {
    display: none;
}

/* ------------- parent dashboard main ------------------------- */

.parent-dashboard-main {
    position: relative;
    padding: 30px 0;
}

ul.parent-menus li a {
    color: white;
}

.parent-dashboard-wlc-msg {
    background: hsl(45deg 100% 60% / 30%);
    border: 1px solid hsl(45deg 100% 50% / 30%);
    border-radius: 100px;
    padding: 18px;
    text-align: center;
    margin-bottom: 24px;
}

.parent-dashboard-wlc-msg h3 {
    color: hsl(20 10% 15%);
    font-size: 18px;
    font-weight: 700;
}

.adding-childs-main {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

.add-child-btn {
    color: hsl(15 80% 55%);
    font-weight: 700;
    border: none;
    background: transparent;
    position: relative;
    margin-right: 15px;
    padding: 17px 0 17px 31px;
}

.add-child-btn::before {
    content: "";
    background: hsl(20 10% 40%);
    width: 2px;
    height: 15px;
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
}

.child-dropdown {
    min-width: 220px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid hsl(40 30% 82%);
    background: #fff;
    font-size: 14px;
}
select#childSelector {
    width: 50%;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid hsl(20 10% 40%);
    font-size: 14px;
    font-weight: 500;
    line-height: normal;
}
select#childSelector option {
    font-size: 14px;
    font-weight: 500;
    line-height: normal;
}

.parent-dashboard-task {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 24px;
    gap: 16px;
}

.parent-dashboard-singl-task {
    background: hsl(200deg 60% 72% / 40%);
    border: 1px solid hsl(200 60% 72%);
    padding: 30px;
    border-radius: 12px;
}

.parent-dashboard-singl-task h4 {
    color: #000;
    font-size: 18px;
    line-height: normal;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.parent-dashboard-singl-task h4 svg {
    color: hsl(140 60% 45%);
}

.week-theme-msg {
    color: hsl(15 80% 55%);
    font-size: 16px;
    font-weight: 500;
    line-height: normal;
}

.parent-dashboard-singl-task p {
    color: hsl(20 10% 40%);
    font-size: 14px;
    margin-top: 15px;
    font-weight: 400;
}

.single-task-points {
    color: #2a2522;
    font-size: 15px;
    font-weight: 500;
    position: relative;
}

.single-task-points::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2300b894' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.5'/%3E%3Cpath d='m9 11 3 3L22 4'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
}

.privacy-guidlines {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.privacy-guidline-left {
    grid-column: span 2 / span 2;
    background: hsl(40 40% 95%);
    border: 1px solid hsl(40 30% 82%);
    border-radius: 12px;
    padding: 20px;
}

.privacy-guidline-left h4 {
    color: #000;
    font-size: 18px;
    line-height: normal;
    font-weight: 600;
    margin-bottom: 15px;
}

.privacy-guidline-left ul {
    padding-left: 20px;
}

.privacy-guidline-left ul li {
    font-size: 15px;
    list-style: disc;
    margin-bottom: 6px;
}

.privacy-guidline-left h6 {
    color: hsl(15 80% 55%);
    font-size: 16px;
    font-weight: 600;
    line-height: normal;
    margin: 12px 0;
}

.privacy-guidline-left p {
    color: hsl(20 10% 40%);
    font-size: 12px;
    font-style: italic;
    line-height: normal;
    font-weight: 500;
}

.privacy-guidline-right {
    background: hsl(40 40% 95%);
    border: 1px solid hsl(40 30% 82%);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.privacy-guidline-right-img {
    width: 100px;
    margin: auto;
}

.privacy-guidline-right-img img {
    object-fit: cover;
    width: 100%;
}

.privacy-guidline-right h5 {
    color: hsl(20 10% 15%);
    font-size: 14px;
    font-style: italic;
    text-align: center;
    font-weight: 500;
    margin: 10px 0;
}

.privacy-guidline-right p {
    color: hsl(20 10% 40%);
    font-size: 12px;
    font-weight: 500;
    line-height: normal;
}

@media (max-width: 768px) {
    .parent-header-wrap {
        flex-direction: column;
        align-items: flex-start;
    }

    .parent-dashboard-task {
        grid-template-columns: 1fr;
    }

    .privacy-guidlines {
        grid-template-columns: 1fr;
    }

    .privacy-guidline-left {
        grid-column: span 1 / span 1;
    }
}

.po90-no-child {
    color: #999;
    font-style: italic;
    font-size: 0.9em;
}

/* Journal Requests Tab */
.po90-request-form {
    margin-bottom: 24px;
}

.po90-request-form h4 {
    margin-bottom: 12px;
}

.po90-request-form-fields {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.po90-request-day-input {
    width: 100px;
}

.po90-request-status-msg {
    font-size: 0.9em;
    color: #555;
}

.po90-no-requests {
    color: #888;
    font-style: italic;
}

.po90-journal-entry-text {
    white-space: pre-wrap;
    line-height: 1.8;
    font-size: 1em;
}

.po90-section-header h3 {
    margin-bottom: 4px;
}

.po90-section-header p {
    margin-top: 0;
}

/* Table action buttons — ensure min readable size */
.po90-children-table .po90-btn-sm {
    min-width: 110px;
    padding: 6px 12px;
    white-space: nowrap;
    font-size: 0.875em;
    text-align: center;
}

/* Parent journal week navigation */
.po90-parent-journal .member-dashboard-dates {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.po90-parent-journal .date-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border-radius: 6px;
    background: #f0f4f8;
    color: #1E3A5F;
    font-weight: 600;
    font-size: 0.9em;
    text-decoration: none;
    border: 1px solid #d0d9e4;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.po90-parent-journal .date-btn:hover {
    background: #1E3A5F;
    color: #fff;
}

.po90-parent-journal .date-btn.active-date {
    background: #E85E30;
    color: #fff;
    border-color: #E85E30;
}

.po90-parent-journal .date-btn.completed-date {
    background: #28a745;
    color: #fff;
    border-color: #28a745;
}

.po90-parent-journal .date-btn.locked-btn {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.po90-parent-journal .week-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 36px;
    padding: 0 8px;
    border-radius: 6px;
    background: #f0f4f8;
    color: #1E3A5F;
    font-weight: bold;
    font-size: 1em;
    text-decoration: none;
    border: 1px solid #d0d9e4;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.po90-parent-journal .week-arrow:hover {
    background: #1E3A5F;
    color: #fff;
}

/* Save status text */
.po90-parent-journal #pjSaveStatus {
    font-size: 0.85em;
    color: #555;
    font-weight: 500;
}

/* Privacy note */
.po90-parent-journal .member-dashboard-right-bottom-lft p {
    font-style: italic;
    color: #888;
    font-size: 0.85em;
}

/* Remove theme margins injected by Bookory on parent dashboard */
body.page-template-default #content,
body.page #content {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

body.page-template-default .col-full,
body.page .col-full {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
}

/* Stretch header navbar to full width */
.parent-dashboard-header .navbar {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.parent-dashboard-header {
    width: 100% !important;
    max-width: 100% !important;
}

/* Child selector width */
#childSelector {
    width: 25% !important;
    min-width: 160px;
}