* {
  font-family:
    "Roboto",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  box-sizing: border-box;
}

/* Performance optimization - use transform3d to enable GPU acceleration */
body {
  background-image: url("./11.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  margin: 0;
  padding: 0 20px;
  /* Enable smooth scrolling */
  scroll-behavior: smooth;
  /* Prevent font loading layout shift */
  text-rendering: optimizeSpeed;
}

/* Shortcut Container Styles with Performance Optimizations */
.shortcut_container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80px;
  height: 80px;
  margin: 10px;
  text-align: center;
  border-radius: 14px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: grab;
  will-change: transform;
  /* Performance: Use transform3d for GPU acceleration */
  transform: translate3d(0, 0, 0);
  /* Add initial animation */
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Staggered animation for shortcuts */
.shortcut_container:nth-child(1) {
  animation-delay: 0.1s;
}
.shortcut_container:nth-child(2) {
  animation-delay: 0.2s;
}
.shortcut_container:nth-child(3) {
  animation-delay: 0.3s;
}
.shortcut_container:nth-child(4) {
  animation-delay: 0.4s;
}
.shortcut_container:nth-child(5) {
  animation-delay: 0.5s;
}
.shortcut_container:nth-child(6) {
  animation-delay: 0.6s;
}
.shortcut_container:nth-child(7) {
  animation-delay: 0.7s;
}
.shortcut_container:nth-child(8) {
  animation-delay: 0.8s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.shortcut_container:hover {
  background-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transform: translate3d(0, -2px, 0) scale(1.02);
  backdrop-filter: blur(10px);
}

/* Drag and drop styles */
.shortcut_container[draggable="true"] {
  cursor: grab;
}

.shortcut_container[draggable="true"]:active {
  cursor: grabbing;
}

.shortcut_container.dragging {
  opacity: 0.6;
  transform: rotate(5deg) scale(1.05) translate3d(0, 0, 0);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

.shortcut_container.drag-over {
  transform: scale(1.1) translate3d(0, -5px, 0);
  border: 2px dashed #007acc;
  background-color: rgba(0, 122, 204, 0.15);
  box-shadow: 0 10px 30px rgba(0, 122, 204, 0.3);
}

/* Shortcut Icon Link Styles */
.shortcut_container .shortcut-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  border-radius: 14px;
  padding: 8px;
  box-sizing: border-box;
  transition: all 0.2s ease-in-out;
}

.shortcut_container:not(.dragging) .shortcut-icon {
  pointer-events: auto;
}

.shortcut_container.dragging .shortcut-icon {
  pointer-events: none; /* Prevent link clicks during drag */
}

/* Icon Image Styles with Performance Optimization */
.shortcut_container .icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-bottom: 4px;
  transition: all 0.2s ease-in-out;
  border-radius: 8px;
  display: block;
  aspect-ratio: 1;
  /* Performance: Use transform3d for GPU acceleration */
  transform: translate3d(0, 0, 0);
  /* Optimize image rendering */
  image-rendering: -webkit-optimize-contrast;
}

.shortcut_container:hover .icon {
  transform: scale(1.1) translate3d(0, 0, 0);
  filter: brightness(1.1);
}

.shortcut_container.dragging .icon {
  transform: scale(0.95) translate3d(0, 0, 0);
}

/* Label Styles */
.shortcut_container .shortcut-icon span {
  font-size: 0.75rem;
  font-weight: 500;
  color: #2d3748;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
  line-height: 1.2;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: all 0.2s ease-in-out;
}

.shortcut_container:hover .shortcut-icon span {
  color: #1a202c;
  transform: translateY(-1px);
}

/* Edit Button Styles */
.shortcut_container .delte-edit-tab {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #4a5568;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
}

.shortcut_container .delte-edit-tab.hidden {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8);
}

.shortcut_container .delte-edit-tab.visible {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.shortcut_container:hover .delte-edit-tab {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.shortcut_container .delte-edit-tab:hover {
  background-color: #f7fafc;
  border-color: #cbd5e0;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Add Shortcut Button Styles */
.add-shortcut-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80px;
  height: 80px; /* Fixed height to prevent layout shift */
  margin: 10px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  justify-content: center;
}

.add-shortcut-container:hover {
  transform: translateY(-2px);
}

.add-shortcut-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  color: white;
  font-size: 1.2rem;
  font-weight: 300;
  cursor: pointer;
  margin-bottom: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.add-shortcut-button:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
  background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
}

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

/* AddShortcut Form Container */
.AddShortcut_routeContainer {
  flex-shrink: 0;
  box-sizing: border-box;
}

/* Prevent layout shift on form show/hide */
.AddShortcut_routeContainer > * {
  white-space: nowrap;
  overflow: hidden;
}

/* Skeleton Loading Styles */
.skeleton {
  animation: skeleton-loading 1.5s infinite ease-in-out;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.1) 25%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0.1) 75%
  );
  background-size: 200% 100%;
}

