/* Base styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --background: #f8fafc;
  --foreground: #0f172a;
  --primary: #007860;
  --primary-foreground: #ffffff;
  --secondary: #f1f5f9;
  --secondary-foreground: #334155;
  --muted: #f1f5f9;
  --muted-foreground: #64748b;
  --accent: #e2e8f0;
  --accent-foreground: #0f172a;
  --destructive: #ef4444;
  --destructive-foreground: #ffffff;
  --border: #e2e8f0;
  --input: #e2e8f0;
  --ring: #0078609f;
  --radius: 1rem;
  --sidebar-width: 260px;
  --sidebar-width-collapsed: 80px;
  --sidebar-padding: 1.5rem;
  --main-padding: 2rem;
  --header-height: 60px;
}

/* Dark theme colors - can be activated by adding dark class to body */
.dark {
  --background: #0f172a;
  --foreground: #f8fafc;
  --primary: #3b82f6;
  --primary-foreground: #ffffff;
  --secondary: #1e293b;
  --secondary-foreground: #f8fafc;
  --muted: #1e293b;
  --muted-foreground: #94a3b8;
  --accent: #334155;
  --accent-foreground: #f8fafc;
  --destructive: #ef4444;
  --destructive-foreground: #ffffff;
  --border: #1e293b;
  --input: #1e293b;
  --ring: #3b82f6;
}
/* :root {
  --card-background: #ffffff;
  --card-border-color: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --card-background: #2b2b2b; 
    --card-border-color: #2c2c2c; 
  }
}
:root {
    --background: rgb(233, 233, 233);
    --color: #000000;
  }

  body {
    background-color: var(--background);
    color: var(--color);
  }

  .darko {
    --background: #000000;
    --color: rgb(233, 233, 233);
  }

  @media (prefers-color-scheme: dark) {
    :root {
      --background: #000000;
      --color: rgb(233, 233, 233);
    }
  }

  .light {
    --background: rgb(233, 233, 233);
    --color: #000000;
  } */

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

