/* NUJIZ DATETIME DESIGN V38 */

html body .nd38.nd38,
html body .nd38-guide.nd38-guide {
 --nd-bg:#ffffff;
 --nd-panel:#f8fafc;
 --nd-text:#172033;
 --nd-muted:#475569;
 --nd-border:#dbe2ea;
 --nd-purple:#6d28d9;
 font-family:"Tajawal",Arial,sans-serif!important;
 color:var(--nd-text)!important;
 -webkit-text-fill-color:var(--nd-text)!important;
 box-sizing:border-box;
}

html[data-theme="dark"] body .nd38.nd38,
html[data-theme="dark"] body .nd38-guide.nd38-guide {
 --nd-bg:#171c28;
 --nd-panel:#222a39;
 --nd-text:#f8fafc;
 --nd-muted:#cbd5e1;
 --nd-border:#394457;
 --nd-purple:#c4b5fd;
 color-scheme:dark;
}

html body .nd38.nd38 {
 width:100%;
 max-width:1200px;
 margin:24px auto;
 padding:30px;
 background:var(--nd-bg)!important;
 border:1px solid var(--nd-border);
 border-radius:24px;
 box-shadow:0 12px 40px #00000009;
}

.nd38 *,
.nd38-guide * {
 box-sizing:border-box;
}

html body .nd38.nd38 :is(h2,h3,p,label,span,strong) {
 font-family:"Tajawal",Arial,sans-serif!important;
 opacity:1!important;
 text-shadow:none!important;
}

.nd38 .nd38-header {
 display:flex;
 align-items:center;
 gap:20px;
 padding-bottom:24px;
 border-bottom:1px solid var(--nd-border);
 margin-bottom:26px;
}

