/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&family=Outfit:wght@400;700&display=swap');

/* CSS variables matching the real earthmonitor.org brand
   (sampled from the live site's --wp--preset--color--brand-color and
   --clb-text-color custom properties, 2026-07-14) */
:root {
  --oem-teal: #488691;
  --oem-teal-dark: #35646d;
  --oem-navy: #0c1c28;
  --oem-bg: #ffffff;
  --oem-bg-soft: #f4f8f9;
  --oem-text: #0c1c28;
  --oem-text-muted: #4a5a63;
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(72, 134, 145, 0.35);
}

/* =========================================
   1. FRONTEND STYLES (Only for non-admin)
   ========================================= */
body:not([class*="skin-"]) {
  background-color: var(--oem-bg) !important;
  color: var(--oem-text) !important;
  font-family: 'Inter', sans-serif !important;
  background-image: radial-gradient(circle at 15% 50%, rgba(72, 134, 145, 0.08), transparent 50%), radial-gradient(circle at 85% 30%, rgba(12, 28, 40, 0.05), transparent 50%) !important;
  background-attachment: fixed;
}

body:not([class*="skin-"]) h1,
body:not([class*="skin-"]) h2,
body:not([class*="skin-"]) h3,
body:not([class*="skin-"]) h4,
body:not([class*="skin-"]) h5,
body:not([class*="skin-"]) h6,
body:not([class*="skin-"]) .tk-source-sans-pro,
body:not([class*="skin-"]) .tk-museo-sans,
body:not([class*="skin-"]) .page_name {
  font-family: 'Outfit', sans-serif !important;
  color: var(--oem-navy) !important;
}

