/* @import url('https://fonts.googleapis.com/css2?family=Cairo&display=swap'); */

:root {
  --font-size-w: 4.3vw;
  --font-size: clamp(10px, var(--font-size-w), 24px);
}

html {
  font-size: var(--font-size);
}

.text-input {
  font-size: 1rem;
}

.modal-backdrop {
  z-index: initial;
}

body,
.page,
.button,
h1,
h2,
h3,
h4,
h5,
h6,
p,
div,
ons-alert-dialog-button,
.alert-dialog-button {
  font-family: Roboto, Noto, sans-serif !important;
}

body[lang="ar"],
[lang="ar"] .page,
[lang="ar"] .button,
[lang="ar"] h1,
[lang="ar"] h2,
[lang="ar"] h3,
[lang="ar"] h4,
[lang="ar"] h5,
[lang="ar"] h6,
[lang="ar"] p,
[lang="ar"] div,
[lang="ar"] ons-alert-dialog-button,
[lang="ar"] .alert-dialog-button {
  font-family: "Cairo", sans-serif !important;
}

.islamic-text {
  color: #fff;
  font-size: 1rem;
  background-color: green;
  border-radius: 10px;
  border: solid 1px #ffec3b;
}

.popover {
  top: initial;
}

.reserve.text:not(.active) + ons-icon {
  display: none;
}

.alert-dialog {
  width: 70%;
  max-width: 380px;
}

body.ios .page__content {
  overflow-y: scroll !important;
  -webkit-overflow-scrolling: touch !important;
}

body.ios .all-pages {
  position: fixed !important;
  z-index: 5;
}

body[lang="ar"] .rtl,
body[lang="ar"] .rtl * {
  direction: rtl;
  text-align: right;
}

.dir-rtl,
.dir-rtl * {
  direction: rtl;
}

.carousel-content p {
  padding: 0 4%;
}

textarea {
  min-width: 100%;
}

.text-input--material__label {
  left: initial;
  right: 0;
}

.list-header--material {
  font-size: 1rem;
}

.w-15 {
  width: 15px;
}

.m-r-10 {
  margin-right: 10px;
}

.warning-msg {
  font-size: 0.8rem;
}

.ramadan-logo {
  margin-top: 3vh;
}

.ramadan-logo img {
  height: 25vh;
  border-radius: 50%;
}

.color-white {
  color: #ffffff;
}

.content.top-home.page__content {
  background-color: rgb(41, 121, 255) !important;
}

.awkat-row.today {
  width: 80%;
  margin: auto;
  padding: 12px 4%;
  margin-bottom: 20px;
}

.mawakit-content {
  padding-top: 45%;
}

.awkat-conent {
  width: 70%;
  margin: auto;
}

.awkat-row {
  text-align: center;
  position: relative;
  padding: 8px 4%;
  font-size: 0.8rem;
  line-height: 30px;
  overflow: hidden;
  width: 92%;
  background: linear-gradient(to right, greenyellow, rgb(255, 197, 49));
  margin-bottom: 10px;
  border-radius: 20px;
  border-color: green;
  border-style: solid;
  border-width: 1px;
}

.awkat-row.today .button {
  position: absolute;
  top: 6px;
  font-size: 0.7rem;
  color: #000;
}

.btn-left {
  left: 14px;
}

.btn-right {
  right: 14px;
}

.left {
  float: left;
}

.right {
  float: right;
}

.mawakit-container {
  background: url(img/ZK2nJD1QSKyXSCYyJiAV_app_background.png);
  background-size: auto 100%;
  background-position: center center;
  background-repeat: no-repeat;
  width: 100%;
  height: 100%;
  overflow-y: scroll;
}

.login_content {
  height: calc(100vh - 64px);
}

.references-list ons-list-item.active .ripple__background,
.boxes-list ons-list-item.active .ripple__background {
  opacity: 1 !important;
}

.schedule-input {
  width: 100%;
}

.schedule-input ons-input {
  width: 70%;
}

.schedule-input ons-button {
  width: 12%;
  padding: 0;
  height: 45px;
  line-height: 45px;
  font-size: 1rem;
}

.references {
  display: none;
}

.schedules.admin {
  display: none;
}

.isCapture .references {
  display: flex;
}

.isCapture .schedules {
  display: none;
}

