@font-face {
    font-family: 'Google Sans';
    src: url('googlesans-regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Google Sans';
    src: url('googlesans-medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: 'Google Sans';
    src: url('googlesans-bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: 'Google Sans';
    src: url('googlesans-italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
}

/* Base resets & utilities */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.bento-card {
    border-radius: 1.75rem; /* Large Material 3 corners */
}

/* Copy hover button animation from original */
.resource-button {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.3s ease-in-out, border-color 0.3s ease;
    display: inline-block;
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    background-color: transparent;
    border: 1.5px solid #374151; /* gray-700 */
    border-radius: 9999px;
    font-size: 0.875rem; /* text-sm */
    font-weight: 500;
}
.dark .resource-button {
    border-color: #6b7280; /* gray-500 */
}

.resource-button span {
    position: relative;
    z-index: 2;
}
.resource-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #374151; /* The dark grey fill color */
    border-radius: 9999px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.5, 1, 0.89, 1);
    z-index: 1;
}
.resource-button:hover {
    color: #ffffff;
    border-color: #374151;
}
.dark .resource-button:hover {
    color: #111827;
    border-color: #e5e7eb;
}
.resource-button:hover::before {
    transform: scaleX(1);
}
.dark .resource-button::before {
    background-color: #e5e7eb; /* light grey for dark mode */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
/* Hide scrollbar for IE, Edge and Firefox */
.no-scrollbar {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

/* Custom Webkit Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background-color: rgba(156, 163, 175, 0.5); /* neutral gray with opacity */
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background-color: rgba(107, 114, 128, 0.8);
}

/* Explicit Select Option Theming for Pill Selectors */
#su-prog-sel option, #su-role-sel option {
    background-color: #ffffff;
    color: #1a1a1a;
    font-weight: 500;
}

html.dark #su-prog-sel option, html.dark #su-role-sel option {
    background-color: #1a1a1c;
    color: #ffffff;
}

/* Rich Text Editor Overrides for Tailwind Preflight */
.rich-text-editor b, .rich-text-editor strong {
    font-weight: 700;
}
.rich-text-editor i, .rich-text-editor em {
    font-style: italic;
}
.rich-text-editor u {
    text-decoration: underline;
}
.rich-text-editor font[size="1"] { font-size: 0.75rem; }
.rich-text-editor font[size="2"] { font-size: 0.875rem; }
.rich-text-editor font[size="3"] { font-size: 1rem; }
.rich-text-editor font[size="4"] { font-size: 1.125rem; }
.rich-text-editor font[size="5"] { font-size: 1.25rem; }
.rich-text-editor font[size="6"] { font-size: 1.5rem; }
.rich-text-editor font[size="7"] { font-size: 1.875rem; }
.rich-text-editor hr {
    margin: 1.5rem 0;
    border: none;
    border-top: 1px solid rgba(150, 150, 150, 0.2);
}
