/* ================
   Global Variables & Reset
   ================ */
   :root {
    /* Typography */
    --font-size: 2.6rem;
    --font-size-mobile: 1.8rem;
    --font-family-main: Verdana, Helvetica, Arial, sans-serif;
    --font-family-alt: 'Open Sans', sans-serif;
    --font-family-heading: 'Roboto', sans-serif;
    /* Colors (preserved from original) */
    --color-white: #ffffff;
    --color-black: #000000;
    --color-gray: #cccccc;
    --color-dark-gray: #262626;
    --color-light-gray: #cecece;
    --color-bg: #f8f7f4;
    --color-primary: #2196f3;
    --color-secondary: #5752ff;
    --color-success: #4CAF50;
    --color-error: #f44336;
    --color-warning: #ff9800;
    --color-text: #333333;
    --color-highlight: rgb(172, 30, 30);
    --color-green: #009578;
    --color-light-green: rgb(155, 226, 181);
    --color-dark-green: rgb(100, 174, 127);
    --color-yellow: yellowgreen;
    --color-dark-yellow: #055542;
    --color-light-yellow: #f8f7f4;
    --color-dark-bg: rgba(0, 0, 0, 0.7);
    --color-light-bg: rgb(240, 238, 234);
    /* Spacing */
    --spacing-xs: 0.1rem;
    --spacing-sm: 0.2rem;
    --spacing-md: 0.5rem;
    --spacing-lg: 1rem;
    --spacing-xl: 2rem;
    /* Borders */
    --border-radius: 0.6rem;
    --border-width: 0.1rem;
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.5s linear;
  }
  
  /* Base Reset */
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  html {
    font-size: 62.5%;
    scroll-behavior: smooth;
  }
  html, body {
    height: 100%;
    margin: 0;
    padding: 0;
  }
  body {
    font-family: var(--font-family-main);
    font-size: var(--font-size);
    color: var(--color-text);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }
  span,a,image,img {
    font-size: inherit;
  }
  img {
    width: 5%;
    height: 5%;
    margin: 0;
    padding: 0;
  }
  #athanVoice{
    width: 25%;
  }
  /* ================
     Tables (preserving original widths)
     ================ */
  .timetable {
    border-collapse: collapse;
    margin: 25px auto;
    font-size: 0.9em;
    font-family: sans-serif;
    min-width: 50%;
    vertical-align: middle;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
  }
  .timetable tr:nth-child(even){
    background-color: #f2f2f2;
  }
  .timetable tr:hover {background-color: #ddd;}
  .container {
  display: flex;
  position: relative;
  padding-left: 3.5rem;
  margin-bottom: 1.2rem;
  cursor: pointer;
  align-items: center;
  user-select: none;
}
  #awqat {
    background-color: var(--color-bg);
    width: 80rem; /* Original fixed width */
    max-width: 80%; /* Original max width */
    margin: var(--spacing-lg) auto 0;
    border: var(--border-width) inset var(--color-gray);
    padding: var(--spacing-sm) var(--spacing-lg);
    overflow: auto;
  }
  
  #timetable,
  .timetable {
    td, th,tr,span {
      font-size: var(--font-size);
      border: var(--border-width) inset var(--color-gray);
      padding: var(--spacing-xs);
    }
    
    th {
      color: var(--color-black);
      text-align: center;
      font-weight: bold;
      background-color: var(--color-bg);
    }
  }
  
  /* Special table styles */
  #timetable tr {
    transition: opacity var(--transition-medium);
  }
  
  /* ================
     Loading Animation (with original colors)
     ================ */
  .loading {
    width: 25rem;
    height: 25rem;
    margin: auto;
    color: var(--color-light-gray);
    background: var(--color-dark-gray);
    font: 95 3rem/25rem var(--font-family-heading);
    text-align: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    
    &::before {
      content: '';
      width: 25rem;
      height: 25rem;
      border: 3px solid var(--color-light-gray);
      border-right-color: transparent;
      border-bottom-color: transparent;
      border-radius: 50%;
      animation: spin 1.5s linear infinite;
    }
  }
  
  /* ================
     Prayer Time Highlights (original colors)
     ================ */
  .next-time {
    color: var(--color-highlight);
    font-weight: bold;
    position: relative;
    overflow: hidden;
    
    &::after {
      content: '';
      position: absolute;
      bottom: -0.2rem;
      left: 0;
      height: 0.15rem;
      width: 100%;
      background-color: var(--color-green);
      animation: nextPrayer 2.5s infinite ease-in-out;
      transform-origin: left;
    }
  }
  @keyframes nextPrayer {
    0%, 100% {
      transform: scaleX(0);
    }
    50% {
      transform: scaleX(1);
    }
  }
  /* ================
     Day Themes (original colors)
     ================ */
  .sadday {
    background-color: var(--color-dark-bg) !important;
    color: var(--color-white);
  }
  
  .happyday {
    background-color: var(--color-light-bg) !important;
  }
  
  /* ================
     Buttons (original colors)
     ================ */
  .button {
    width: 7.2rem;
    height: 3rem;
    padding: var(--spacing-lg);
    margin: var(--spacing-lg);
    display: inline-block;
    border: var(--border-width) solid var(--color-gray);
    border-radius: var(--border-radius);
    font-weight: bold;
    cursor: pointer;
  }
  
  .setting-button {
    background-color: var(--color-secondary);
    color: var(--color-white);
  }
  
  .update {
    background-color: var(--color-light-green);
    
    &:hover {
      background-color: var(--color-dark-green);
      color: var(--color-white);
    }
  }
.material-icons {
  display: inline !important;
  outline: none !important;
  border: none  !important;
  cursor: pointer;
  font-size: 2rem !important;
  margin: 2.5rem;
}
img{
  width: 3rem;
  height: 3rem;
  font-size: 3rem; 
}
.material-icons:hover {
  display: inline !important;
  background-color: yellowgreen;
  background-color: #ffffff;
  color: #055542;
}
 
  .arrow {
    padding: 0 2rem;
    cursor: pointer;
    color: blue;
  }
  .r-arrow {
    float: right;
  }
  .l-arrow {
    float: left;
  }
  /* ================
     Responsive Design
     ================ */
  @media screen and (max-width: 800px) {
    body {
      font-size: var(--font-size-mobile);
    }
    .next-time::after {
      margin-top: calc(0.77rem + var(--font-size-mobile));
    }  
    .timetable,
    #timetable {
      width: 95%;
      td, th,tr,span {
        font-size: var(--font-size-mobile);
      }
    }
    
    #awqat {
      width: 95%; /* Adjusted for mobile */
      max-width: 95%;
    }
    
    .taqeeb-text {
      margin: 0 1.2rem;
      max-width: 100%;
    }
    
    .row {
      max-width: 95%;
    }
  }