.isAdmin .schedules.admin {
  display: flex;
}

form ons-input .text-input {
  color: blue;
}

.count-completed {
  font-size: 0.5rem;
  color: blueviolet;
  margin-right: 10px;
}

.boxes-list .list-item__right {
  padding: 12px 12px 0px 0;
}

.prayer-container {
  background-image: url(../img/prayer-background.jpeg);
  min-height: calc(100vh - 44px);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.ltr,
.ltr * {
  direction: ltr !important;
}

.text-bold {
  font-weight: bold;
}

.prayer-container .container {
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.prayer-content {
  margin-top: 20px;
  margin-bottom: 30px;
}

.prayer-content ons-icon {
  font-size: 0.7rem;
  color: #000;
}
.prayer-content .next-prev-btn ons-icon {
  font-size: 1rem;
}

.prayer-content-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5%;
  /* background-color: #ffec3b; */
  background-color: rgba(255, 236, 59, 0.8);
  border: solid 1px #000000;
  border-radius: 10px;
  overflow: hidden;
  padding: 0px 10px;
  margin-bottom: 10px;
  min-height: 42px;
}

.prayer-content-item input {
  border: solid 1px #000000;
  border-radius: 15px;
}

.text-center,
.text-center * {
  text-align: center !important;
}

.today-btn-redirect {
  padding: 0px;
  display: none;
}
.today-btn-redirect.active {
  display: flex;
}

.today-btn-redirect ons-button {
  padding: 0px 10px;
  border-radius: 20px;
  height: 30px;
  line-height: 0.8rem;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.location-input input {
  background: #ffffff;
}

.date-input-container {
  width: 0;
  /* height: 0; */
  overflow: hidden;
  opacity: 0;
  /* display: none; */
  position: absolute;
}

.badge {
  background-color: #ffffff;
  border-radius: 50%;
  display: inline-block;
  color: #000000;
  width: 20px;
  height: 20px;
  font-size: 11px;
  line-height: 20px;
  text-align: center !important;
  padding: 0;
  margin: 0;
}

.sun-container:before {
  content: "";
  position: absolute;
  width: 1000px;
  height: 1px;
  background-color: #fff;
  transform: ;
  top: 50%;
  left: -500px;
}

.sun-container:after {
  content: "";
  position: absolute;
  width: 1px;
  height: 1000px;
  background-color: #fff;
  transform: ;
  left: 50%;
  top: -500px;
}

.page-sun-degree .page__background,
.page-sun-degree-compass .page__background {
  background-color: #085078;
}

.sun-container {
  border: solid 1px yellow;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 2rem;
  color: yellow;
  padding: 6px;
  background-color: #085079;
}

.compass-center {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

@media (max-width: 768px) {
  .datepicker-dropdown {
    left: 5% !important;
    width: 90% !important;
  }
}

.compass-qibla-direction {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  top: 0px;
  color: #ffec3b;
}

.sun-degree-converter ons-list-header.list-header {
  background-color: #cfcd4d;
  color: #000;
  padding: 0px !important;
  font-size: 0.9rem;
  margin: 0 !important;
  font-weight: bold;
}

.times-container {
  min-width: 250px;
  width: 90%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.prayer-content-item .address {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.app-version {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px 0;
}

ons-input .text-input {
  width: 96%;
  display: inline-block;
  padding: 0px 20px;
  height: initial;
  margin: 0;
}

.input-bordered {
  border: solid 1px lightgrey;
}

ons-search-input .search-input {
  padding: 0px 30px;
  width: 96%;
  display: inline-block;
  height: 40px;
  margin: 0;
  background-color: #fff;
  min-width: 150px;
}

.list {
  font-family: inherit;
}

ons-list-item .done {
  color: darkgrey;
  font-size: 0.7rem;
  margin-right: 10px;
}

ons-list-item.completed .done {
  color: darkgreen;
}

ons-list-item .captured {
  height: 50px;
  width: auto;
  margin-right: 10px;
  display: none;
}

ons-list-item.completed .captured {
  display: inline-block;
}

.camera-icon {
  color: blueviolet;
  font-size: 0.8rem;
  margin-right: 20px;
}

.list-item .text-input--material__label {
  display: none;
}

div > .button.edit {
  width: 100%;
}

.menu-list.list {
  height: calc(100vh - 181px);
  overflow-y: scroll;
}

#page-about ons-list-item .ons-icon.fa {
  color: grey;
}

.event-info ons-list-item .center {
  color: blue;
}

#page-about ons-list-item.active .ons-icon.fa {
  color: darkgoldenrod;
}

#page-about ons-list-item:not(.active) .center .list-item__subtitle {
  display: none;
}

.complaints-input {
  width: 89%;
  min-height: 60px;
  background: none;
  border: none;
  border-bottom: solid 1px lightgray;
  border-radius: 0;
  font-size: 0.5rem;
}

ons-input,
ons-radio,
ons-checkbox,
ons-search-input {
  max-width: 100%;
}

.btn-gallery-save {
  display: none;
}

.isTeacher .btn-gallery-save {
  display: inline-block;
}

.btn-danger {
  background: #ef4430;
}

.btn.btn-xs.btn-primary {
  padding: 5px 30px;
  background: blue;
  color: #fff;
  display: inline-block;
  margin-top: 10px;
}

ons-row.photo-gallery {
  height: calc(100vh - 70px);
  overflow: hidden;
  margin-top: 3px;
  overflow-y: scroll;
}

.search_wrapper {
  flex-basis: 100px;
  margin-left: 0.25%;
  margin-right: 0.25%;
}

.search_thumbnail {
  width: 100%;
}

#create_report_form {
  width: 90%;
  margin: auto;
  margin-top: 40px;
}

#create_report_form ons-input,
#create_report_form ons-select {
  width: 100%;
}

