/* Marivya Lesson Planner — unified admin UI refresh */
:root{
  --mlp-bg:#f5f7ff;
  --mlp-card:#ffffff;
  --mlp-border:#dfe6f5;
  --mlp-border-strong:#cfd9ee;
  --mlp-text:#12274f;
  --mlp-muted:#61749b;
  --mlp-primary:#2f6cf7;
  --mlp-primary-2:#1abdc4;
  --mlp-soft:#eef4ff;
  --mlp-soft-2:#f7f9ff;
  --mlp-shadow:0 14px 34px rgba(43,72,133,.08);
  --mlp-radius:18px;
  --mlp-radius-sm:12px;
}

.marivya-lp-card{box-shadow:var(--mlp-shadow)}
.marivya-lp-muted{color:var(--mlp-muted)}
.marivya-lp-list{margin:6px 0 0 18px}.marivya-lp-list li{margin:4px 0}.marivya-lp-list .dashicons{vertical-align:middle;margin-right:6px}
.marivya-lp-quick-materials .button.button-small{margin-left:6px}.marivya-lp-quick-materials .button.button-small:focus{outline:2px solid var(--mlp-primary);outline-offset:1px}
#marivya-lp-calendar .fc{--fc-border-color:#e2e8f0}.marivya-lp-ev{transition:top .12s ease-out}.marivya-lp-ev.dragging{transition:none}

