 :root {
  --primary-color: #7e57c2;
  --primary-light: #b085f5;
  --primary-dark: #4d2c91;
  --primary-gradient: linear-gradient(135deg, #7e57c2, #4d2c91);
  --background-light: #f8f9fa;
  --background-dark: #121212;
  --surface-light: #ffffff;
  --surface-dark: #1e1e1e;
  --text-light: #333333;
  --text-dark: #ffffff;
  --text-secondary-light: #666666;
  --text-secondary-dark: #bbbbbb;
  --shadow-color: rgba(126, 87, 194, 0.15);
  --shadow-color-dark: rgba(0, 0, 0, 0.2);
  --transition-speed: 0.3s;
  --border-radius: 16px;
  --header-height: 64px;
  --footer-height: 84px;
  --card-gap: 20px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
  background-color: #f5f5f8;
  color: var(--text-light);
  transition: background-color var(--transition-speed), color var(--transition-speed);
  padding-bottom: var(--footer-height);
  min-height: 100vh;
}

/* Image Gallery Grid */
.image-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: calc(var(--header-height) + 1rem) 2rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  margin-bottom: calc(var(--footer-height) + 50px);
}

/* Gallery Items */
.gallery-item {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  background: var(--surface-light);
  box-shadow: 0 4px 20px var(--shadow-color);
  transition: all var(--transition-speed) ease;
  aspect-ratio: 1 / 1;
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--shadow-color);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius);
  display: block;
  transition: all var(--transition-speed) ease;
}
	.language-switcher {
  background-color: transparent;
  display: inline-block;
}

.language-switcher img {
  max-width: 20px;
  height: auto;
  vertical-align: middle;
}

/* Media Queries */
@media screen and (max-width: 1200px) {
  .image-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 900px) {
  .image-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 600px) {
  .image-gallery {
    grid-template-columns: 1fr;
  }
  
  .gallery-item{
    max-width: 100%;
  }
}
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: white;
  padding: 0 1.5rem;
  height: var(--header-height);
  box-shadow: 0 2px 10px var(--shadow-color);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color var(--transition-speed);
}

.ultimate_ar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.ultimate_ar h1 {
  font-size: 1.5rem;
  color: var(--primary-color);
  font-weight: 600;
  transition: color var(--transition-speed);
}






.profile-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  font-weight: bold;
  transition: transform var(--transition-speed);
}

.profile-icon:hover {
  transform: scale(1.05);
}



/* Footer Navigation */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--footer-height);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 -2px 10px var(--shadow-color);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: background-color var(--transition-speed);
}
.small-container:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 24px var(--shadow-color-dark);
}



.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.5rem 1.5rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition-speed) ease;
}



.card-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
}

.card-text {
  font-size: 0.9rem;
  color: var(--text-secondary-light);
  line-height: 1.4;
}

.card-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.8rem;
}

.card-stats {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-secondary-light);
}

.card-stats span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Full Page Detail View */
.fullPageDiv {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--surface-light);
  z-index: 1001;
  padding: 2rem;
  overflow-y: auto;
  transition: transform var(--transition-speed), opacity var(--transition-speed);
}

.fullPageDiv.hidden {
  display: none;
}

.close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-secondary-light);
  transition: color var(--transition-speed);
  z-index: 2;
}

.close-btn:hover {
  color: var(--primary-color);
}

.theschedule {
  max-width: 800px;
  margin: 0 auto;
  padding-top: 2rem;
}

.theschedule h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
  font-weight: 600;
}

.routine-detail {
  display: flex;
  padding: 1.2rem 1rem;
  border-bottom: 1px solid #eee;
  gap: 1.5rem;
  transition: background-color var(--transition-speed);
}

.routine-detail:hover {
  background-color: rgba(126, 87, 194, 0.05);
}

.time {
  font-weight: 600;
  min-width: 100px;
  color: var(--primary-color);
}

.activity {
  color: var(--text-light);
  line-height: 1.5;
}

/* Action Buttons */
.download-btn {
  position: absolute;
  top: 1.5rem;
  right: 5rem;
  background: var(--primary-gradient);
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-speed);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px var(--shadow-color);
}


.footer-nav {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 1rem;
  padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
}

.footer-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-secondary-light);
  text-decoration: none;
  gap: 0.4rem;
  transition: all var(--transition-speed);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.footer-item span {
  font-size: 0.75rem;
  font-weight: 500;
}

