/*==================================
  FONT SETTINGS
==================================*/
/* Import Poppins and Merriweather fonts from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&family=Merriweather:wght@400;700&display=swap');

/*==================================
  ROOT VARIABLES
==================================*/
:root {
  /* Font families for consistent typography */
  --font-primary: 'Poppins', sans-serif;
  --font-secondary: 'Merriweather', serif;
  
  /* Color palette for consistent theming */
  --color-border: #4d4e5e;
  --color-tab-border: #4a4a54;
  --color-tab-hover: #0099fa;
  --color-background-primary: #11141d;
  --color-background-hover: #08081c;
  --color-block: #222432;
  --color-block-hover: #004d50;
  --color-bookmark-icon: #1f233c;
  
  /* Gradient definition for animated borders 
  --gradient-border: linear-gradient(90deg, #0099fa, #81afe1, #0099fa); */
  --gradient-border: linear-gradient(90deg, #0099fa, #000000, #0099fa);

  
  /* Consistent spacing scale */
  --spacing-xs: 5px;
  --spacing-sm: 8px;
  --spacing-md: 10px;
  --spacing-lg: 30px;
  --spacing-xl: 40px;
  
  /* Border properties for consistent styling */
  --border-width: 2px;
  --border-radius: .375rem;
  --border-radius-sm: .275rem;
  
  /* Animation timings for consistent motion */
  --animation-duration: 2s;
  --transition-duration: 0.3s;
  
  /* Layout measurements */
  --logo-size: 66px;
  
  /* Tab-specific styling variables */
  --tab-border-width: 2px;
  --tab-border-radius: .375rem;
  --tab-backdrop-filter: blur(1px);
}

/* Apply Poppins font to all text */
* {
  font-family: var(--font-primary) !important;
}

/*==================================
  TAB STYLES
==================================*/
/* Container for all tabs */
#Home {
  padding: var(--spacing-xs);
  background: none;
  backdrop-filter: none;
  display: flex;
  justify-content: flex-start;
  gap: var(--spacing-xl);
}

/* Individual tab styling */
button[id$='-tab'] {
  border-width: var(--tab-border-width);
  border-radius: var(--tab-border-radius);
  border-color: var(--color-tab-border);
  backdrop-filter: var(--tab-backdrop-filter);
  padding: 1px;
  margin: 1px;
  border-spacing: 1;
  transition: border-color var(--transition-duration) ease;
}

/* Tab hover effect */
button[id$='-tab']:hover {
  border-color: var(--color-tab-hover);
}

/*==================================
  HEADING STYLES
==================================*/
/* Apply Merriweather font to the greeting */
.information-widget-logo + .information-widget-greeting span {
  font-family: var(--font-secondary) !important;
  font-weight: 700 !important;
}

/* Logo size and positioning */
.information-widget-logo img {
  width: var(--logo-size) !important;  
  height: var(--logo-size) !important;
  max-width: none;   
  max-height: none;     
  margin-left: var(--spacing-lg);
}

/*==================================
  SERVICE CARD STYLES
==================================*/
/* Base service card container */
.service-card {
  position: relative;
  padding: 0;
  margin: 2;
  border-radius: var(--border-radius);
  background: transparent;
  border: var(--border-width) solid var(--color-border);
  overflow: visible;
}


/* Background color for service data blocks */
.bg-theme-200\/50, 
.flex-1.service-block {     
  background-color: var(--color-block) !important;
  transition: background-color var(--transition-duration) ease;
}


/* Change block colors on service card hover */
.service-card:hover [class*="bg-theme-200/50"],
.service-card:hover .flex-1.service-block {    
  background-color: var(--color-block-hover) !important;
}


/* Animated border gradient effect */
.service-card::before {
  content: '';
  position: absolute;
  inset: calc(-1 * var(--border-width));
/*  background: #789ED3; */
  background: var(--gradient-border);
  z-index: -2; 
  border-radius: var(--border-radius);
  background-size: 200% 100%;
  animation: wave var(--animation-duration) linear infinite;
  opacity: 0;
  transition: opacity var(--transition-duration) ease;
}

/* Show animated border on hover */
.service-card:hover::before {
  opacity: 1;
}

/* Animation keyframes for border gradient */
@keyframes wave {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}



/* Inner card background effect */
.service-card::after {
  content: '';
  position: absolute;
  inset: var(--border-width);
  background: var(--color-background-primary);
  border-radius: var(--border-radius-sm);
  z-index: -1;
  transition: background-color var(--transition-duration) ease;
}

/* Change background color on hover */
.service-card:hover::after {
  background: var(--color-background-hover);
}

/* Hide default border on hover */
.service-card:hover {
  border-color: transparent;
}

/*==================================
  BOOKMARK SECTION STYLES
==================================*/
/* Bookmark section container */
.flex.flex-col.mt-3.bookmark-list {
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--border-radius);
  padding: var(--spacing-md) var(--spacing-sm) 0 var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
}

/* Bookmark icon background */
.bookmark-icon {
  background-color: var(--color-bookmark-icon) !important;
}

/*==================================
  TEXT STYLES
==================================*/
/* Small text styling with pre-line whitespace */
.text-sm {
  white-space: pre-line;
  text-align: left;
  font-size: 1em;
  
  &::first-line {
    margin-bottom: var(--spacing-xs);
  }
}
/*
/* Hide elements with _hidden prefix */
[data-name^="_hidden"] .service-title,
.bookmark-group .bookmark-group-name {
  display: bookmarks;
}

/* Hide footer completely */
#footer {
  display: refresh;

}