/* Prarthana CMS — WordPress admin look (Classic Editor). Colours: #1d2327 bar and menu, #f0f0f1 background, #2271b1 buttons. */
:root {
  --bar: #1d2327; --menu: #1d2327; --menu-sub: #2c3338; --menu-text: #f0f0f1; --menu-hover: #72aee6;
  --bg: #f0f0f1; --box: #fff; --border: #c3c4c7; --border-light: #dcdcde; --text: #1d2327; --muted: #646970;
  --blue: #2271b1; --blue-dark: #135e96; --red: #b32d2e; --green: #00a32a; --yellow: #dba617;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font: 13px/1.4em -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", "Noto Sans", "Noto Sans Devanagari", "Nirmala UI", sans-serif; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
code { background: rgba(0,0,0,.07); padding: 1px 4px; font-size: 12px; }
.description { color: var(--muted); font-size: 12px; }
.ok { color: var(--green); } .bad { color: var(--red); }
pre.errors { white-space: pre-wrap; background: #fcf0f1; border-left: 4px solid var(--red); padding: 8px; max-height: 260px; overflow: auto; font-size: 12px; }

/* Top admin bar */
#wpadminbar { position: fixed; top: 0; left: 0; right: 0; height: 32px; background: var(--bar); color: #f0f0f1; display: flex; align-items: center; z-index: 1000; font-size: 13px; }
#wpadminbar .ab-item { color: #f0f0f1; text-decoration: none; padding: 0 10px; line-height: 32px; display: inline-block; background: none; border: 0; font: inherit; cursor: pointer; }
#wpadminbar .ab-item:hover { background: #2c3338; color: var(--menu-hover); }
#wpadminbar .ab-site { font-weight: 600; }
#wpadminbar .ab-right { margin-left: auto; display: flex; }
#wpadminbar .ab-new { position: relative; }
#wpadminbar .ab-sub { display: none; position: absolute; top: 32px; left: 0; background: var(--menu-sub); min-width: 160px; padding: 6px 0; }
#wpadminbar .ab-new:hover .ab-sub, #wpadminbar .ab-new:focus-within .ab-sub { display: block; }
#wpadminbar .ab-sub a { display: block; color: #f0f0f1; padding: 4px 14px; text-decoration: none; }
#wpadminbar .ab-sub a:hover { color: var(--menu-hover); }
#wpadminbar .ab-pending { background: #3c434a; }
.ab-logout { margin: 0; }

/* Left menu */
#adminmenuwrap { position: fixed; top: 32px; bottom: 0; left: 0; width: 160px; background: var(--menu); overflow-y: auto; }
#adminmenu { list-style: none; margin: 12px 0; padding: 0; }
#adminmenu > li > a { display: block; color: var(--menu-text); text-decoration: none; padding: 8px 12px; font-size: 14px; }
#adminmenu > li > a:hover { color: var(--menu-hover); background: #2c3338; }
#adminmenu > li.current > a { background: var(--blue); color: #fff; }
#adminmenu .submenu { list-style: none; margin: 0; padding: 0; background: var(--menu-sub); display: none; }
#adminmenu li.current .submenu, #adminmenu li:hover .submenu { display: block; }
#adminmenu .submenu a { display: block; color: rgba(240,246,252,.7); padding: 5px 12px 5px 22px; text-decoration: none; font-size: 13px; }
#adminmenu .submenu a:hover { color: var(--menu-hover); }

#wpcontent { margin-left: 160px; padding: 32px 20px 0; min-height: 100vh; display: flex; flex-direction: column; }
.wrap { margin: 10px 0 0; flex: 1; }
#wpfooter { display: flex; justify-content: space-between; color: var(--muted); padding: 20px 0; font-size: 13px; }

h1.wp-heading-inline { display: inline-block; font-size: 23px; font-weight: 400; margin: 0 10px 0 0; padding: 9px 0 4px; line-height: 1.3; }
.page-title-action { display: inline-block; border: 1px solid var(--blue); border-radius: 3px; color: var(--blue); background: #f6f7f7; padding: 4px 8px; text-decoration: none; font-size: 13px; position: relative; top: -3px; }
.page-title-action:hover { background: #f0f0f1; color: var(--blue-dark); border-color: var(--blue-dark); }
.subtitle { color: var(--muted); padding-left: 10px; }
hr.wp-header-end { border: 0; margin: 0 0 6px; }

/* Notices */
.notice { background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--green); box-shadow: 0 1px 1px rgba(0,0,0,.04); margin: 5px 0 15px; padding: 1px 38px 1px 12px; position: relative; }
.notice p { margin: .5em 0; padding: 2px; }
.notice-error { border-left-color: var(--red); } .notice-warning { border-left-color: var(--yellow); }
.notice-dismiss { position: absolute; top: 0; right: 1px; border: 0; background: none; font-size: 18px; color: #787c82; padding: 9px; cursor: pointer; }

/* Buttons */
.button { display: inline-block; text-decoration: none; font-size: 13px; line-height: 2.15384615; min-height: 30px; margin: 0; padding: 0 10px; cursor: pointer; border: 1px solid var(--blue); border-radius: 3px; background: #f6f7f7; color: var(--blue); white-space: nowrap; font-family: inherit; vertical-align: middle; }
.button:hover { background: #f0f0f1; border-color: var(--blue-dark); color: var(--blue-dark); }
.button-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.button-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.button-large { min-height: 32px; line-height: 2.30769231; padding: 0 12px; }
.button.disabled, .button:disabled { color: #a7aaad; border-color: #dcdcde; background: #f6f7f7; cursor: default; }
.button-primary:disabled { background: #8cb3d8; border-color: #8cb3d8; color: #fff; }
.linklike { background: none; border: 0; padding: 0; color: var(--blue); cursor: pointer; font: inherit; text-decoration: underline; }
.linklike:hover { color: var(--blue-dark); }
.submitdelete, .linklike.trash { color: var(--red); }
.submitdelete:hover, .linklike.trash:hover { color: #8a2424; }

/* Forms. Radios and checkboxes get their own rule so generic label input rules don't break them. */
input[type=text], input[type=search], input[type=password], input[type=number], select, textarea {
  border: 1px solid #8c8f94; border-radius: 4px; padding: 0 8px; min-height: 30px; font: inherit; color: var(--text); background: #fff; }
textarea { padding: 6px 8px; width: 100%; line-height: 1.6; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); outline: 2px solid transparent; }
label { display: block; margin: 0 0 10px; }
label > input[type=text], label > input[type=password], label > input[type=number], label > textarea, label > select { display: block; width: 100%; margin-top: 4px; }
label.radio, label.checkbox { display: flex; align-items: center; gap: 6px; margin: 4px 0; }
label.radio input, label.checkbox input, input[type=checkbox], input[type=radio] { width: auto; min-height: 0; margin: 0; }
fieldset { border: 0; padding: 0; margin: 0 0 10px; }
legend { padding: 0; margin-bottom: 4px; }
.narrow { max-width: 420px; }
textarea.sacred { font-size: 18px; line-height: 1.8; font-family: "Noto Serif Devanagari", "Nirmala UI", "Mangal", serif; }
textarea[readonly] { background: #f6f7f7; color: #50575e; }

/* List screen (edit.php) */
.subsubsub { list-style: none; margin: 8px 0 0; padding: 0; font-size: 13px; float: left; color: var(--muted); }
.subsubsub li { display: inline-block; margin: 0; }
.subsubsub a { text-decoration: none; padding: .2em; }
.subsubsub a.current { font-weight: 600; color: #000; }
.count { color: #50575e; font-weight: 400; }
.search-box { float: right; margin: 0 0 6px; display: flex; gap: 4px; }
#posts-filter { clear: both; }
.tablenav { display: flex; align-items: center; gap: 8px; margin: 6px 0 4px; flex-wrap: wrap; min-height: 30px; }
.tablenav .actions { display: flex; gap: 6px; align-items: center; }
.tablenav-pages { margin-left: auto; display: flex; gap: 8px; align-items: center; color: var(--muted); }
.pagination-links { display: inline-flex; gap: 3px; align-items: center; }
.pagination-links .button { min-width: 30px; text-align: center; padding: 0 4px; }
.paging-input { margin: 0 6px; }
.widefat { border: 1px solid var(--border); border-spacing: 0; width: 100%; background: #fff; box-shadow: 0 1px 1px rgba(0,0,0,.04); }
.widefat th, .widefat td { text-align: left; padding: 8px 10px; vertical-align: top; font-weight: 400; }
.widefat thead th, .widefat thead td { border-bottom: 1px solid var(--border); font-weight: 400; }
.widefat.fixed { table-layout: fixed; }
.striped > tbody > tr:nth-child(odd) { background: #f6f7f7; }
.widefat.compact td, .widefat.compact th { padding: 4px 8px; }
.check-column { width: 2.2em; padding: 11px 0 0 8px !important; }
.column-title { width: 40%; }
.column-photo { width: 64px; }
.row-title { font-weight: 600; font-size: 14px; }
.post-state { color: #50575e; font-weight: 600; }
.slug { color: var(--muted); font-size: 12px; }
.row-actions { color: #a7aaad; font-size: 13px; padding: 2px 0 0; visibility: hidden; }
tr:hover .row-actions, tr:focus-within .row-actions { visibility: visible; }
.no-items td { text-align: center; padding: 20px; }

/* Edit screen (Classic Editor) */
#poststuff { padding-top: 10px; }
#post-body.columns-2 { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; align-items: start; }
#titlediv { margin-bottom: 10px; }
#title { width: 100%; padding: 3px 8px; font-size: 1.7em; line-height: 100%; height: 1.7em; min-height: 40px; background: #fff; }
#edit-slug-box { padding: 6px 0 0; color: var(--muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.perma { color: var(--text); }
.slug-input { min-height: 24px !important; width: 220px; }
.postbox { background: var(--box); border: 1px solid var(--border); box-shadow: 0 1px 1px rgba(0,0,0,.04); margin-bottom: 20px; }
.postbox .hndle { font-size: 14px; padding: 8px 12px; margin: 0; line-height: 1.4; border-bottom: 1px solid var(--border-light); font-weight: 600; }
.postbox .hndle.toggle { cursor: pointer; display: flex; justify-content: space-between; }
.postbox.closed .inside { display: none; }
.postbox .inside { padding: 0 12px 12px; margin: 11px 0 0; }
.postbox .inside.small { font-size: 12px; }
.langbar { display: flex; gap: 2px; flex-wrap: wrap; align-items: center; margin: 0 0 10px; position: sticky; top: 32px; background: var(--bg); padding: 6px 0; z-index: 5; }
.langbar-label { color: var(--muted); margin-right: 6px; }
.langtab, .wp-switch-editor { border: 1px solid var(--border-light); background: #f6f7f7; color: #50575e; padding: 4px 10px; cursor: pointer; font: inherit; border-radius: 3px 3px 0 0; }
.langtab.active, .wp-switch-editor.active { background: #fff; color: var(--text); border-color: var(--border); border-bottom-color: #fff; font-weight: 600; }
.lang-field { display: none; } .lang-field.active { display: block; }
.wp-editor-tabs { display: flex; gap: 2px; flex-wrap: wrap; border-bottom: 1px solid var(--border); margin-bottom: -1px; }
.editor-pane { display: none; border: 1px solid var(--border); border-top: 0; padding: 8px; }
.editor-pane.active { display: block; }
.editor-pane textarea { border: 0; box-shadow: none; padding: 4px; }
.word-count { color: var(--muted); padding: 6px 0 0; font-size: 12px; background: #f6f7f7; border: 1px solid var(--border); border-top: 0; padding: 4px 8px; }
.chip { display: inline-block; font-size: 11px; line-height: 16px; padding: 0 6px; border-radius: 8px; background: #f0f0f1; color: #50575e; font-weight: 400; margin-left: 4px; vertical-align: middle; }
.chip-approved, .chip-reviewed, .chip-verified { background: #edfaef; color: #00691c; }
.chip-needs-work, .chip-missing, .chip-needs-review { background: #fcf0f1; color: var(--red); }
.chip-draft, .chip-assumed { background: #fcf9e8; color: #8a6116; }
.verses { padding-left: 2.2em; margin: 0 0 10px; }
.verse { margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px dashed var(--border-light); }
.verse-head { display: flex; gap: 6px; align-items: center; margin-bottom: 4px; }
.verse-id { width: 140px; } .verse-kind { width: 120px; }
.verse-remove { margin: 0 0 0 auto; display: flex; gap: 4px; align-items: center; color: var(--red); }
.verse .lang-field.active { display: flex; gap: 6px; align-items: start; margin-top: 4px; }
#submitdiv .inside { padding: 0; margin: 0; }
.minor-publishing-actions { display: flex; justify-content: space-between; padding: 10px; gap: 6px; }
.misc-pub-section { padding: 6px 10px; }
.major-publishing-actions { display: flex; justify-content: space-between; align-items: center; padding: 10px; background: #f6f7f7; border-top: 1px solid var(--border-light); margin-top: 6px; }
.major-publishing-actions .button-primary { margin-left: auto; }
#submitdiv label { padding: 0 10px; }
#submitdiv label.checkbox { padding: 10px 10px 0; }
.categorychecklist { list-style: none; margin: 0; padding: 0; }
.categorychecklist.scroll { max-height: 220px; overflow-y: auto; border: 1px solid var(--border-light); padding: 4px 8px; }
.details label { font-size: 12px; }
.names-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 14px; }
.names-grid .description { grid-column: 1 / -1; }

/* Dashboard */
.dashboard-widgets { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 20px; margin-top: 10px; }
.dashboard-widgets .postbox { margin: 0; }
.glance { list-style: none; padding: 0; margin: 0; columns: 2; }
.glance li { margin-bottom: 8px; }
.recent { list-style: none; padding: 0; margin: 0; }
.recent li { margin-bottom: 6px; }
.recent .date { color: var(--muted); display: inline-block; min-width: 100px; }
.form-table { border-collapse: collapse; margin-bottom: 12px; }
.form-table th { text-align: left; width: 180px; padding: 6px 10px 6px 0; vertical-align: top; font-weight: 600; }
.form-table td { padding: 6px 0; }

/* Media */
.uploader-drop { display: flex; flex-direction: column; align-items: center; gap: 8px; border: 4px dashed #c3c4c7; padding: 40px 20px; background: #fff; text-align: center; cursor: pointer; margin: 10px 0; }
.uploader-drop.drag { border-color: var(--blue); background: #f0f6fc; }
.drop-title { font-size: 20px; }
.upload-progress { list-style: none; padding: 0; }
.upload-progress .err { color: var(--red); }
.attachments { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.attachment { margin: 0; background: #fff; border: 1px solid var(--border-light); }
.attachment img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: #f0f0f1; }
.attachment figcaption { padding: 6px; font-size: 12px; display: flex; flex-direction: column; gap: 3px; }
.attachment .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.attachment .meta { color: var(--muted); }
.attachment .copy-path { font-size: 11px; min-height: 22px; width: 100%; }
.attachment form { margin: 0; }
button.attachment { padding: 0; cursor: pointer; }
button.attachment.selected { outline: 3px solid var(--blue); }
img.round, span.round { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; display: block; background: #f0f0f1; border: 1px solid var(--border-light); }
img.round.big, span.round.big { width: 160px; height: 160px; margin: 0 auto 10px; }

/* Media modal (Set photo) */
.media-modal[hidden] { display: none; }
.media-modal { position: fixed; inset: 0; z-index: 2000; }
.media-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.7); }
.media-modal-content { position: absolute; inset: 30px; background: #fff; display: flex; flex-direction: column; max-width: 900px; margin: 0 auto; }
.media-modal-content h1 { font-size: 22px; font-weight: 600; margin: 0; padding: 14px 16px; }
.media-modal-close { position: absolute; top: 0; right: 0; width: 50px; height: 50px; border: 0; background: none; font-size: 26px; cursor: pointer; color: #646970; }
.media-router { display: flex; gap: 4px; padding: 0 16px; border-bottom: 1px solid var(--border-light); }
.media-menu-item { background: none; border: 0; padding: 10px 12px; font: inherit; cursor: pointer; color: var(--blue); border-bottom: 3px solid transparent; }
.media-menu-item.active { color: var(--text); border-bottom-color: var(--text); font-weight: 600; }
.media-frame { flex: 1; overflow: auto; padding: 16px; }
.media-tab { display: none; } .media-tab.active { display: block; }
.media-toolbar { border-top: 1px solid var(--border-light); padding: 12px 16px; display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.pm-status { margin-right: auto; color: var(--muted); }
.crop-stage { display: flex; justify-content: center; }
#pm-canvas { background: repeating-conic-gradient(#eee 0 25%, #fff 0 50%) 0 0 / 20px 20px; cursor: grab; touch-action: none; max-width: 100%; }
.zoom { max-width: 360px; margin: 10px auto; display: flex; gap: 8px; align-items: center; }
.zoom input { flex: 1; }

/* Preview (Pothi look) */
.preview-pick { display: flex; gap: 12px; margin: 10px 0; }
.preview-pick label { display: flex; gap: 6px; align-items: center; margin: 0; }
.pothi { background: #fbf6ea; border: 1px solid #e3d6b8; max-width: 720px; padding: 28px 36px; margin: 10px 0 30px; font-family: "Noto Serif", "Noto Serif Devanagari", "Nirmala UI", Georgia, serif; color: #2b2116; }
.pothi h2 { font-size: 26px; margin: 0 0 4px; color: #7a2e0e; font-weight: 600; }
.pothi-source { color: #7b6a52; margin: 0 0 18px; font-style: italic; }
.pothi-text, .pothi-preview { white-space: pre-line; font-size: 21px; line-height: 1.9; text-align: center; margin: 10px 0; font-family: "Noto Serif Devanagari", "Nirmala UI", "Mangal", serif; }
.pothi-meaning { font-size: 15px; line-height: 1.7; white-space: pre-line; }
.pothi-verse { border-top: 1px solid #eadfc6; padding-top: 10px; margin-top: 10px; }
.pothi-kind { text-transform: uppercase; letter-spacing: .08em; font-size: 11px; color: #9a7b4f; }

/* Login */
body.login { display: flex; justify-content: center; }
#login { width: 320px; padding: 8% 0 0; }
#login.wide { width: 380px; }
#login h1 { text-align: center; font-size: 26px; font-weight: 400; margin: 0 0 24px; }
#login .message { background: #fff; border-left: 4px solid var(--blue); padding: 12px; }
.loginform { background: #fff; border: 1px solid var(--border-light); box-shadow: 0 1px 3px rgba(0,0,0,.04); padding: 26px 24px; }
.loginform input[type=text], .loginform input[type=password] { font-size: 20px; min-height: 40px; }
.loginform .submit { text-align: right; margin: 16px 0 0; }

@media (max-width: 960px) {
  #post-body.columns-2 { grid-template-columns: 1fr; }
}
@media (max-width: 782px) {
  #adminmenuwrap { position: static; width: auto; margin-top: 32px; }
  #adminmenu { display: flex; flex-wrap: wrap; margin: 0; }
  #adminmenu .submenu { display: none !important; }
  #wpcontent { margin-left: 0; padding: 0 12px; }
  .search-box { float: none; }
  .column-title { width: auto; }
  .widefat th:nth-child(n+4), .widefat td:nth-child(n+4) { display: none; }
  .row-actions { visibility: visible; }
}

/* Formatted text (TinyMCE) */
.tox-tinymce { border-radius: 0 !important; border-color: var(--border) !important; }
.editor-pane .tox-tinymce { border: 0 !important; }
.readonly-rich { background: #f6f7f7; color: #50575e; padding: 8px 12px; min-height: 120px; white-space: normal; text-align: center; }
.readonly-rich.sacred, .pothi-text { font-size: 19px; line-height: 1.8; }
.verse .lang-field.active > .tox-tinymce, .verse .lang-field.active > textarea { flex: 1; }
.pothi-text p, .pothi-meaning p { margin: 0 0 .6em; }