.checkbox__checkmark:before {
  border: 1px solid blue;
}

.input-row {
  width: 100%;
  margin-bottom: 20px;
  overflow: hidden;
  padding: 5px;
  border: solid 1px darkred;
  background-image: linear-gradient(
    to left,
    rgb(37, 159, 255),
    rgb(166, 255, 250)
  );
}

.input-row .key {
  float: left;
  margin-top: 6px;
  text-align: left;
  padding: 0 15px;
  padding-left: 5px;
  font-weight: bold;
  max-width: 27%;
}

.input-row .value {
  float: left;
  width: 60%;
  margin-left: 15px;
}

#create_report_form .textarea {
  background: none;
  border: none;
  border-bottom: solid 1px #fff;
  border-radius: 0px;
}

.check-in-out.OUT {
  color: darkred;
}

#create_report_form .list-item {
  width: 50%;
  float: left;
}

#tabbar_classes .ons-tabbar__footer {
  width: 100%;
  overflow-x: scroll;
  background: #fff;
}

.tabbar__item {
  padding-right: 15px;
  padding-left: 15px;
  border-left: solid 1px darkblue;
}

.tabbar__item.active {
  color: #fff;
  background: darkred;
}

.tabbar__item.active .tabbar__label {
  color: #fff;
}

.menu-list ons-list-item.loggedIn {
  display: none;
}

body.loggedIn .menu-list ons-list-item.loggedIn:not(.teacher) {
  display: block;
}

body.loggedIn .menu-list ons-list-item.loggedOut {
  display: none;
}

.menu-list ons-list-item.teacher {
  display: none;
}

.isTeacher .menu-list ons-list-item.teacher {
  display: block;
}

body.loggedIn.isTeacher .menu-list ons-list-item:not(.teacher) {
  display: none;
}

.disabled {
  pointer-events: none;
  border: 1px solid #999999;
  background-color: #cccccc;
  color: #666666;
}

.hide {
  display: none !important;
}

.form-control {
  width: 100%;
  height: 35px;
  font-size: 1rem;
  padding: 3px 8px;
  min-width: 300px;
  max-width: 100%;
}

.arabic-form {
  width: 80%;
  margin: auto;
  direction: rtl;
}

.checkbox-inline {
  width: 100%;
  display: inline-block;
  text-align: right;
  margin: 10px 0;
}

[type="checkbox"] {
  padding: 10px;
}

.control-label {
  font-size: 0.6rem;
}

.card-title.m-t-15 {
  font-size: 0.8rem;
}

.m-t-20 {
  margin-top: 20px;
}

.m-l-10 {
  margin-left: 10px;
}

ons-list-item.list-item {
  /* border-bottom: solid 1px #eee; */
  padding: 7px 14px;
  font-size: 1rem;
}