.footer-item svg {
  transition: all var(--transition-speed);
}

.footer-item:hover {
  color: var(--primary-color);
}

.footer-item.active {
  color: var(--primary-color);
}

.footer-item-center {
  transform: translateY(-20px);
}

.add-button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary-gradient);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(126, 87, 194, 0.4);
  transition: all var(--transition-speed);
}

.add-button:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 16px rgba(126, 87, 194, 0.5);
}

.add-button:active {
  transform: scale(0.95);
}

/* Dark Mode Styles */
body.dark-mode {
  background-color: var(--background-dark);
  color: var(--text-dark);
}

body.dark-mode header,
body.dark-mode .footer {
  background-color: rgba(30, 30, 30, 0.98);
}

body.dark-mode .ultimate_ar h1 {
  color: var(--primary-light);
}

body.dark-mode .smallcontainer {
  background: var(--surface-dark);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

body.dark-mode .card-title {
  color: var(--primary-light);
}

body.dark-mode .card-text,
body.dark-mode .card-stats,
body.dark-mode .time {
  color: var(--text-secondary-dark);
}

body.dark-mode .routine-detail {
  border-bottom-color: #333;
}

body.dark-mode .routine-detail:hover {
  background-color: rgba(126, 87, 194, 0.1);
}

body.dark-mode .language-switcher button {
  border-color: #444;
  color: var(--text-secondary-dark);
}

body.dark-mode #gt_white_content {
  background: var(--surface-dark) !important;
}

body.dark-mode .gtlink {
  color: var(--text-dark) !important;
}

body.dark-mode .gtlink:hover {
  background-color: rgba(126, 87, 194, 0.15) !important;
}

body.dark-mode .close-btn {
  color: var(--text-secondary-dark);
}

body.dark-mode .fullPageDiv {
  background: var(--surface-dark);
}

body.dark-mode .activity {
  color: var(--text-dark);
}

body.dark-mode .footer-item {
  color: #999;
}


@media (max-width: 768px) {
  :root {
    --header-height: 56px;
    --card-gap: 14px;
  }
  
  header {
    padding: 0 1rem;
  }
  
  .ultimate_ar h1 {
    font-size: 1.3rem;
  }
  
  .language-switcher {
    margin-right: 1rem;
  }
  
  .language-switcher button {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
  
  .gt_switcher-popup {
    width: 180px !important;
  }
  
  .gtlink {
    padding: 0.4rem 0.8rem !important;
    font-size: 0.8rem !important;
  }
  
 
  
  .card-content {
    padding: 0.8rem;
  }
  
  .card-title {
    font-size: 0.9rem;
  }
  
  .card-text {
    font-size: 0.8rem;
  }
  
  .footer-nav {
    max-width: 100%;
  }
  
  .add-button {
    width: 50px;
    height: 50px;
  }
  
  .download-btn {
    top: 1rem;
    right: 4rem;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  
  .close-btn {
    top: 1rem;
    right: 1rem;
  }
  
  .fullPageDiv {
    padding: 1.5rem;
  }
  
  .theschedule h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .routine-detail {
    padding: 1rem 0.5rem;
    gap: 1rem;
  }
  
  .time {
    min-width: 80px;
    font-size: 0.9rem;
  }
  
  .activity {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  :root {
    --card-gap: 12px;
  }


  .profile-icon {
    width: 36px;
    height: 36px;
  }
  
  .language-switcher {
    margin-right: 0.8rem;
  }
  
  .ultimate_ar {
    gap: 1rem;
  }
  
  .footer-item span {
    font-size: 0.7rem;
  }
  
  .download-btn {
    right: 3.5rem;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }

  .gt_switcher-popup {
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    border-radius: 0 !important;
  }
}

/* Animations and Effects */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}


/* Fixed Header Icons */
.header-icons {
  display: flex;
  align-items: center;
}

/* Theme Toggle Animation */
.theme-toggle {
  cursor: pointer;
  margin-left: 1rem;
}

.theme-toggle svg {
  transition: transform 0.5s ease;
}

.theme-toggle:hover svg {
  transform: rotate(90deg);
}



@keyframes loading {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Add transitions for smoother interactions */
.fullPageDiv {
  opacity: 0;
  transform: translateY(20px);
  animation: slideIn 0.3s forwards;
}

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}