.skeleton-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  margin-bottom: 4px;
  background-color: rgba(255, 255, 255, 0.2);
}

.skeleton-text {
  width: 60px;
  height: 12px;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.2);
}

@keyframes skeleton-loading {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Performance optimization for all animated elements */
.shortcut_container,
.card,
.weather-widget,
.inputContainer,
.routeContainer {
  backface-visibility: hidden;
  /* perspective: 1000px; */
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .shortcut_container,
  .card,
  .weather-widget,
  .inputContainer,
  .routeContainer {
    animation: none;
    transition: none;
  }
}

/* .add-shortcut-container span {
  font-size: 0.75rem;
  font-weight: 500;
  color: #4a5568;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
  transition: color 0.2s ease-in-out;
}

.add-shortcut-container:hover span {
  color: #2d3748;
} */

.routeContainer {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: 0.1fr 1fr 1fr;
  gap: 1rem;
  justify-content: center;
  align-items: start;
  min-height: 100vh;
  /* Add page load animation */
  opacity: 0;
  animation: pageLoad 0.8s ease-out 0.2s forwards;
}

@keyframes pageLoad {
  from {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.bar-menu-container {
  grid-column: 5;
  grid-row: 1/5;
  width: 100%;
  height: 100%;
  position: sticky;
  top: 0;
  z-index: 10;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
  transform: translate3d(0, 0, 0);
}

.inputContainer {
  grid-column: 1/6;
  grid-row: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  animation: slideInUp 0.8s ease-out 0.6s forwards;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
.headerContainer {
  grid-column: 1/6;
  grid-row: 1;
}
.iconsContainer {
  grid-column: 2/6;
  grid-row: 2;
}
/* @Horloge */

/* Removed duplicate .delte-edit-tab:hover - now handled in main shortcut styles */

.clock-dial {
  background-image: url("/Star 64.svg");
  background-size: cover;
  background-position: center;
  width: 100px;
  height: 100px;
  border-radius: 50%;

  position: relative;
  display: grid;

  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  justify-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
}
.second-hand,
.hour-hand,
.minute-hand {
  grid-column: 1;
  grid-row: 1;

  width: 5px;
  height: 100%;
  /* background-color: #e1f6e7; */
  position: absolute;
}

.hand-pointer {
  width: 22px;

  border-radius: 18px;
  position: absolute;
}
#second {
  background-color: rgb(25, 42, 68);
  width: 100%;
  height: 5%;
  margin-top: 200%;
}
#minute {
  background-color: #3a8660;
  width: 5px;
  height: 30%;
  margin-top: 450%;
}
#hour {
  background-color: #3b4b41;
  width: 5px;
  height: 20%;
  margin-top: 630%;
}

/* @date  */

.container {
  font-family:
    ui-rounded,
    "SF Pro Rounded",
    "Nunito",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-weight: 600;
  width: 100%;
  max-width: 350px;

  grid-row: 2;
  grid-column: 1;
  align-items: center;
  justify-content: center;
}

/* Weather widget layout with animations */
.weather-widget {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  gap: 10px;
  opacity: 0;
  animation: slideInLeft 0.8s ease-out 0.4s forwards;

  grid-template-areas:
    "time date"
    "weather weather";
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translate3d(-30px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* Card styles with micro-interactions */
.card {
  background-color: #ffffff79;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  color: #184113;
  transition: all 0.3s ease;
  transform: translate3d(0, 0, 0);
  backdrop-filter: blur(10px);
}

.card:hover {
  transform: translate3d(0, -2px, 0);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Time card */
.time-card {
  grid-area: time;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 6px;
}

.TimeSwitcher {
  height: 70%;
  width: 6%;
  background-color: transparent;
  border: none;
  font-size: 20px;
  color: white;
}

.TimeSwitcher:hover {
  background-color: #7e7d7d11;
  color: #1c4b30;
  border-radius: 6px;
}

@font-face {
  font-family: "SF Pro Rounded";
  src: local("SF Pro Rounded");
}

@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@500;600&display=swap");

.time {
  font-family:
    ui-rounded,
    "SF Pro Rounded",
    "Nunito",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-size: 54px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

/* Date card */
.date-card {
  grid-area: date;
  background-color: #c9f1f1b4;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.day {
  font-size: 20px;
  margin-bottom: 4px;
}
.day :nth-child(1) {
  color: #0abb54;
}
.date {
  font-size: 50px;
  font-weight: 700;
  line-height: 1;
}

/* Weather card */
.weather-card {
  grid-area: weather;
  padding: 20px;
}

.location {
  font-size: 12px;
  width: 40%;
  margin-bottom: 5px;
  color: #1c4b30;
}

.temperature {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #1c4b30;
}

.weather-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.condition {
  display: flex;
  align-items: center;
}

.condition i {
  margin-right: 5px;
  color: #ffcc00;
}

.temp-range {
  font-size: 14px;
}

/* Hourly forecast */
.hourly-forecast {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(115, 93, 133, 0.2);
  padding-top: 15px;
}

.hour-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px;
}

.hour-item i {
  margin-bottom: 5px;
  font-size: 10px;
}

.hour-item i.fa-sun {
  color: #ffcc00;
}

.hour-item i.fa-moon {
  color: #9f94b0;
}

.hour-item span {
  font-size: 14px;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .weather-widget {
    grid-template-columns: 1fr;
    grid-template-areas:
      "time"
      "date"
      "weather";
  }

  .time,
  .date {
    text-align: center;
    align-items: center;
    flex-direction: column;
  }

  .hourly-forecast {
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .hour-item {
    margin-right: 20px;
    min-width: 40px;
  }
}

.weather-location-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.count-down {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px;
  font-size: 20px;
  grid-column: 2;
  grid-row: 1/3;
  color: rgb(38, 22, 46);
}
.location {
  grid-column: 1;
}

/* @google items */
.app-menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* Center content vertically */
  text-decoration: none;
  color: #202124; /* Dark text color */
  padding: 12px 8px; /* Adjust padding */
  border-radius: 8px; /* Rounded corners for hover effect */
  transition: background-color 0.2s ease-in-out;
  text-align: center;
  min-height: 80px; /* Ensure items have a minimum height */
  box-sizing: border-box;
}

.app-menu-item:hover {
  background-color: rgba(60, 64, 67, 0.08); /* Light grey hover */
}
/* Remove duplicate styles - these are now handled above */
/* .shortcut_container .icon - moved to main shortcut styles */
/* .shortcut_container:hover - moved to main shortcut styles */
.app-icon {
  width: 48px; /* Adjust icon size */
  height: 48px;
  object-fit: contain;
  margin-bottom: 6px; /* Space between icon and label */
}

.app-label {
  font-size: 14px; /* Slightly larger font */
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80px; /* Limit width to prevent awkward wrapping */
}
.google-apps-menu-container {
  /* If you want to position this like a dropdown, you'd add
     position: absolute; top: ...; right: ...; etc.
     Here we just style the container itself. */
  padding: 8px; /* Padding around the grid */
  background-color: #ffffff; /* White background */
  border-radius: 16px; /* More rounded corners for the panel */
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.1),
    0 1px 3px rgba(0, 0, 0, 0.08); /* Add shadow */
  border: 7px solid #dadce0;
  width: 320px; /* Fixed width for the panel */
  box-sizing: border-box;
}

.google-apps-menu {
  display: grid;
  /* Create 3 equal columns */
  grid-template-columns: repeat(3, 1fr);
  gap: 4px; /* Small gap between grid items */
}
.apps-launcher-wrapper {
  position: relative; /* Establishes positioning context for the absolute menu */
  display: inline-block; /* Or block, depending on layout */
}
.headerContainer {
  display: grid;
  grid-template-columns: 4fr 0.2fr 0.2fr;
}

.apps-launcher-button {
  background: none;
  border: none;
  padding: 8px; /* Adjust padding as needed */
  border-radius: 50%;
  cursor: pointer;
  display: flex; /* Align icon inside button */
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease-in-out;
  grid-column: 3;
}

.apps-launcher-button:hover {
  background-color: rgba(
    60,
    64,
    67,
    0.08
  ); /* Similar hover to other Google elements */
}

.apps-launcher-button svg {
  fill: #5f6368; /* Icon color */
}

/* This is the absolutely positioned container for the menu */
.apps-menu-popover {
  position: absolute;
  top: calc(100% + 4px); /* Position below the button with a small gap */
  right: 0; /* Align to the right edge of the wrapper */
  z-index: 100; /* Ensure it appears above other content */
}

/* --- Modify GoogleAppsMenu.css --- */
/* Remove positioning/container styles if they were previously in GoogleAppsMenu.css */
/* .google-apps-menu-container { ... } -> These styles are now in .apps-menu-popover */

/* Keep the grid styles for the menu itself */
/* src/GoogleAppsMenu.css (ensure these styles remain) */
.google-apps-menu {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.app-header {
  right: 50%;
}
.apps-launcher-wrapper {
  grid-column: 3;
}

/* end google */

/* Modal overlay styles to ensure proper display */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

/* Ensure body doesn't scroll when modal is open */
body.modal-open {
  overflow: hidden;
}

a {
  text-decoration: none;
  color: #202124;
}

.setting_button {
  grid-column: 2;
  grid-row: 1;
  padding: 10px 0;
}

.settings-container {
  grid-column: 1 / 3;
  grid-row: 4;
}