.row {
  padding: 20px 0;
  border-bottom: solid 1px darkorchid;
}

.form-actions {
  padding: 20px 0;
}

img {
  max-width: 100%;
}

.student-img {
  margin-top: 20px;
}

.student-img img {
  width: 30%;
  border-radius: 50%;
  border: solid 1px rgba(255, 0, 0, 0.11);
}

.student-info {
  margin: auto;
  margin-top: 30px;
  text-align: left;
  width: 80%;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
}

.student-info .info {
  padding: 11px 0;
  border-bottom: solid 1px #eee;
}

.student-info .info span {
  width: 50%;
  display: inline-block;
  color: darkmagenta;
}

.student-info .info span.value {
  color: darkred;
}

.approval {
  position: absolute;
  right: 50px;
}

.approval a {
  background-color: rgb(208, 0, 0);
  color: #fff;
  padding: 3px 6px;
  border-radius: 6px;
  font-size: 0.31rem;
}

.app-logo {
  display: inline-block;
  width: 15px;
  margin-right: 5px;
}

.app-logo img {
  border-radius: 50%;
}

.menu-list ons-list-item ons-icon {
  margin-right: 10px;
}

.all-pages {
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  position: relative;
  overflow: hidden;
}

.welcome-user {
  margin-top: 30px;
  margin-bottom: 0;
  text-align: center;
}

.user-image img {
  width: 29%;
  border-radius: 50%;
  border: solid 1px #2979ff;
}

.user-image {
  text-align: center;
}

.app-status {
  text-align: center;
  /* position: absolute; */
  bottom: 0;
  width: 100%;
  background: #016fe4;
  font-size: 0.7rem;
  color: #ffffff;
}

.menu-container {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #429544;
}

.menu-list {
  background-color: transparent;
  background-image: none;
}

.menu-list ons-list-item {
  color: #fff;
}

.compass-img {
  position: relative;
  display: inline-block;
  border-radius: 50%;
  padding: 0;
  width: 100%;
  margin: auto;
  min-width: 250px;
  min-height: 250px;
}

.compass-img img {
  width: 100%;
  transform: rotate(90deg);
}

.compass-dir {
  position: absolute;
  color: #fff;
  padding: 11%;
  font-weight: bold;
}

.compass-north {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.compass-south {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.reserve-item {
  min-width: 52px;
}

.prayer-title {
  min-width: 75px;
}

.compass-east {
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.compass-west {
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.compassGroup {
  position: relative;
  padding: 25px;
  margin-left: auto;
  margin-right: auto;
  max-width: 450px;
  width: 90%;
}

.compass-qibla {
  position: absolute;
  display: flex;
  width: calc(100%);
  height: calc(100%);
  padding: 15%;
  z-index: 1;
  left: 0;
  top: 0;
  border-radius: 50%;
  transform: rotate(0deg);
  transition: transform ease 0.5s;
  align-items: center;
  justify-content: center;
}

.kaaba-icon {
  display: flex;
  width: auto;
  height: auto;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: #ffec3b;
  width: 40px;
  height: 40px;
}

.compass-qibla:before {
  position: absolute;
  content: "";
  width: 2px;
  background: #ffec3b;
  height: 50%;
  left: calc(50% + 1px);
  bottom: 0;
  transform: translate(-100%, -100%);
  z-index: -1;
}

.qibla-valid-dir,
#compassReq {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2;
  background-color: #00000080;
}

.qibla-valid-dir.active,
#compassReq.active {
  display: flex;
}

.qibla-valid-dir .btn {
  background-color: green;
  border-color: green;
  padding: 36px;
  font-size: 1rem;
}

#compassReq .button {
  padding: 36px;
  font-size: 1rem;
}

.alpha-curr-dir {
  height: 20px;
}

.alpha-container,
.magnetic-declination-container {
  position: absolute;
  top: 5px;
  left: 10px;
  display: flex;
  width: 50px;
  height: 50px;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  border: solid 2px #ffec3b;
  color: #ffec3b;
  font-weight: bold;
}

.beta-container {
  position: absolute;
  top: 5px;
  right: 10px;
  display: flex;
  width: 50px;
  height: 50px;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  border: solid 2px #ffec3b;
  color: #ffec3b;
  font-weight: bold;
}

.magnetic-declination-container {
  right: 10px;
  left: initial;
  opacity: 0.5;
  top: initial;
  bottom: 0;
  background: #000;
  border-color: #000;
}

ons-splitter {
  display: block;
  position: absolute;
  width: 100%;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  box-sizing: border-box;
  z-index: 0;
}

#mynavigator {
  transition: all 0.3s cubic-bezier(0.1, 0.7, 0.1, 1);
}