/* Plugin pages */
.toplevel_page_marivya-lesson-planner .wrap,
.marivya-lesson-planner_page_marivya-lp-dashboard .wrap,
.marivya-lesson-planner_page_marivya-lp-settings .wrap,
.marivya-lesson-planner_page_marivya-lp-planning .wrap,
.marivya-lesson-planner_page_marivya-lp-notify .wrap,
.marivya-lesson-planner_page_marivya-lp-pro-coming-soon .wrap{
  margin:20px 20px 0 2px;
  padding:28px;
  background:linear-gradient(180deg,#fbfcff 0%,var(--mlp-bg) 100%);
  border:1px solid var(--mlp-border);
  border-radius:28px;
  box-shadow:var(--mlp-shadow);
  color:var(--mlp-text);
}
.toplevel_page_marivya-lesson-planner .wrap h1,
.marivya-lesson-planner_page_marivya-lp-dashboard .wrap h1,
.marivya-lesson-planner_page_marivya-lp-settings .wrap h1,
.marivya-lesson-planner_page_marivya-lp-planning .wrap h1,
.marivya-lesson-planner_page_marivya-lp-notify .wrap h1,
.marivya-lesson-planner_page_marivya-lp-pro-coming-soon .wrap h1{
  font-size:40px;line-height:1.08;font-weight:800;margin:0 0 10px;color:var(--mlp-text);letter-spacing:-.03em;
}
.toplevel_page_marivya-lesson-planner .wrap>h1::before,
.marivya-lesson-planner_page_marivya-lp-dashboard .wrap>h1::before,
.marivya-lesson-planner_page_marivya-lp-settings .wrap>h1::before,
.marivya-lesson-planner_page_marivya-lp-planning .wrap>h1::before,
.marivya-lesson-planner_page_marivya-lp-notify .wrap>h1::before,
.marivya-lesson-planner_page_marivya-lp-pro-coming-soon .wrap>h1::before{
  content:"Marivya Lesson Planner";display:inline-flex;margin:0 0 12px;padding:7px 14px;border-radius:999px;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;background:linear-gradient(135deg,rgba(26,189,196,.15),rgba(47,108,247,.12));color:#235bcf;
}
.toplevel_page_marivya-lesson-planner .wrap>p,
.marivya-lesson-planner_page_marivya-lp-dashboard .wrap>p,
.marivya-lesson-planner_page_marivya-lp-settings .wrap>p,
.marivya-lesson-planner_page_marivya-lp-planning .wrap>p,
.marivya-lesson-planner_page_marivya-lp-notify .wrap>p,
.marivya-lesson-planner_page_marivya-lp-pro-coming-soon .wrap>p{color:var(--mlp-muted);font-size:15px}
.toplevel_page_marivya-lesson-planner .wrap h2,
.marivya-lesson-planner_page_marivya-lp-dashboard .wrap h2,
.marivya-lesson-planner_page_marivya-lp-settings .wrap h2,
.marivya-lesson-planner_page_marivya-lp-planning .wrap h2,
.marivya-lesson-planner_page_marivya-lp-notify .wrap h2,
.marivya-lesson-planner_page_marivya-lp-pro-coming-soon .wrap h2{margin:28px 0 10px;color:var(--mlp-text);font-size:22px}

/* Existing inline cards on dashboard / welcome */
.toplevel_page_marivya-lesson-planner .wrap div[style*="background:#fff"],
.marivya-lesson-planner_page_marivya-lp-dashboard .wrap div[style*="background:#fff"],
.marivya-lesson-planner_page_marivya-lp-dashboard .wrap ol[style*="display:grid"]>li{
  border:1px solid var(--mlp-border)!important;border-radius:var(--mlp-radius)!important;box-shadow:var(--mlp-shadow)!important;background:rgba(255,255,255,.92)!important;
}
.marivya-lesson-planner_page_marivya-lp-dashboard .wrap div[style*="text-align:center;font-weight:700;padding:6px 0;border-bottom"]{border-radius:12px 12px 0 0;background:var(--mlp-soft)!important;border-color:var(--mlp-border)!important}
.marivya-lesson-planner_page_marivya-lp-dashboard .wrap div[style*="min-height:86px;border:1px solid #edf2f7"]{border:1px solid var(--mlp-border)!important;border-radius:14px!important;background:linear-gradient(180deg,#fff 0%,#f8fbff 100%)}

/* Forms */
.marivya-lesson-planner_page_marivya-lp-settings form,
.marivya-lesson-planner_page_marivya-lp-planning form,
.marivya-lesson-planner_page_marivya-lp-notify form{margin-top:18px;padding:24px;background:rgba(255,255,255,.92);border:1px solid var(--mlp-border);border-radius:24px;box-shadow:var(--mlp-shadow)}
.marivya-lesson-planner_page_marivya-lp-settings hr,
.marivya-lesson-planner_page_marivya-lp-planning hr,
.marivya-lesson-planner_page_marivya-lp-notify hr,
.toplevel_page_marivya-lesson-planner .wrap hr{margin:28px 0;border:0;border-top:1px solid var(--mlp-border)}
.marivya-lesson-planner_page_marivya-lp-settings label,
.marivya-lesson-planner_page_marivya-lp-planning label,
.marivya-lesson-planner_page_marivya-lp-notify label,
.post-type-marivya_lp_student #poststuff label,
.post-type-marivya_lp_lesson #poststuff label,
.post-type-marivya_lp_material #poststuff label{color:var(--mlp-text);font-weight:600}
.marivya-lesson-planner_page_marivya-lp-settings .description,
.marivya-lesson-planner_page_marivya-lp-planning .description,
.marivya-lesson-planner_page_marivya-lp-notify .description,
.post-type-marivya_lp_student .description,
.post-type-marivya_lp_lesson .description,
.post-type-marivya_lp_material .description{color:var(--mlp-muted)}

/* Buttons */
.marivya-lesson-planner_page_marivya-lp-settings .button,
.marivya-lesson-planner_page_marivya-lp-planning .button,
.marivya-lesson-planner_page_marivya-lp-notify .button,
.toplevel_page_marivya-lesson-planner .button,
.marivya-lesson-planner_page_marivya-lp-dashboard .button,
.marivya-lesson-planner_page_marivya-lp-pro-coming-soon .button,
.post-type-marivya_lp_student .button,
.post-type-marivya_lp_lesson .button,
.post-type-marivya_lp_material .button,
.edit-php.post-type-marivya_lp_student .button,
.edit-php.post-type-marivya_lp_lesson .button,
.edit-php.post-type-marivya_lp_material .button{border-radius:12px;border-color:transparent;min-height:38px;padding:0 16px;box-shadow:none}
.marivya-lesson-planner_page_marivya-lp-settings .button-primary,
.marivya-lesson-planner_page_marivya-lp-planning .button-primary,
.marivya-lesson-planner_page_marivya-lp-notify .button-primary,
.toplevel_page_marivya-lesson-planner .button-primary,
.marivya-lesson-planner_page_marivya-lp-dashboard .button-primary,
.marivya-lesson-planner_page_marivya-lp-pro-coming-soon .button-primary,
.post-type-marivya_lp_student .button-primary,
.post-type-marivya_lp_lesson .button-primary,
.post-type-marivya_lp_material .button-primary{background:linear-gradient(135deg,var(--mlp-primary-2),var(--mlp-primary));border-color:transparent}
.marivya-lesson-planner_page_marivya-lp-settings .button-secondary,
.marivya-lesson-planner_page_marivya-lp-planning .button-secondary,
.marivya-lesson-planner_page_marivya-lp-notify .button-secondary,
.toplevel_page_marivya-lesson-planner .button,
.marivya-lesson-planner_page_marivya-lp-dashboard .button,
.marivya-lesson-planner_page_marivya-lp-pro-coming-soon .button,
.post-type-marivya_lp_student .button-secondary,
.post-type-marivya_lp_lesson .button-secondary,
.post-type-marivya_lp_material .button-secondary,
.edit-php.post-type-marivya_lp_student .button,
.edit-php.post-type-marivya_lp_lesson .button,
.edit-php.post-type-marivya_lp_material .button{background:#fff;border:1px solid var(--mlp-border-strong);color:var(--mlp-text)}

/* Inputs */
.marivya-lesson-planner_page_marivya-lp-settings input[type="text"],
.marivya-lesson-planner_page_marivya-lp-settings input[type="url"],
.marivya-lesson-planner_page_marivya-lp-settings input[type="email"],
.marivya-lesson-planner_page_marivya-lp-planning textarea,
.marivya-lesson-planner_page_marivya-lp-settings textarea,
.marivya-lesson-planner_page_marivya-lp-notify textarea,
.marivya-lesson-planner_page_marivya-lp-notify input[type="text"],
.marivya-lesson-planner_page_marivya-lp-notify input[type="email"],
.marivya-lesson-planner_page_marivya-lp-notify input[type="number"],
.post-type-marivya_lp_student input[type="text"],
.post-type-marivya_lp_student input[type="email"],
.post-type-marivya_lp_student input[type="number"],
.post-type-marivya_lp_student select,
.post-type-marivya_lp_student textarea,
.post-type-marivya_lp_lesson input[type="text"],
.post-type-marivya_lp_lesson input[type="email"],
.post-type-marivya_lp_lesson input[type="number"],
.post-type-marivya_lp_lesson input[type="date"],
.post-type-marivya_lp_lesson input[type="time"],
.post-type-marivya_lp_lesson select,
.post-type-marivya_lp_lesson textarea,
.post-type-marivya_lp_material input[type="text"],
.post-type-marivya_lp_material input[type="url"],
.post-type-marivya_lp_material textarea,
.post-type-marivya_lp_material select{border-color:var(--mlp-border-strong)!important;background:#fff!important;border-radius:12px!important;min-height:42px;padding:8px 12px!important;box-shadow:none!important}
.marivya-lesson-planner_page_marivya-lp-settings textarea,
.marivya-lesson-planner_page_marivya-lp-planning textarea,
.marivya-lesson-planner_page_marivya-lp-notify textarea,
.post-type-marivya_lp_student textarea,
.post-type-marivya_lp_lesson textarea,
.post-type-marivya_lp_material textarea{min-height:120px}

/* CPT edit screens */
.post-type-marivya_lp_student #poststuff,
.post-type-marivya_lp_lesson #poststuff,
.post-type-marivya_lp_material #poststuff{color:var(--mlp-text)}
.post-type-marivya_lp_student .wrap h1.wp-heading-inline,
.post-type-marivya_lp_lesson .wrap h1.wp-heading-inline,
.post-type-marivya_lp_material .wrap h1.wp-heading-inline,
.edit-php.post-type-marivya_lp_student .wrap h1.wp-heading-inline,
.edit-php.post-type-marivya_lp_lesson .wrap h1.wp-heading-inline,
.edit-php.post-type-marivya_lp_material .wrap h1.wp-heading-inline{color:var(--mlp-text);font-weight:800}
.post-type-marivya_lp_student #titlediv,
.post-type-marivya_lp_lesson #titlediv,
.post-type-marivya_lp_material #titlediv,
.post-type-marivya_lp_student .postbox,
.post-type-marivya_lp_lesson .postbox,
.post-type-marivya_lp_material .postbox,
.post-type-marivya_lp_student .stuffbox,
.post-type-marivya_lp_lesson .stuffbox,
.post-type-marivya_lp_material .stuffbox{border:1px solid var(--mlp-border)!important;border-radius:20px!important;overflow:hidden;box-shadow:var(--mlp-shadow)!important;background:#fff}
.post-type-marivya_lp_student .postbox .postbox-header,
.post-type-marivya_lp_lesson .postbox .postbox-header,
.post-type-marivya_lp_material .postbox .postbox-header,
.post-type-marivya_lp_student .stuffbox .hndle,
.post-type-marivya_lp_lesson .stuffbox .hndle,
.post-type-marivya_lp_material .stuffbox .hndle{background:linear-gradient(180deg,#fbfdff 0%,#f4f8ff 100%)}
.post-type-marivya_lp_student .postbox .hndle,
.post-type-marivya_lp_lesson .postbox .hndle,
.post-type-marivya_lp_material .postbox .hndle{padding:16px 18px;font-size:15px;font-weight:700}
.post-type-marivya_lp_student .inside,
.post-type-marivya_lp_lesson .inside,
.post-type-marivya_lp_material .inside{padding:16px 18px 18px}
.post-type-marivya_lp_student #post-body-content #title,
.post-type-marivya_lp_lesson #post-body-content #title,
.post-type-marivya_lp_material #post-body-content #title{border:0!important;background:transparent!important;font-size:24px;font-weight:700;padding:16px 18px!important}
.post-type-marivya_lp_student #post-body.columns-2,
.post-type-marivya_lp_lesson #post-body.columns-2,
.post-type-marivya_lp_material #post-body.columns-2{margin-right:320px}
.post-type-marivya_lp_student #postbox-container-1,
.post-type-marivya_lp_lesson #postbox-container-1,
.post-type-marivya_lp_material #postbox-container-1{width:300px}
.post-type-marivya_lp_student #postbox-container-2,
.post-type-marivya_lp_lesson #postbox-container-2,
.post-type-marivya_lp_material #postbox-container-2{margin-right:320px}
.post-type-marivya_lp_student #major-publishing-actions,
.post-type-marivya_lp_lesson #major-publishing-actions,
.post-type-marivya_lp_material #major-publishing-actions{border-top:1px solid var(--mlp-border);background:var(--mlp-soft-2)}
.post-type-marivya_lp_student .wp-editor-wrap,
.post-type-marivya_lp_lesson .wp-editor-wrap,
.post-type-marivya_lp_material .wp-editor-wrap{border:1px solid var(--mlp-border);border-radius:14px;overflow:hidden}

/* CPT list tables */
.edit-php.post-type-marivya_lp_student .wp-list-table,
.edit-php.post-type-marivya_lp_lesson .wp-list-table,
.edit-php.post-type-marivya_lp_material .wp-list-table{border:1px solid var(--mlp-border);border-radius:18px;overflow:hidden;box-shadow:var(--mlp-shadow)}
.edit-php.post-type-marivya_lp_student .wp-list-table thead th,
.edit-php.post-type-marivya_lp_student .wp-list-table tfoot th,
.edit-php.post-type-marivya_lp_lesson .wp-list-table thead th,
.edit-php.post-type-marivya_lp_lesson .wp-list-table tfoot th,
.edit-php.post-type-marivya_lp_material .wp-list-table thead th,
.edit-php.post-type-marivya_lp_material .wp-list-table tfoot th{background:var(--mlp-soft);border-bottom-color:var(--mlp-border);color:var(--mlp-text)}
.edit-php.post-type-marivya_lp_student .wp-list-table tbody tr:hover,
.edit-php.post-type-marivya_lp_lesson .wp-list-table tbody tr:hover,
.edit-php.post-type-marivya_lp_material .wp-list-table tbody tr:hover{background:#fbfdff}
.edit-php.post-type-marivya_lp_student .search-box input[type="search"],
.edit-php.post-type-marivya_lp_lesson .search-box input[type="search"],
.edit-php.post-type-marivya_lp_material .search-box input[type="search"]{border-radius:12px;min-height:38px;border-color:var(--mlp-border-strong)}

/* Notices */
.toplevel_page_marivya-lesson-planner .notice,
.marivya-lesson-planner_page_marivya-lp-dashboard .notice,
.marivya-lesson-planner_page_marivya-lp-settings .notice,
.marivya-lesson-planner_page_marivya-lp-planning .notice,
.marivya-lesson-planner_page_marivya-lp-notify .notice,
.marivya-lesson-planner_page_marivya-lp-pro-coming-soon .notice,
.post-type-marivya_lp_student .notice,
.post-type-marivya_lp_lesson .notice,
.post-type-marivya_lp_material .notice,
.edit-php.post-type-marivya_lp_student .notice,
.edit-php.post-type-marivya_lp_lesson .notice,
.edit-php.post-type-marivya_lp_material .notice{border-radius:14px;border-right-width:1px;border-top-width:1px;border-bottom-width:1px;box-shadow:var(--mlp-shadow)}

@media (max-width:1300px){
  .post-type-marivya_lp_student #post-body.columns-2,.post-type-marivya_lp_lesson #post-body.columns-2,.post-type-marivya_lp_material #post-body.columns-2,
  .post-type-marivya_lp_student #postbox-container-2,.post-type-marivya_lp_lesson #postbox-container-2,.post-type-marivya_lp_material #postbox-container-2{margin-right:0}
  .post-type-marivya_lp_student #postbox-container-1,.post-type-marivya_lp_lesson #postbox-container-1,.post-type-marivya_lp_material #postbox-container-1{width:100%}
}

/* Cleaner custom filters on CPT list screens */
.edit-php.post-type-marivya_lp_student .tablenav .actions select[name="marivya_lp_filter_status"],
.edit-php.post-type-marivya_lp_student .tablenav .actions select[name="marivya_lp_filter_tag"],
.edit-php.post-type-marivya_lp_lesson .tablenav .actions select[name="marivya_lp_filter_status"],
.edit-php.post-type-marivya_lp_lesson .tablenav .actions select[name="marivya_lp_filter_student"] {
  min-width: 150px;
  max-width: 260px;
}
.edit-php.post-type-marivya_lp_student .tablenav .actions select:empty,
.edit-php.post-type-marivya_lp_lesson .tablenav .actions select:empty,
.edit-php.post-type-marivya_lp_material .tablenav .actions select:empty {
  display: none;
}