html body .nd38.nd38 .nd38-icon {
 display:grid;
 place-items:center;
 width:76px;
 height:76px;
 flex:0 0 76px;
 border-radius:20px;
 background:var(--nd38-accent,#7c3aed);
 color:#fff!important;
 -webkit-text-fill-color:#fff!important;
 font-size:36px!important;
}

html body .nd38.nd38 h2 {
 font-size:36px!important;
 font-weight:800!important;
 line-height:1.5!important;
 margin:0 0 8px!important;
 color:var(--nd-text)!important;
 -webkit-text-fill-color:var(--nd-text)!important;
}

html body .nd38.nd38 .nd38-heading p {
 font-size:23px!important;
 line-height:1.8!important;
 margin:0!important;
 color:var(--nd-muted)!important;
 -webkit-text-fill-color:var(--nd-muted)!important;
}

.nd38 .nd38-fields {
 display:grid;
 grid-template-columns:repeat(2,minmax(0,1fr));
 gap:22px;
}

.nd38 .nd38-field {
 display:flex;
 flex-direction:column;
 gap:10px;
 min-width:0;
}

html body .nd38.nd38 .nd38-field label {
 font-size:22px!important;
 font-weight:800!important;
 color:var(--nd-text)!important;
 -webkit-text-fill-color:var(--nd-text)!important;
}

html body .nd38.nd38 .nd38-input {
 display:block;
 width:100%!important;
 min-width:0;
 min-height:62px!important;
 padding:12px 16px!important;
 border:1px solid var(--nd-border)!important;
 border-radius:12px!important;
 background:var(--nd-panel)!important;
 color:var(--nd-text)!important;
 -webkit-text-fill-color:var(--nd-text)!important;
 font-family:"Tajawal",Arial,sans-serif!important;
 font-size:22px!important;
 font-weight:700!important;
 opacity:1!important;
}

html body .nd38.nd38 .nd38-input option {
 background:var(--nd-bg)!important;
 color:var(--nd-text)!important;
}

.nd38 .nd38-input:is(
 [type="date"],[type="time"]
) {
 direction:ltr;
 text-align:center;
}

.nd38 .nd38-actions,
.nd38 .nd38-result-actions {
 display:flex;
 flex-wrap:wrap;
 gap:14px;
 margin-top:24px;
}

html body .nd38.nd38 button {
 min-height:54px;
 padding:12px 22px!important;
 border-radius:12px!important;
 font-family:"Tajawal",Arial,sans-serif!important;
 font-size:21px!important;
 font-weight:800!important;
 cursor:pointer;
 transition:background-color .15s ease;
}

html body .nd38.nd38 .nd38-primary {
 flex:2;
 background:#7c3aed!important;
 border:1px solid #7c3aed!important;
 color:#fff!important;
 -webkit-text-fill-color:#fff!important;
}

html body .nd38.nd38 .nd38-secondary {
 flex:1;
 background:var(--nd-panel)!important;
 border:1px solid var(--nd-border)!important;
 color:var(--nd-text)!important;
 -webkit-text-fill-color:var(--nd-text)!important;
}

.nd38 .nd38-results {
 margin-top:30px;
 padding:24px;
 background:var(--nd-panel);
 border:1px solid var(--nd-border);
 border-radius:20px;
}

html body .nd38.nd38 .nd38-results-title {
 font-size:30px!important;
 font-weight:800!important;
 color:var(--nd-text)!important;
 -webkit-text-fill-color:var(--nd-text)!important;
 margin:0 0 22px!important;
}

.nd38 .nd38-results-grid {
 display:grid;
 grid-template-columns:repeat(3,minmax(0,1fr));
 gap:15px;
}

.nd38 .nd38-result-card {
 --rc-bg:#ede9fe;
 --rc-text:#5b21b6;
 display:flex;
 flex-direction:column;
 justify-content:center;
 align-items:center;
 gap:10px;
 min-width:0;
 min-height:140px;
 padding:20px 12px;
 text-align:center;
 background:var(--rc-bg);
 border:1px solid var(--nd-border);
 border-radius:16px;
}

.nd38 .nd38-result-card:nth-child(6n+2) {
 --rc-bg:#dbeafe;
 --rc-text:#1d4ed8;
}

.nd38 .nd38-result-card:nth-child(6n+3) {
 --rc-bg:#dcfce7;
 --rc-text:#166534;
}

.nd38 .nd38-result-card:nth-child(6n+4) {
 --rc-bg:#fef3c7;
 --rc-text:#92400e;
}

.nd38 .nd38-result-card:nth-child(6n+5) {
 --rc-bg:#cffafe;
 --rc-text:#155e75;
}

.nd38 .nd38-result-card:nth-child(6n+6) {
 --rc-bg:#fce7f3;
 --rc-text:#9d174d;
}

html[data-theme="dark"] .nd38 .nd38-result-card {
 --rc-bg:#30234d;
 --rc-text:#ddd6fe;
}

html[data-theme="dark"] .nd38 .nd38-result-card:nth-child(6n+2) {
 --rc-bg:#192f4c;
 --rc-text:#bfdbfe;
}

html[data-theme="dark"] .nd38 .nd38-result-card:nth-child(6n+3) {
 --rc-bg:#163b30;
 --rc-text:#bbf7d0;
}

html[data-theme="dark"] .nd38 .nd38-result-card:nth-child(6n+4) {
 --rc-bg:#3d321c;
 --rc-text:#fde68a;
}

html[data-theme="dark"] .nd38 .nd38-result-card:nth-child(6n+5) {
 --rc-bg:#173842;
 --rc-text:#a5f3fc;
}

html[data-theme="dark"] .nd38 .nd38-result-card:nth-child(6n+6) {
 --rc-bg:#42243a;
 --rc-text:#fbcfe8;
}

html body .nd38.nd38 .nd38-result-card strong {
 display:block;
 max-width:100%;
 font-size:clamp(24px,3vw,42px)!important;
 font-weight:800!important;
 line-height:1.4!important;
 font-variant-numeric:tabular-nums;
 overflow-wrap:anywhere;
 color:var(--rc-text)!important;
 -webkit-text-fill-color:var(--rc-text)!important;
}

html body .nd38.nd38 .nd38-result-card span {
 font-size:20px!important;
 font-weight:700!important;
 line-height:1.5!important;
 color:var(--nd-text)!important;
 -webkit-text-fill-color:var(--nd-text)!important;
}

html body .nd38.nd38 .nd38-copy,
html body .nd38.nd38 .nd38-share {
 flex:1;
 background:#15803d!important;
 border:1px solid #15803d!important;
 color:#fff!important;
 -webkit-text-fill-color:#fff!important;
}

html body .nd38.nd38 .nd38-share {
 background:#2563eb!important;
 border-color:#2563eb!important;
}

html body .nd38.nd38 :is(.nd38-note,.nd38-status) {
 font-size:19px!important;
 line-height:1.9!important;
 color:var(--nd-muted)!important;
 -webkit-text-fill-color:var(--nd-muted)!important;
}

html body .nd38.nd38 .nd38-error {
 margin-top:20px;
 padding:16px;
 border-radius:12px;
 border:1px solid #ef4444;
 background:#fef2f2;
 color:#991b1b!important;
 -webkit-text-fill-color:#991b1b!important;
 font-size:20px!important;
}

html[data-theme="dark"] body .nd38.nd38 .nd38-error {
 background:#451a1a;
 color:#fecaca!important;
 -webkit-text-fill-color:#fecaca!important;
}

.nd38 [hidden] {
 display:none!important;
}

.nd38 :is(button,input,select):focus-visible {
 outline:3px solid #8b5cf6!important;
 outline-offset:3px;
}

/* ILLUSTRATED GUIDE */

html body .nd38-guide.nd38-guide {
 max-width:1200px;
 margin:30px auto;
 padding:30px;
 background:var(--nd-bg)!important;
 border:1px solid var(--nd-border);
 border-radius:24px;
}

html body .nd38-guide.nd38-guide h2 {
 font-size:34px!important;
 font-weight:800!important;
 color:var(--nd-text)!important;
 -webkit-text-fill-color:var(--nd-text)!important;
}

.nd38-guide .nd38-guide-grid {
 display:grid;
 grid-template-columns:repeat(3,minmax(0,1fr));
 gap:18px;
}

.nd38-guide .nd38-guide-step {
 padding:24px;
 border:1px solid var(--nd-border);
 border-radius:18px;
 background:var(--nd-panel);
}

html body .nd38-guide.nd38-guide .nd38-guide-icon {
 display:grid;
 place-items:center;
 width:64px;
 height:64px;
 border-radius:16px;
 background:#7c3aed;
 color:#fff!important;
 -webkit-text-fill-color:#fff!important;
 font-size:30px!important;
 margin-bottom:18px;
}

html body .nd38-guide.nd38-guide h3 {
 font-size:26px!important;
 font-weight:800!important;
 color:var(--nd-text)!important;
 -webkit-text-fill-color:var(--nd-text)!important;
}

html body .nd38-guide.nd38-guide p {
 font-size:23px!important;
 line-height:1.9!important;
 color:var(--nd-muted)!important;
 -webkit-text-fill-color:var(--nd-muted)!important;
}

@media(max-width:700px) {

 html body .nd38.nd38,
 html body .nd38-guide.nd38-guide {
  padding:17px;
  border-radius:18px;
 }

 .nd38 .nd38-header {
  gap:12px;
  align-items:flex-start;
 }

 html body .nd38.nd38 .nd38-icon {
  width:54px;
  height:54px;
  flex-basis:54px;
  font-size:27px!important;
 }

 html body .nd38.nd38 h2 {
  font-size:28px!important;
 }

 html body .nd38.nd38 .nd38-heading p {
  font-size:20px!important;
 }

 .nd38 .nd38-fields {
  grid-template-columns:1fr;
  gap:16px;
 }

 html body .nd38.nd38 .nd38-input {
  min-height:56px!important;
  font-size:20px!important;
 }

 .nd38 .nd38-results {
  padding:14px;
 }

 .nd38 .nd38-results-grid {
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
 }

 .nd38 .nd38-result-card {
  min-height:112px;
  padding:12px 8px;
 }

 html body .nd38.nd38 .nd38-result-card strong {
  font-size:30px!important;
 }

 html body .nd38.nd38 .nd38-result-card span {
  font-size:18px!important;
 }

 html body .nd38.nd38 button {
  font-size:19px!important;
  padding:12px!important;
 }

 .nd38-guide .nd38-guide-grid {
  grid-template-columns:1fr;
 }

 html body .nd38-guide.nd38-guide h2 {
  font-size:28px!important;
 }

 html body .nd38-guide.nd38-guide p {
  font-size:21px!important;
 }
}

@media(prefers-reduced-motion:reduce) {
 .nd38 * {
  transition:none!important;
  animation:none!important;
 }
}

/* NUJIZ DATETIME PAGE DESIGN V385 */

.nd38-page-wrap {
 width:calc(100% - 32px);
 max-width:1200px;
 margin:24px auto 50px;
 font-family:"Tajawal",Arial,sans-serif;
}

html body .nd38-page-wrap .nd38-page-hero {
 background:linear-gradient(135deg,#4c1d95,#7c3aed)!important;
 padding:38px 24px;
 border-radius:24px;
 text-align:center;
 color:#fff!important;
}

html body .nd38-page-wrap .nd38-page-hero h1 {
 font-family:"Tajawal",Arial,sans-serif!important;
 font-size:clamp(30px,4vw,44px)!important;
 font-weight:800!important;
 line-height:1.5!important;
 color:#fff!important;
 -webkit-text-fill-color:#fff!important;
 margin:20px 0!important;
}

html body .nd38-page-wrap .nd38-page-hero p {
 font-size:24px!important;
 line-height:1.9!important;
 color:#fff!important;
 -webkit-text-fill-color:#fff!important;
}

html body .nd38-page-wrap .nd38-free {
 display:inline-block;
 padding:8px 18px;
 background:#ffffff22;
 border:1px solid #ffffff55;
 border-radius:30px;
 font-size:19px!important;
 color:#fff!important;
 -webkit-text-fill-color:#fff!important;
}

.nd38-breadcrumb {
 display:flex;
 flex-wrap:wrap;
 gap:10px;
 margin:18px 0;
 font-size:18px;
}

.nd38-related-links {
 display:grid;
 grid-template-columns:repeat(2,minmax(0,1fr));
 gap:14px;
}

html body .nd38-related-links a {
 display:flex;
 align-items:center;
 min-height:65px;
 padding:16px;
 background:var(--nd-panel)!important;
 border:1px solid var(--nd-border);
 border-radius:13px;
 color:var(--nd-purple)!important;
 -webkit-text-fill-color:var(--nd-purple)!important;
 font-size:21px!important;
 font-weight:800!important;
 text-decoration:none;
}

html body .nd38-related-links a:hover {
 border-color:#8b5cf6;
}

@media(max-width:700px) {
 .nd38-page-wrap {
  width:calc(100% - 20px);
 }

 html body .nd38-page-wrap .nd38-page-hero {
  padding:26px 16px;
 }

 html body .nd38-page-wrap .nd38-page-hero p {
  font-size:21px!important;
 }

 .nd38-related-links {
  grid-template-columns:1fr;
 }
}
