﻿﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&family=Space+Grotesk:wght@700&display=swap');

/* Base Styles */
body {
  font-family: 'Inter', sans-serif;
  background-color: #F5F5F7; /* space-white */
  color: #1A1A1A; /* space-gray-900 */
  margin: 0;
  padding: 0;
  font-feature-settings: "rlig" 1, "calt" 1;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: #1E3888; /* primary-blue */
}

h1 { font-size: 2.5rem; } /* Approx 4xl */
h2 { font-size: 2rem; }   /* Approx 3xl */
h3 { font-size: 1.75rem; }/* Approx 2xl */
h4 { font-size: 1.5rem; } /* Approx xl */

p {
  line-height: 1.6;
}

a {
  color: #1E3888; /* primary-blue */
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Text Gradient from Frontend */
.text-gradient {
  background-clip: text;
  -webkit-background-clip: text; /* For Safari/Webkit */
  color: transparent;
  background-image: linear-gradient(to right, #4f46e5, #a855f7); /* Example gradient, adjust if needed */
}


/* Forms & Buttons */
.btn {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.75rem 1.5rem; /* Approx px-6 py-3 */
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.5rem; /* rounded-md */
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

.btn-primary {
    color: #F5F5F7; /* space-white */
    background-color: #1E3888; /* primary-blue */
    border-color: #1E3888;
}

.btn-primary:hover {
    color: #F5F5F7;
    background-color: #162a6a; /* Darker blue */
    border-color: #14255a;
}

.form-control {
    display: block;
    width: 100%;
    box-sizing: border-box; /* Add this to include padding/border in width */
    padding: 0.5rem 1rem; /* Approx px-4 py-2 */
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #1A1A1A; /* space-gray-900 */
    background-color: #FFFFFF;
    background-clip: padding-box;
    border: 1px solid #C4C4C4; /* space-gray-300 */
    appearance: none;
    border-radius: 0.5rem; /* rounded-md */
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

.form-control:focus {
    color: #1A1A1A;
    background-color: #FFFFFF;
    border-color: #1E3888; /* primary-blue */
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(30, 56, 136, 0.25); /* Focus ring like frontend */
}

/* Layout Adjustments */
.container {
    max-width: 1140px; /* Standard container width */
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

.body-container {
  margin-top: 2rem; /* Reduced top margin */
  padding-bottom: 2rem;
}

/* Added Styles for Login Page */
.btn-secondary {
    color: #1A1A1A; /* space-gray-900 */
    background-color: #E0E0E0; /* space-gray-200 */
    border-color: #E0E0E0;
}

.btn-secondary:hover {
    color: #1A1A1A;
    background-color: #C4C4C4; /* space-gray-300 */
    border-color: #bdbdbd;
}

.card {
    background-color: #FFFFFF;
    border: 1px solid #E0E0E0; /* space-gray-200 */
    border-radius: 1rem; /* rounded-lg */
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.card-header {
    padding: 1rem 1.5rem;
    background-color: #F5F5F5; /* space-gray-100 */
    border-bottom: 1px solid #E0E0E0; /* space-gray-200 */
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}

.card-header h2 {
    margin-bottom: 0;
    font-size: 1.5rem; /* Approx h4 */
}

.card-body {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.form-check-input {
    margin-right: 0.5rem;
    height: 1rem;
    width: 1rem;
}

.form-check-label {
    margin-bottom: 0; /* Reset default label margin */
}

.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.5rem; /* rounded-md */
}

.alert-warning {
    color: #856404; /* Approx warning text */
    background-color: #fff3cd; /* Approx warning bg */
    border-color: #ffeeba; /* Approx warning border */
}

/* Basic Grid (replace row/col-sm-6) */
.login-grid {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px; /* Counter container padding */
    margin-right: -15px;
}

.login-column {
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

@media (min-width: 576px) { /* sm breakpoint */
    .login-column {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Navbar Styles */
.navbar {
    /* Dark background with gradient */
    background: linear-gradient(to right, #1e1b4b, #312e81, #4f46e5);
    padding: 1rem 1.5rem; /* Increased padding */
    display: flex; /* Basic flex layout */
    align-items: center;
    justify-content: space-between; /* Pushes user name to the right */
    border-bottom: 1px solid #2D2D2D; /* space-gray-800 */
    position: relative; /* Needed for absolute positioning of grid */
    overflow: hidden; /* Hide overflowing grid */
    min-height: 4rem; /* Ensure minimum height for the banner */
}

/* Basic Grid Pattern (approximation) */
.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px; /* Adjusted grid size */
    z-index: 0; /* Place behind content */
}

.navbar > * {
    position: relative; /* Ensure content is above grid */
    z-index: 1;
}

/* Styling for navigation links */
.navbar-nav {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
    display: flex; /* Arrange links in a row */
    align-items: center;
}

.nav-item {
    margin-left: 1.5rem; /* Space between links */
}

.nav-item a {
    color: #F5F5F7; /* space-white */
    text-decoration: none;
    padding: 0.5rem 0; /* Adjust padding */
    transition: color 0.3s ease;
    font-weight: 600; /* Added font weight */
}

.nav-item a:hover {
    color: #a855f7; /* Highlight color on hover */
}

/* Basic styling for user dropdown (adjust as needed) */
.navbar-nav .dropdown-menu {
    display: none; /* Keep hidden for now */
}

.navbar-nav .nav-item.dropdown:hover .dropdown-menu {
     /* Basic hover display - might need JS for proper toggle */
     /* display: block; */
     /* position: absolute; */
     /* background-color: #1A1A1A; */
     /* border: 1px solid #2D2D2D; */
     /* border-radius: 0.5rem; */
     /* padding: 0.5rem 0; */
     /* z-index: 1000; */
}

.navbar-nav .dropdown-item {
    /* display: block; */
    /* padding: 0.5rem 1rem; */
    /* color: #F5F5F7; */
}

.navbar-nav .dropdown-item:hover {
    /* background-color: #2D2D2D; */
}

.navbar-brand {
    display: flex;
    align-items: center;
    color: #F5F5F7; /* space-white */
    font-size: 1.75rem; /* Increased font size */
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    text-decoration: none;
}

.navbar-brand:hover {
    color: #E0E0E0; /* space-gray-200 */
    text-decoration: none;
}

.navbar-logo {
    height: 48px; /* Increased logo height */
    width: auto;
    margin-right: 1rem; /* Increased margin */
}

/* Basic styling for user dropdown (adjust as needed) */
.navbar-nav {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}
.nav-item a {
    color: #F5F5F7; /* space-white */
    text-decoration: none;
    padding: 0.5rem;
}
.nav-item a:hover {
    color: #E0E0E0; /* space-gray-200 */
}
/* Hide dropdown elements for now as JS is removed */
.dropdown-menu {
    display: none;
}
.nav-item.dropdown:hover .dropdown-menu {
     /* Basic hover display - might need JS for proper toggle */
     /* display: block; */
     /* position: absolute; */
     /* background-color: #1A1A1A; */
     /* border: 1px solid #2D2D2D; */
     /* border-radius: 0.5rem; */
     /* padding: 0.5rem 0; */
     /* z-index: 1000; */
}
.dropdown-item {
    /* display: block; */
    /* padding: 0.5rem 1rem; */
    /* color: #F5F5F7; */
}
.dropdown-item:hover {
    /* background-color: #2D2D2D; */
}


/* External Login List */
.external-providers {
    list-style: none;
    padding: 0;
    margin: 0;
}

.external-providers li {
    margin-bottom: 0.5rem;
}

/* Original Styles Below */
.welcome-page .logo {
  width: 64px;
}

.icon-banner {
  width: 32px;
}

.body-container {
  margin-top: 60px;
  padding-bottom: 40px;
}

.welcome-page li {
  list-style: none;
  padding: 4px;
}

.logged-out-page iframe {
  display: none;
  width: 0;
  height: 0;
}

.grants-page .card {
  margin-top: 20px;
  border-bottom: 1px solid lightgray;
}
.grants-page .card .card-title {
  font-size: 120%;
  font-weight: bold;
}
.grants-page .card .card-title img {
  width: 100px;
  height: 100px;
}
.grants-page .card label {
  font-weight: bold;
}
