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

body {
  font-family: 'Quicksand', sans-serif;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
  position: relative;
}

#main-content {
  display: flex;
  width: 100%;
  height: 100%;
}

.left-panel {
  width: 28.57%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: white;
}

.clock-section {
  background-color: #f0f0f0;
  height: 16.67%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #ddd;
}

#clock {
  font-size: 60px;
  font-weight: 600;
  color: #0099ff;
}

.prayer-times-section {
  flex: 1;
  padding: 20px;
  background-color: white;
}

.heading-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 0 20px;
}

.heading-begin, .heading-jamat {
  font-size: 42px;
  font-weight: 600;
  color: #0099ff;
}

.heading-begin {
  margin-left: 0;
}

.heading-jamat {
  margin-right: 20px;
}

#prayer-times-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.prayer-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 20px;
  padding: 0 20px;
  font-size: 30px;
  color: #0099ff;
  font-weight: 500;
}

.prayer-name {
  text-align: left;
}

.prayer-time {
  text-align: center;
  min-width: 80px;
}

.jamaah-time {
  text-align: right;
  min-width: 80px;
}

.right-panel {
  flex: 1;
  background-color: #0099ff;
}

#salah-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0099ff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

#salah-text {
  color: white;
  text-align: center;
  padding: 40px;
  max-width: 90%;
}

#salah-text.arabic {
  font-family: 'Amiri', serif;
  font-size: 60px;
  direction: rtl;
  line-height: 1.8;
}

#salah-text.english {
  font-family: 'Quicksand', sans-serif;
  font-size: 40px;
  line-height: 1.6;
}

#warning-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background-color: #ff0000;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 60px;
  font-weight: 600;
  z-index: 999;
}

.hidden {
  display: none !important;
}

/* Install App Button Styles */
.install-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(135deg, #0099ff, #0077cc);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 153, 255, 0.4);
  transition: all 0.3s ease;
  z-index: 1000;
  font-family: 'Quicksand', sans-serif;
}

.install-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 153, 255, 0.6);
  background: linear-gradient(135deg, #0077cc, #0099ff);
}

.install-btn:active {
  transform: translateY(0);
}

.install-btn.hidden {
  display: none;
}

@media (max-width: 768px) and (orientation: portrait) {
  #main-content {
    flex-direction: column;
  }

  .left-panel {
    width: 100%;
    height: auto;
    min-height: 100vh;
  }

  .clock-section {
    height: auto;
    padding: 30px 20px;
  }

  #clock {
    font-size: 48px;
  }

  .prayer-times-section {
    padding: 20px 15px;
  }

  .heading-row {
    padding: 0 10px;
    margin-bottom: 15px;
  }

  .heading-begin, .heading-jamat {
    font-size: 28px;
  }

  .heading-jamat {
    margin-right: 10px;
  }

  #prayer-times-list {
    gap: 15px;
  }

  .prayer-row {
    padding: 0 10px;
    font-size: 24px;
    gap: 15px;
  }

  .prayer-time, .jamaah-time {
    min-width: 60px;
  }

  .right-panel {
    display: none;
  }

  #salah-text.arabic {
    font-size: 40px;
    line-height: 1.6;
  }

  #salah-text.english {
    font-size: 28px;
    line-height: 1.5;
  }

  #warning-banner {
    height: 60px;
    font-size: 32px;
  }

  /* Mobile responsive install button */
  .install-btn {
    bottom: 15px;
    right: 15px;
    padding: 10px 20px;
    font-size: 14px;
  }
}

@media (max-width: 768px) and (orientation: landscape) {
  #main-content {
    flex-direction: column;
  }

  .left-panel {
    width: 100%;
    height: 100%;
  }

  .clock-section {
    height: auto;
    padding: 20px 15px;
  }

  #clock {
    font-size: 36px;
  }

  .prayer-times-section {
    padding: 15px 10px;
  }

  .heading-row {
    padding: 0 10px;
    margin-bottom: 10px;
  }

  .heading-begin, .heading-jamat {
    font-size: 22px;
  }

  .heading-jamat {
    margin-right: 10px;
  }

  #prayer-times-list {
    gap: 10px;
  }

  .prayer-row {
    padding: 0 10px;
    font-size: 18px;
    gap: 10px;
  }

  .prayer-time, .jamaah-time {
    min-width: 50px;
  }

  .right-panel {
    display: none;
  }

  #salah-text.arabic {
    font-size: 36px;
    line-height: 1.5;
  }

  #salah-text.english {
    font-size: 24px;
    line-height: 1.4;
  }

  #warning-banner {
    height: 50px;
    font-size: 28px;
  }

  /* Landscape install button */
  .install-btn {
    bottom: 10px;
    right: 10px;
    padding: 8px 16px;
    font-size: 12px;
  }
}

@media (max-width: 480px) and (orientation: portrait) {
  #clock {
    font-size: 36px;
  }

  .heading-begin, .heading-jamat {
    font-size: 22px;
  }

  .prayer-row {
    font-size: 20px;
    gap: 10px;
  }

  .prayer-time, .jamaah-time {
    min-width: 50px;
  }

  #salah-text.arabic {
    font-size: 32px;
  }

  #salah-text.english {
    font-size: 22px;
  }

  #warning-banner {
    height: 50px;
    font-size: 24px;
    padding: 0 10px;
  }

  /* Small screen install button */
  .install-btn {
    bottom: 10px;
    right: 10px;
    padding: 8px 16px;
    font-size: 12px;
  }
}