html, body {
  height: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* App layout */
.app {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background-color: var(--secondary);
  padding: var(--sidebar-padding);
  height: 100vh;
  overflow-y: auto;
  transition: transform 0.3s ease;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 20;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.logo-icon {
  width: 36px;
  height: 36px;
}

.logo h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
}

nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

nav a {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-weight: 500;
  color: var(--secondary-foreground);
  transition: background-color 0.2s, color 0.2s;
}

nav a svg {
  width: 1.25rem;
  height: 1.25rem;
}

nav a.active {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

nav a:not(.active):hover {
  background-color: var(--accent);
}

/* Hamburger menu button */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  position: fixed;
  top: 1.25rem;
  right: 1.25rem; /* Changed from left to right */
  z-index: 30;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.625rem;
  border-radius: 0.375rem;
  background-color: var(--background);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--foreground);
  margin: 4px 0;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Main content */
.main-content {
  grid-column: 2;
  padding: var(--main-padding);
  min-height: 100vh;
  overflow-y: auto;
}

header {
  margin-bottom: 2rem;
}

header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.date {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: 1rem;
  color: var(--primary);
  font-weight: 500;
}

.location svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Current time display */
.current-time {
  background-color: var(--secondary);
  padding: 2rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(109.6deg, rgba(223,234,247,1) 11.2%, rgba(244,248,252,1) 91.1%);
}

.time {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.date-details {
  font-size: 1.125rem;
  color: var(--secondary-foreground);
  margin-bottom: 1rem;
}

.islamic-date {
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.calendar-type {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.current-prayer {
  margin-top: 1rem;
  font-weight: 500;
  color: var(--foreground);
}

/* Prayer times section */
.prayer-times {
  background-color: var(--background);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}

.section-header {
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.section-header h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.section-header h2 svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
}

.tabs {
  display: flex;
  gap: 0.5rem;
}

.tabs button {
  background-color: var(--muted);
  color: var(--muted-foreground);
  border: none;
  border-radius: var(--radius);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.tabs button.active {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.times-container {
  padding: 1.5rem;
}

.prayer-grid {
  list-style: none;
  display: grid;
  gap: 1rem;
}

.prayer-grid li {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 1rem;
  background-color: var(--secondary);
  border-radius: var(--radius);
  position: relative;
}

.prayer-grid li.next-prayer {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.loading-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
}

.progress {
  height: 100%;
  background-color: rgba(255, 255, 255, 0.6);
  width: 0;
  transition: width 1s linear;
}

/* Responsive styles */
@media screen and (max-width: 768px) {
  :root {
    --sidebar-width: 260px;
    --main-padding: 1.5rem;
  }

  .app {
    grid-template-columns: 1fr;
  }

  .main-content {
    grid-column: 1;
    padding-top: calc(var(--main-padding) + 3.5rem);
    padding-right: calc(var(--main-padding) + 1.5rem); /* Added padding on the right for the hamburger button */
  }

  .hamburger {
    display: block;
  }

  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .current-time {
    padding: 1.5rem;
  }

  .time {
    font-size: 2.5rem;
  }
}

@media screen and (max-width: 480px) {
  :root {
    --main-padding: 1rem;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .tabs {
    width: 100%;
  }

  .tabs button {
    flex: 1;
    text-align: center;
  }

  .time {
    font-size: 2rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.prayer-grid li {
  animation: fadeIn 0.3s ease-out;
}

/* Glass morphism effect for cards */
.glass-card {
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
}



/*  */

/* Base styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --background: #f8fafc;
  --foreground: #0f172a;
  --primary: #007860;
  --primary-foreground: #ffffff;
  --secondary: #f1f5f9;
  --secondary-foreground: #334155;
  --muted: #f1f5f9;
  --muted-foreground: #64748b;
  --accent: #e2e8f0;
  --accent-foreground: #0f172a;
  --destructive: #ef4444;
  --destructive-foreground: #ffffff;
  --border: #e2e8f0;
  --input: #e2e8f0;
  --ring: #0078609f;
  --radius: 1rem;
  --sidebar-width: 260px;
  --sidebar-width-collapsed: 80px;
  --sidebar-padding: 1.5rem;
  --main-padding: 2rem;
  --header-height: 60px;
}

/* Dark theme colors - activated by adding 'dark' class to body */
body.dark {
  --background: #191a1d;
  --foreground: #f8fafc;
  --primary: #007860;
  --primary-foreground: #ffffff;
  --secondary: #333435;
  --secondary-foreground: #f8fafc;
  --muted: #3a3a3b;
  --muted-foreground: #a4abb4;
  --accent: #313233;
  --accent-foreground: #f8fafc;
  --destructive: #ef4444;
  --destructive-foreground: #ffffff;
  --border: #4d4d4d;
  --input: #393b3d;
  --ring: #00786067;
}

/* Light theme colors - activated by adding 'light' class to body */
body.light {
  --background: #f8fafc;
  --foreground: #0f172a;
  --primary: #007860;
  --primary-foreground: #ffffff;
  --secondary: #f1f5f9;
  --secondary-foreground: #334155;
  --muted: #f1f5f9;
  --muted-foreground: #64748b;
  --accent: #e2e8f0;
  --accent-foreground: #0f172a;
  --destructive: #ef4444;
  --destructive-foreground: #ffffff;
  --border: #e2e8f0;
  --input: #e2e8f0;
  --ring: #0078609f;
}

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

html, body {
  height: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* App layout */
.app {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background-color: var(--secondary);
  padding: var(--sidebar-padding);
  height: 100vh;
  overflow-y: auto;
  transition: transform 0.3s ease;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 20;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.logo-icon {
  width: 36px;
  height: 36px;
}

.logo h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--foreground);
}

nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

nav a {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-weight: 500;
  color: var(--secondary-foreground);
  transition: background-color 0.2s, color 0.2s;
}

nav a svg {
  width: 1.25rem;
  height: 1.25rem;
}

nav a.active {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

nav a:not(.active):hover {
  background-color: var(--accent);
}

/* Hamburger menu button */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 30;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.625rem;
  border-radius: 0.375rem;
  background-color: var(--secondary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--foreground);
  margin: 4px 0;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Main content */
.main-content {
  grid-column: 2;
  padding: var(--main-padding);
  min-height: 100vh;
  overflow-y: auto;
}

header {
  margin-bottom: 2rem;
}

header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.date {
  color: var(--primary);
  font-size: 0.875rem;
}

.location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: 1rem;
  color: var(--primary);
  font-weight: 500;
}

.location svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Current time display */
.current-time {
  background-color: var(--secondary);
  padding: 2rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(109.6deg, rgba(223,234,247,1) 11.2%, rgba(244,248,252,1) 91.1%);
}

body.dark .current-time {
  background-image: linear-gradient(109.6deg, rgba(30,41,59,1) 11.2%, rgba(51,65,85,1) 91.1%);
}

.time {
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.date-details {
  font-size: 1.125rem;
  color: var(--secondary-foreground);
  margin-bottom: 1rem;
}

.islamic-date {
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.calendar-type {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.current-prayer {
  margin-top: 1rem;
  font-weight: 500;
  color: var(--foreground);
}

/* Prayer times section */
.prayer-times {
  background-color: var(--background);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}

.section-header {
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.section-header h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.section-header h2 svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
}

.tabs {
  display: flex;
  gap: 0.5rem;
}

.tabs button {
  background-color: var(--muted);
  color: var(--muted-foreground);
  border: none;
  border-radius: var(--radius);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.tabs button.active {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.times-container {
  padding: 1.5rem;
}

.prayer-grid {
  list-style: none;
  display: grid;
  gap: 1rem;
}

.prayer-grid li {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 1rem;
  background-color: var(--secondary);
  border-radius: var(--radius);
  position: relative;
}

.prayer-grid li.next-prayer {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.loading-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
}

.progress {
  height: 100%;
  background-color: rgba(255, 255, 255, 0.6);
  width: 0;
  transition: width 1s linear;
}

/* Theme select styling */
.theme-select {
  padding: 0.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background-color: var(--secondary);
  color: var(--foreground);
  font-size: 1rem;
}

/* Responsive styles */
@media screen and (max-width: 768px) {
  :root {
    --sidebar-width: 260px;
    --main-padding: 1.5rem;
  }

  .app {
    grid-template-columns: 1fr;
  }

  .main-content {
    grid-column: 1;
    padding-top: calc(var(--main-padding) + 3.5rem);
    padding-right: calc(var(--main-padding) + 1.5rem);
  }

  .hamburger {
    display: block;
  }

  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .current-time {
    padding: 1.5rem;
  }

  .time {
    font-size: 2.5rem;
  }
}

@media screen and (max-width: 480px) {
  :root {
    --main-padding: 1rem;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .tabs {
    width: 100%;
  }

  .tabs button {
    flex: 1;
    text-align: center;
  }

  .time {
    font-size: 2.2rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.prayer-grid li {
  animation: fadeIn 0.3s ease-out;
}

/* Glass morphism effect for cards */
.glass-card {
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
}



#compass { 
  width: 300px; 
  height: 300px; 
  margin: 20px auto; 
  color: var(--primary);
  background-color: var(--primary);
  border: var(--primary);
  border-radius: 2.5rem;
  justify-content: center;
  justify-items: center;
  align-items: center;
}


/* overlay */

#mms-overlay {
    position: fixed;
    bottom: 20px;
    right: -200px; /* Start off-screen */
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 8px 15px 8px 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    display: flex;
    align-items: center;
    transition: all 0.5s ease;
    border: 1px solid #e0e0e0;
    animation: slideIn 1s forwards 2s; /* Animation will start after 2 seconds */
  }
  
  @keyframes slideIn {
    to {
      right: 20px;
    }
  }



  /* #mms-overlay {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 8px 15px 8px 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
  }
   */
  #mms-overlay:hover {
    background-color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
  }
  
  .mms-logo {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    border-radius: 50%;
  }
  
  #mms-overlay a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 14px;
    font-weight: 500;
  }
  
  #mms-overlay a:hover {
    color: #000;
  }

/* Weather Page Specific Styles */
.search-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.search-box {
  display: flex;
  position: relative;
}

.search-box input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(0, 120, 96, 0.2);
}

.search-box button {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary-color);
}

.location-toggle button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--secondary);
  color: var(--secondary-foreground);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.3s ease;
}

.location-toggle button:hover {
  background: #00634f;
}

.current-weather {
  background: var(--secondary);
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.weather-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
}

.last-updated {
  font-size: 0.8rem;
  color: var(--secondary-foreground);
}

.weather-main {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.weather-icon {
  flex: 0 0 100px;
}

.weather-icon img {
  width: 100px;
  height: 100px;
filter: brightness(0) saturate(100%) invert(27%) sepia(98%) saturate(374%) hue-rotate(122deg) brightness(93%) contrast(85%);
}

.weather-temp {
  flex: 1;
}

.current-temp {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.weather-desc {
  font-size: 1.2rem;
  color: var(--accent-foreground);
  text-transform: capitalize;
}

.weather-details {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.hourly-forecast, 
.daily-forecast,
.weather-charts,
.air-quality {
  background: var(--secondary);
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.hourly-container {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding: 0.5rem 0;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) #f1f1f1;
}

.hourly-container::-webkit-scrollbar {
  height: 6px;
}

.hourly-container::-webkit-scrollbar-track {
  background: var(--secondary);
  border-radius: 10px;
}

.hourly-container::-webkit-scrollbar-thumb {
  background-color: var(--primary-color);
  border-radius: 10px;
}

.hourly-item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background: var(--secondary);
  min-width: 70px;
}

.hourly-item.active {
  background: var(--secondary);
  color: var(--primary-color);
}

.hourly-time {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.hourly-icon img {
  width: 40px;
  height: 40px;
  color: var(--primary);
  filter: var(--primary);
filter: brightness(0) saturate(100%) invert(27%) sepia(98%) saturate(374%) hue-rotate(122deg) brightness(93%) contrast(85%);
}

.hourly-temp {
  font-weight: 600;
  margin-top: 0.5rem;
}

.daily-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.daily-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  border-bottom: 1px solid #eee;
}

.daily-item:last-child {
  border-bottom: none;
}

.daily-day {
  font-weight: 600;
  flex: 0 0 100px;
}

.daily-icon {
  flex: 0 0 40px;
  text-align: center;
}

.daily-icon img {
  width: 30px;
  height: 30px;
  filter: brightness(0) saturate(100%) invert(27%) sepia(98%) saturate(374%) hue-rotate(122deg) brightness(93%) contrast(85%);
}

.daily-temps {
  display: flex;
  gap: 1rem;
}

.daily-high {
  font-weight: 600;
  color: #e63946;
}

.daily-low {
  color: #457b9d;
}

.chart-container {
  margin-top: 1rem;
  height: 200px;
}

.air-quality-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.aqi-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
}

.aqi-level {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.aqi-description {
  color: var(--secondary-foreground);
}

.aqi-components {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.aqi-component {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem;
  background: var(--secondary);
  border-radius: 6px;
}

.aqi-component-name {
  font-weight: 600;
}

.aqi-component-value {
  color: var(--primary-color);
}

@media (max-width: 768px) {
  .weather-main {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .weather-details {
    grid-template-columns: 1fr;
  }
  
  .hourly-container {
    padding-bottom: 1rem;
  }
  
  .aqi-components {
    grid-template-columns: 1fr;
  }
}



/* Masjid Finder Specific Styles */
.map-container {
  margin-bottom: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.masjid-list .list-container {
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
}

.masjid-card {
  background-color: var(--secondary);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: grid;
  gap: 0.75rem;
  position: relative;
  animation: fadeIn 0.3s ease-out;
}

.masjid-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
}

.masjid-card .distance {
  color: var(--primary);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.masjid-card .address {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.masjid-card .features {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.masjid-card .feature-tag {
  background-color: var(--accent);
  color: var(--accent-foreground);
  padding: 0.25rem 0.5rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.masjid-card .actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.masjid-card .actions button {
  flex: 1;
  padding: 0.5rem;
  border-radius: var(--radius);
  border: none;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.masjid-card .actions button.primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.masjid-card .actions button.secondary {
  background-color: var(--muted);
  color: var(--muted-foreground);
}

.masjid-card .actions button:hover {
  opacity: 0.9;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  padding: 1.5rem;
}

.feature-card {
  background-color: var(--secondary);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.feature-card .feature-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card .feature-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.feature-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.feature-card p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media screen and (max-width: 480px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .masjid-card .actions {
    flex-direction: column;
  }
}


















/* Location Search Styles */
.location-wrapper {
  margin-bottom: 2rem;
  position: relative;
}

.location {
  margin-bottom: 0; /* Override previous margin */
}

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted-foreground);
  padding: 0.5rem;
  border-radius: 50%;
  transition: background-color 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-btn:hover {
  background-color: var(--accent);
  color: var(--primary);
}

.location-search {
  background-color: var(--secondary);
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  animation: fadeIn 0.2s ease-out;
}

.search-input-group {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

#city-search-input {
  flex: 1;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background-color: var(--background);
  color: var(--foreground);
  font-size: 0.9rem;
  outline: none;
}

#city-search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--ring);
}

.search-results {
  list-style: none;
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 0.5rem;
  display: none; /* Hidden until results exist */
}

.search-results.has-results {
  display: block;
}

.search-results li {
  padding: 0.75rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  transition: background-color 0.2s;
}

.search-results li:last-child {
  border-bottom: none;
}

.search-results li:hover {
  background-color: var(--accent);
}

.gps-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.5rem;
  margin-top: 0.5rem;
}

.gps-btn:hover {
  text-decoration: underline;
}


















/* Search Wrapper to position the dropdown */
.search-wrapper {
  position: relative;
  flex: 1;
}

/* Suggestions Dropdown */
.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--secondary); /* Matches your theme */
  border: 1px solid var(--border);
  border-radius: 0 0 8px 8px;
  max-height: 250px;
  overflow-y: auto;
  z-index: 1000;
  list-style: none;
  display: none; /* Hidden by default */
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  margin-top: 4px;
}

.search-results.has-results {
  display: block;
}

.search-results li {
  padding: 10px 15px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--foreground);
  transition: background-color 0.2s;
}

.search-results li:last-child {
  border-bottom: none;
}

.search-results li:hover {
  background-color: var(--primary);
  color: #fff;
}

/* Ensure search box inputs match the theme */
.search-box input {
  width: 100%;
  background-color: var(--background);
  color: var(--foreground);
}






