.menu-open ons-navigator {
  transform: translateX(250px);
}

.menu-open ons-splitter {
  z-index: 10;
}

.page[status-bar-fill] > .page__content {
  top: 0;
}

.toolbar__title {
  text-align: center;
  color: #1f1f21;
}

ons-toolbar *,
ons-toolbar .center {
  color: #fff;
  font-size: 1.2rem;
  fill: #fff;
}

ons-toolbar.toolbar {
  background-color: #2979ff;
}

ul.bullet-points {
  position: absolute !important;
  bottom: 7%;
  width: 100vw !important;
  height: 20px;
  z-index: 9;
  display: block;
  text-align: center;
  padding: 0;
  margin: 0;
}

.carousel-content {
  /* margin-top:11vh; */
  width: 100%;
  text-align: center;
  color: #fff;
}

.animated:not(.start) {
  display: none !important;
}

li.point {
  width: 15px;
  height: 15px;
  background: #fff;
  box-shadow: inset 0px 0px 1px darkgrey;
  display: inline-block;
  border-radius: 50%;
  margin: 0 3px;
  transition: all ease 0.3s;
}

li.point.active {
  transform: scale(1.3);
  background: yellow;
}

.skip-demos {
  position: absolute;
  z-index: 99;
  bottom: 14%;
  right: 10px;
}

.skip-demos ons-toolbar-button {
  font-size: 0.8rem;
  color: #fff;
}

ons-carousel-item {
  background-size: auto 100%;
  background-position: center center;
}

ons-list-header.list-header {
  background-color: #429544;
  color: white;
  padding: 0px !important;
  font-size: 0.9rem;
  margin: 0 !important;
}

.align-center {
  text-align: center !important;
}

.align-left {
  text-align: left;
}

.align-right {
  text-align: right;
}

.login-form {
  padding: 10px;
  margin: 0;
}

.login-form ons-input {
  margin: 5%;
  width: 90%;
}

ons-range .range__input {
  direction: ltr !important;
}

ons-row ons-input,
ons-row ons-input input {
  height: 100% !important;
  text-align: center !important;
  direction: ltr !important;
}

ons-col ons-button,
ons-col ons-button ons-icon {
  width: 100%;
  text-align: center !important;
}

.settings-input-group {
  max-width: 180px;
  min-width: 170px;
}

#calibration-modal .modal__content {
  display: flex;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
}

.calibration-message {
  background-color: green;
  padding: 15px 10px;
}

/* ========================================
   Home Details Page - Improved UX/UI
   ======================================== */

.home-details-page {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
  padding-bottom: 30px;
}

.home-details-page .container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Page Header */
.details-header {
  padding: 20px 0;
}

.details-title {
  font-size: 1.5rem;
  color: #2979ff;
  margin: 0;
  font-weight: 700;
}

.details-title ons-icon {
  margin-left: 8px;
  color: #1565c0;
}

.details-subtitle {
  font-size: 0.95rem;
  color: #666;
  margin: 8px 0 0;
}

/* Card Styles */
.details-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.details-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}

.details-card .card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: linear-gradient(135deg, #2979ff 0%, #1565c0 100%);
  color: #fff;
}

.details-card .card-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 600;
}

.details-card .card-header-title ons-icon {
  font-size: 1.2rem;
}

.details-card .card-header ons-button {
  color: #fff;
  font-size: 0.85rem;
}

.details-card .card-header ons-button ons-icon {
  margin-left: 5px;
}

.details-card .card-body {
  padding: 20px;
}

/* Collapsible Card */
.details-card .card-header.collapsible {
  cursor: pointer;
  user-select: none;
}

.details-card .collapse-icon {
  transition: transform 0.3s ease;
}

.details-card.collapsed .collapse-icon {
  transform: rotate(-180deg);
}