body:not([class*="skin-"]) .subtitle {
  font-family: 'Outfit', sans-serif !important;
  color: var(--oem-teal) !important;
  font-size: 1rem !important;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

body:not([class*="skin-"]) h1.tk-source-sans-pro {
  font-size: 3.5rem !important;
  font-weight: 800 !important;
  background: -webkit-linear-gradient(45deg, var(--oem-navy), var(--oem-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 0 !important;
}

/* Paragrafi */
body:not([class*="skin-"]) .home-content p,
body:not([class*="skin-"]) .paragraphs .normal-text {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--oem-text-muted);
}

body:not([class*="skin-"]) .about-description p {
  margin: 0 0 1.1em 0;
}
body:not([class*="skin-"]) .about-description p:last-child {
  margin-bottom: 0;
}

/* About page hero image */
.about-hero {
  margin: 10px 0 30px 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(12, 28, 40, 0.18);
}
.about-hero img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: cover;
  background: var(--oem-navy);
}

/* EU / Horizon Europe funding badge */
.funding-badge {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 36px;
  padding: 22px 26px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
}
.funding-badge-flag {
  flex: 0 0 auto;
  width: 84px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(12, 28, 40, 0.25);
}
.funding-badge-text strong {
  display: block;
  font-family: 'Outfit', sans-serif;
  color: var(--oem-navy);
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.funding-badge-text p {
  margin: 0 0 6px 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--oem-text-muted);
}
.funding-badge-disclaimer {
  font-size: 0.8rem !important;
  font-style: italic;
  opacity: 0.85;
}
@media (max-width: 640px) {
  .funding-badge { flex-direction: column; align-items: flex-start; }
}

/* --- GLASS CARDS (light, matching the real site's clean look) --- */
.home-block, .about_it, .groups, .login {
  background: var(--glass-bg) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 16px !important;
  padding: 40px !important;
  box-shadow: 0 15px 35px rgba(12, 28, 40, 0.12) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-block:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 45px rgba(12, 28, 40, 0.18) !important;
}

/* Hiding the contact block as requested by user */
.about_it .info-block,
.about_it .photo-img {
  display: none !important;
}

/* --- BOJE I HOVER EFEKTI U MENIJU (COLOURS) ---
   NB: these blocks are stacked flush against each other (no gap), so no
   border-radius/backdrop-filter here - both cause a color-bleed artifact
   at the shared corners between adjacent blocks. */
.colours .colour_link .colour {
  transition: all 0.3s ease !important;
  position: relative;
}

/* Preklapanje hardkodovanih boja žute, crvene, ljubičaste - teal family */
.colours .colour_link span[data-colour="#f2b701"] { background-color: rgba(72, 134, 145, 0.9) !important; }
.colours .colour_link span[data-colour="#dc0030"] { background-color: rgba(53, 100, 109, 0.9) !important; }
.colours .colour_link span[data-colour="#7c378a"] { background-color: rgba(12, 28, 40, 0.92) !important; }

.colours .colour_link:hover .colour {
  box-shadow: inset 0 0 40px rgba(255, 255, 255, 0.15) !important;
}

.colour_link span span {
  font-family: 'Outfit', sans-serif !important;
  font-weight: 600;
  font-size: 1.2rem;
  color: #ffffff !important;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.25);
}

i.menu-img {
  font-size: 2rem !important;
  margin-bottom: 10px !important;
  display: block;
}

/* --- FORMA (LOGIN I DRUGE) --- */
body:not([class*="skin-"]) .form-control,
body:not([class*="skin-"]) input[type="text"],
body:not([class*="skin-"]) input[type="password"] {
  background: #ffffff !important;
  border: 1px solid rgba(12, 28, 40, 0.2) !important;
  color: var(--oem-text) !important;
  border-radius: 8px !important;
  padding: 15px !important;
  height: 50px !important;
  transition: all 0.3s ease;
}

body:not([class*="skin-"]) .form-control:focus {
  border-color: var(--oem-teal) !important;
  box-shadow: 0 0 10px rgba(72, 134, 145, 0.3) !important;
}

/* Dugmići */
body:not([class*="skin-"]) .btn,
body:not([class*="skin-"]) .submit-btn {
  background: linear-gradient(90deg, var(--oem-teal), var(--oem-teal-dark)) !important;
  border: none !important;
  color: #ffffff !important;
  font-weight: bold !important;
  border-radius: 8px !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease !important;
}

body:not([class*="skin-"]) .btn:hover,
body:not([class*="skin-"]) .submit-btn:hover {
  background: linear-gradient(90deg, var(--oem-teal-dark), var(--oem-teal)) !important;
  box-shadow: 0 5px 15px rgba(72, 134, 145, 0.35) !important;
  transform: translateY(-2px);
}

body:not([class*="skin-"]) a {
  color: var(--oem-teal) !important;
  transition: color 0.2s ease;
}
body:not([class*="skin-"]) a:hover {
  color: var(--oem-teal-dark) !important;
  text-decoration: none !important;
}

/* =========================================
   2. BACKEND / ADMIN STYLES (AdminLTE)
   ========================================= */

/* Top Navbar */
body[class*="skin-"] .main-header .navbar {
  background: linear-gradient(90deg, var(--oem-navy), var(--oem-teal-dark)) !important;
}

/* Limit search bar width in the backend header */
body[class*="skin-"] .main-header .navbar .navbar-form {
  max-width: 250px;
}
body[class*="skin-"] .main-header .navbar .navbar-form input {
  background-color: rgba(255,255,255,0.1) !important;
  color: white !important;
  border: none !important;
}
body[class*="skin-"] .main-header .navbar .navbar-form input::placeholder {
  color: rgba(255,255,255,0.7) !important;
}

/* Top Left Logo Area - dark navy background, use the teal-text logo variant here */
body[class*="skin-"] .main-header .logo {
  background-color: var(--oem-navy) !important;
  border-right: 1px solid rgba(255,255,255,0.1);
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 10px !important;
}

body[class*="skin-"] .main-header .logo:hover {
  background-color: #08141d !important;
}

/* Fix for the big logo stretching */
.main-header .logo img {
  max-height: 40px !important;
  max-width: 100% !important;
  object-fit: contain !important;
}

/* Fix for the small collapsed logo */
.sidebar-mini.sidebar-collapse .main-header .logo .logo-mini img {
  max-width: 35px !important;
  max-height: 35px !important;
}

/* Sidebar */
body[class*="skin-"] .main-sidebar {
  background-color: var(--oem-navy) !important;
}

/* Sidebar Links */
body[class*="skin-"] .sidebar-menu > li > a {
  color: #b7c3ca !important;
  border-left: 3px solid transparent !important;
}

/* Sidebar Hover / Active */
body[class*="skin-"] .sidebar-menu > li:hover > a,
body[class*="skin-"] .sidebar-menu > li.active > a {
  background: #14303f !important;
  color: #ffffff !important;
  border-left-color: var(--oem-teal) !important;
}

/* Sidebar Headers */
body[class*="skin-"] .sidebar-menu > li.header {
  background: #081319 !important;
  color: #6b7f89 !important;
}

/* Main Content Area */
body[class*="skin-"] .content-wrapper,
body[class*="skin-"] .right-side {
  background-color: #f3f4f6 !important; /* Clean light gray */
  color: #1f2937 !important;
}

/* Fix for Cartographic Group cards background image fitting */
.thumbnail img,
.thumbnail {
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

/* Fix for collapsed sidebar menu text overflowing the background */
.sidebar-mini.sidebar-collapse .sidebar-menu > li:hover > a > span:not(.pull-right),
.sidebar-mini.sidebar-collapse .sidebar-menu > li:hover > .treeview-menu {
    width: auto !important;
    min-width: 260px !important;
    padding-right: 15px !important;
}

/* Ensure the treeview menu items inherit the dark background */
body[class*="skin-"] .sidebar-menu .treeview-menu {
    background-color: var(--oem-navy) !important;
}

body[class*="skin-"] .sidebar-menu .treeview-menu > li > a {
    color: #8a9aa3 !important;
}

body[class*="skin-"] .sidebar-menu .treeview-menu > li > a:hover {
    color: #ffffff !important;
    background-color: transparent !important;
}