.details-card.collapsed .calc-body {
  display: none;
}

/* Info Grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.info-item {
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  background: #f8f9fa;
  border-radius: 10px;
  border-right: 4px solid #2979ff;
  transition: background 0.2s ease;
  overflow: hidden;
  min-width: 0;
}

.info-item:hover {
  background: #e3f2fd;
}

.info-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.info-label ons-icon {
  color: #2979ff;
  font-size: 0.9rem;
}

.info-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
  direction: ltr;
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.info-value ons-input {
  background: transparent;
  border: none;
  padding: 0;
  font-weight: 600;
}

/* Input fields for numeric data */
.info-value .info-input {
  background: transparent;
  border: none;
  padding: 0;
  font-weight: 600;
  font-size: 0.95rem;
  color: #333;
  width: 100%;
  max-width: 100%;
  font-family: 'Roboto Mono', 'Courier New', monospace;
  direction: ltr;
  text-align: left;
}

.info-value .info-input:focus {
  outline: none;
}

/* Prayer Times Grid */
.prayer-times-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.prayer-time-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.prayer-time-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.prayer-time-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}

.prayer-time-header ons-icon {
  font-size: 1.1rem;
}

/* Prayer time color themes */
.fajr-bg {
  background: linear-gradient(135deg, #4a148c 0%, #7b1fa2 100%);
}

.sunrise-bg {
  background: linear-gradient(135deg, #ff6f00 0%, #ff8f00 100%);
}

.duhr-bg {
  background: linear-gradient(135deg, #0277bd 0%, #0288d1 100%);
}

.asr-bg {
  background: linear-gradient(135deg, #00695c 0%, #00897b 100%);
}

.sunset-bg {
  background: linear-gradient(135deg, #d84315 0%, #e64a19 100%);
}

.ishaa-bg {
  background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
}

.prayer-time-body {
  padding: 12px;
  background: #fff;
}

.time-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  margin-bottom: 6px;
}

.time-row:last-child {
  margin-bottom: 0;
}

.time-row.highlight {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border: 1px solid #a5d6a7;
}

.time-label {
  font-size: 0.8rem;
  color: #666;
}

.time-value {
  font-size: 1rem;
  font-weight: 700;
  color: #333;
  direction: ltr;
}

.time-details {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #e0e0e0;
}

.detail-row {
  display: flex;
  justify-content: space-around;
  font-size: 0.75rem;
  color: #888;
  padding: 4px 0;
}

/* Interval Calculator */
.interval-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.interval-inputs {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.interval-input-group {
  flex: 1;
  min-width: 150px;
}

.interval-input-group label {
  display: block;
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 6px;
  font-weight: 500;
}

.interval-input-group ons-input {
  width: 100%;
  background: #f5f5f5;
  border-radius: 8px;
  padding: 8px 12px;
}

.interval-options {
  padding: 10px 0;
}

.interval-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  color: #555;
}

.interval-action {
  display: flex;
  justify-content: center;
}

.interval-btn {
  background: linear-gradient(135deg, #43a047 0%, #2e7d32 100%) !important;
  border-radius: 25px !important;
  padding: 12px 40px !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.interval-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4);
}

.interval-btn ons-icon {
  margin-left: 8px;
}

/* Calculation Section */
.calc-section {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.calc-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.calc-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  color: #333;
  margin: 0 0 16px;
  padding: 10px 15px;
  background: #f5f5f5;
  border-radius: 8px;
}

.calc-section-title ons-icon {
  font-size: 1rem;
}

.calc-section-title.fajr-title {
  background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
  color: #4a148c;
}

.calc-section-title.sunrise-title {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  color: #e65100;
}

.calc-section-title.duhr-title {
  background: linear-gradient(135deg, #e1f5fe 0%, #b3e5fc 100%);
  color: #01579b;
}

.calc-section-title.asr-title {
  background: linear-gradient(135deg, #e0f2f1 0%, #b2dfdb 100%);
  color: #004d40;
}

.calc-section-title.sunset-title {
  background: linear-gradient(135deg, #fbe9e7 0%, #ffccbc 100%);
  color: #bf360c;
}

.calc-section-title.ishaa-title {
  background: linear-gradient(135deg, #e8eaf6 0%, #c5cae9 100%);
  color: #1a237e;
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.calc-item {
  background: #fafafa;
  border-radius: 10px;
  padding: 12px;
  border: 1px solid #e8e8e8;
  transition: background 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
  min-width: 0;
}

.calc-item:hover {
  background: #f0f7ff;
  border-color: #90caf9;
}

.calc-item-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #2979ff;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid #e3f2fd;
}

.calc-item-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 0.8rem;
  gap: 8px;
  flex-wrap: wrap;
}

.calc-label {
  color: #888;
  flex-shrink: 0;
}

.calc-value {
  font-weight: 600;
  color: #333;
  direction: ltr;
  word-break: break-word;
  overflow-wrap: break-word;
  text-align: left;
  font-family: 'Roboto Mono', 'Courier New', monospace;
  font-size: 0.75rem;
  max-width: 100%;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .info-grid {
    grid-template-columns: 1fr;
  }
  
  .prayer-times-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .calc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .interval-inputs {
    flex-direction: column;
  }
  
  .details-title {
    font-size: 1.3rem;
  }
}

@media (max-width: 400px) {
  .prayer-times-grid {
    grid-template-columns: 1fr;
  }
}

/* Animation for cards */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.details-card {
  animation: fadeInUp 0.4s ease forwards;
}

.location-card { animation-delay: 0.1s; }
.prayer-times-card { animation-delay: 0.2s; }
.interval-card { animation-delay: 0.3s; }
.calculation-card { animation-delay: 0.4s; }

/* DataTables Buttons Styling */
.intervalData .dt-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
}

.intervalData .dt-buttons .dt-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: 'Cairo', sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.intervalData .dt-buttons .dt-button:first-child {
  background: linear-gradient(135deg, #2e7d32 0%, #388e3c 100%);
  color: white;
}

.intervalData .dt-buttons .dt-button:first-child:hover {
  background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.intervalData .dt-buttons .dt-button:nth-child(2) {
  background: linear-gradient(135deg, #1976d2 0%, #2196f3 100%);
  color: white;
}

.intervalData .dt-buttons .dt-button:nth-child(2):hover {
  background: linear-gradient(135deg, #1565c0 0%, #1976d2 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
}

.intervalData .dt-buttons .dt-button:nth-child(3) {
  background: linear-gradient(135deg, #7b1fa2 0%, #9c27b0 100%);
  color: white;
}

.intervalData .dt-buttons .dt-button:nth-child(3):hover {
  background: linear-gradient(135deg, #6a1b9a 0%, #7b1fa2 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(123, 31, 162, 0.3);
}

.intervalData .dt-buttons .dt-button:active {
  transform: translateY(0);
}

/* DataTables Table Styling */
.intervalData .table-responsive {
  margin-top: 16px;
  border-radius: 8px;
  overflow-x: auto;
  overflow-y: visible;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  -webkit-overflow-scrolling: touch;
}

.intervalData .dataTables_wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.intervalData .timesTable {
  margin-bottom: 0;
}

.intervalData .timesTable thead th {
  background: linear-gradient(135deg, #2e7d32 0%, #388e3c 100%);
  color: white;
  font-weight: 600;
  padding: 12px 8px;
  font-size: 0.85rem;
  white-space: nowrap;
  border: none;
}

.intervalData .timesTable tbody td {
  padding: 10px 8px;
  font-size: 0.85rem;
  vertical-align: middle;
}

.intervalData .dataTables_wrapper .dataTables_filter input {
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 8px 12px;
  font-family: 'Cairo', sans-serif;
  transition: border-color 0.2s ease;
}

.intervalData .dataTables_wrapper .dataTables_filter input:focus {
  border-color: #2e7d32;
  outline: none;
}

.intervalData .dataTables_wrapper .dataTables_length select {
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 6px 10px;
  font-family: 'Cairo', sans-serif;
}

.intervalData .dataTables_wrapper .dataTables_paginate .paginate_button {
  border-radius: 6px !important;
  margin: 0 2px;
}

.intervalData .dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: linear-gradient(135deg, #2e7d32 0%, #388e3c 100%) !important;
  color: white !important;
  border: none !important;
}

.intervalData .dataTables_info,
.intervalData .dataTables_length,
.intervalData .dataTables_filter {
  font-family: 'Cairo', sans-serif;
  font-size: 0.9rem;
}
