/* Fonts */
:root {
  --default-font: "Roboto",  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --heading-font: "Poppins",  sans-serif;
  --nav-font: "Raleway",  sans-serif;
}

/* Global Colors - The following color variables are used throughout the website. Updating them here will change the color scheme of the entire website */
:root { 
  /*--background-color: #ffffff;*/ /* Background color for the entire website, including individual sections */
  --background-color: #f8f9fa; /* Background color for the entire website, including individual sections */
  --default-color: #444444; /* Default color used for the majority of the text content across the entire website */
  --heading-color: #2c4964; /* Color for headings, subheadings and title throughout the website */
  --accent-color: #1977cc; /* Accent color that represents your brand on the website. It's used for buttons, links, and other elements that need to stand out */
  --surface-color: #ffffff; /* The surface color is used as a background of boxed elements within sections, such as cards, icon boxes, or other elements that require a visual separation from the global background. */
  --contrast-color: #ffffff; /* Contrast color for text, ensuring readability against backgrounds of accent, heading, or default colors. */
  --footer-background-color: #f1f7fc; /* Background color specifically for the footer section of the website */
}

/* Nav Menu Colors - The following color variables are used specifically for the navigation menu. They are separate from the global colors to allow for more customization options */
:root {
  --nav-color: #2c4964;  /* The default color of the main navmenu links */
  --nav-hover-color: #1977cc; /* Applied to main navmenu links when they are hovered over or active */
  --nav-mobile-background-color: #ffffff; /* Used as the background color for mobile navigation menu */
  --nav-dropdown-background-color: #ffffff; /* Used as the background color for dropdown items that appear when hovering over primary navigation items */
  --nav-dropdown-background-color-hover: #f8f9fa; /* Darker dropdown hover */
  --nav-dropdown-color: #2c4964; /* Used for navigation links of the dropdown items in the navigation menu. */
  --nav-dropdown-hover-color: #1977cc; /* Similar to --nav-hover-color, this color is applied to dropdown navigation links when they are hovered over. */
}

/* Status & Alert Colors */
:root {
  --error-color: #df1529; /* Error/danger red */
  --error-light: #f8d7da; /* Light error background */
  --success-color: #059652; /* Success green */
  --success-light: #d1e7dd; /* Light success background */
  --warning-color: #ffc107; /* Warning yellow */
  --warning-light: #fff3cd; /* Light warning background */
  --info-color: #0d6efd; /* Info blue */
  --info-light: #cfe2ff; /* Light info background */
  --secondary-color: #6c757d; /* Secondary gray */
  --secondary-light: #e2e3e5; /* Light secondary background */
}

/* Text & Status Specific Colors */
:root {
  --text-dark: #212529; /* Dark text color */
  --text-muted: #6c757d; /* Muted text */
  --text-secondary: #495057; /* Secondary text */
  --status-inskickad-bg: #fff3cd; /* Submitted status background */
  --status-inskickad-text: #856404; /* Submitted status text */
  --status-kontrolleras-bg: #cfe2ff; /* Under review status background */
  --status-kontrolleras-text: #084298; /* Under review status text */
  --status-godkand-bg: #d1e7dd; /* Approved status background */
  --status-godkand-text: #0f5132; /* Approved status text */
  --status-avvisad-bg: #f8d7da; /* Rejected status background */
  --status-avvisad-text: #842029; /* Rejected status text */
  --status-utkast-bg: #e2e3e5; /* Draft status background */
  --status-utkast-text: #41464b; /* Draft status text */
}

/* Gray Scale Colors */
:root {
  --white: #ffffff; /* Pure white */
  --gray-50: #f8f9fa; /* Very light gray */
  --gray-100: #f1f3f5; /* Light gray */
  --gray-200: #e9ecef; /* Medium-light gray */
  --gray-300: #dee2e6; /* Medium gray */
  --gray-400: #ced4da; /* Medium-dark gray */
  --gray-500: #adb5bd; /* Dark gray */
  --gray-600: #6c757d; /* Darker gray */
  --gray-700: #495057; /* Even darker gray */
  --gray-800: #333333; /* Very dark gray */
  --gray-900: #212529; /* Almost black */
}

/* Blue/Primary Colors */
:root {
  --blue-primary: #0d6efd; /* Primary blue */
  --blue-light: #e7f1ff; /* Light blue background */
  --blue-lighter: #d0e7ff; /* Lighter blue background */
  --blue-gradient-start: #667eea; /* Gradient start */
  --blue-gradient-end: #764ba2; /* Gradient end */
}

/* Button & Component Colors */
:root {
  --success-green: #28a745; /* Success button green */
  --success-green-hover: #218838; /* Success hover green */
  --danger-red: #dc3545; /* Danger red */
  --warning-yellow: #ffc107; /* Warning yellow */
  --success-stat: #198754; /* Success stat color */
}

/* Shadow & Overlay Colors */
:root {
  --shadow-sm: rgba(0, 0, 0, 0.1); /* Small shadow */
  --shadow-md: rgba(0, 0, 0, 0.15); /* Medium shadow */
  --shadow-overlay: rgba(0, 0, 0, 0.5); /* Medium-dark overlay */
  --shadow-dark: rgba(0, 0, 0, 0.8); /* Dark overlay */
  --shadow-darkest: rgba(0, 0, 0, 0.9); /* Darkest overlay */
  --overlay-light: rgba(33, 37, 41, 0.03); /* Light overlay */
  --overlay-medium: rgba(33, 37, 41, 0.1); /* Medium overlay */
  --overlay-dark: rgba(33, 37, 41, 0.8); /* Dark overlay */
  --white-transparent: rgba(255, 255, 255, 0.2); /* Transparent white */
}

/* User Menu Colors */
:root {
  --user-dropdown-bg: #ffffff; /* User dropdown background */
  --user-dropdown-border-color: #dee2e6; /* User dropdown border */
  --user-dropdown-hover-bg: #f8f9fa; /* User dropdown hover background */
  --user-dropdown-hover-color: #1977cc; /* User dropdown hover text */
  --user-info-color: #ffffff; /* User info text color */
}

/* Color Presets - These classes override global colors when applied to any section or element, providing reuse of the sam color scheme. */

.light-background {
  --background-color: #f1f7fc;
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #060606;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #252525;
  --contrast-color: #ffffff;
}

/* Dark Theme Color Variables */
:root[data-theme="dark"] {
  /* Global dark colors */
  --background-color: #0f172a; /* Dark background */
  --default-color: #e5e7eb; /* Light text for dark mode */
  --heading-color: #f3f4f6; /* Light headings for dark mode */
  --accent-color: #60a5fa; /* Lighter blue accent for dark mode */
  --surface-color: #1e293b; /* Dark surface */
  --contrast-color: #ffffff; /* White contrast text */
  --footer-background-color: #111827; /* Very dark footer */
  
  /* Nav dark colors */
  --nav-color: #e5e7eb; /* Light nav text */
  --nav-hover-color: #93c5fd; /* Lighter blue hover */
  --nav-mobile-background-color: #172440; /* Dark mobile nav */
  --nav-dropdown-background-color: #172440; /* Dark dropdown */
  --nav-dropdown-background-color-hover: #1a2e55; /* Darker dropdown hover */
  --nav-dropdown-color: #e5e7eb; /* Light dropdown text */
  --nav-dropdown-hover-color: #93c5fd; /* Light hover */
  
  /* Status & Alert Colors - Dark Mode */
  --error-color: #f87171; /* Lighter red for dark */
  --error-light: #7f1d1d; /* Dark red background */
  --success-color: #86efac; /* Lighter green for dark */
  --success-light: #15803d; /* Dark green background */
  --warning-color: #fbbf24; /* Lighter yellow for dark */
  --warning-light: #78350f; /* Dark yellow background */
  --info-color: #93c5fd; /* Lighter blue for dark */
  --info-light: #1e3a8a; /* Dark blue background */
  --secondary-color: #9ca3af; /* Light gray for dark */
  --secondary-light: #374151; /* Dark gray background */
  
  /* Text & Status - Dark Mode */
  --text-dark: #f3f4f6; /* Light text for dark */
  --text-muted: #9ca3af; /* Light muted text */
  --text-secondary: #d1d5db; /* Light secondary text */
  --status-inskickad-bg: #78350f; /* Dark yellow background */
  --status-inskickad-text: #fef3c7; /* Light yellow text */
  --status-kontrolleras-bg: #1e3a8a; /* Dark blue background */
  --status-kontrolleras-text: #bfdbfe; /* Light blue text */
  --status-godkand-bg: #15803d; /* Dark green background */
  --status-godkand-text: #86efac; /* Light green text */
  --status-avvisad-bg: #7f1d1d; /* Dark red background */
  --status-avvisad-text: #fca5a5; /* Light red text */
  --status-utkast-bg: #374151; /* Dark gray background */
  --status-utkast-text: #d1d5db; /* Light gray text */
  
  /* Gray Scale - Dark Mode */
  --white: #0f172a; /* Dark "white" for dark mode */
  --gray-50: #111827; /* Dark background */
  --gray-100: #1f2937; /* Dark gray */
  --gray-200: #374151; /* Medium dark gray */
  --gray-300: #4b5563; /* Medium gray */
  --gray-400: #6b7280; /* Medium-light gray */
  --gray-500: #9ca3af; /* Light gray */
  --gray-600: #d1d5db; /* Lighter gray */
  --gray-700: #e5e7eb; /* Even lighter gray */
  --gray-800: #f3f4f6; /* Very light gray */
  --gray-900: #ffffff; /* White */
  
  /* Blue/Primary - Dark Mode */
  --blue-primary: #60a5fa; /* Light blue primary */
  --blue-light: #1e3a8a; /* Dark blue background */
  --blue-lighter: #3b82f6; /* Medium blue */
  --blue-gradient-start: #7c3aed; /* Purple gradient start */
  --blue-gradient-end: #a855f7; /* Pink gradient end */
  
  /* Button & Component - Dark Mode */
  --success-green: #22c55e; /* Light green button */
  --success-green-hover: #16a34a; /* Darker green hover */
  --danger-red: #ef4444; /* Light red */
  --warning-yellow: #eab308; /* Light yellow */
  --success-stat: #4ade80; /* Light stat green */
  
  /* Shadow & Overlay - Dark Mode */
  --shadow-sm: rgba(0, 0, 0, 0.3); /* Darker small shadow */
  --shadow-md: rgba(0, 0, 0, 0.5); /* Darker medium shadow */
  --shadow-overlay: rgba(0, 0, 0, 0.7); /* Darker overlay */
  --shadow-dark: rgba(0, 0, 0, 0.85); /* Darker overlay */
  --shadow-darkest: rgba(0, 0, 0, 0.95); /* Darkest overlay */
  --overlay-light: rgba(0, 0, 0, 0.2); /* Dark overlay light */
  --overlay-medium: rgba(0, 0, 0, 0.4); /* Dark overlay medium */
  --overlay-dark: rgba(0, 0, 0, 0.7); /* Dark overlay */
  --white-transparent: rgba(229, 231, 235, 0.2); /* Light transparent */

  --user-dropdown-bg: #172440; /* Dark dropdown background */
  --user-dropdown-border-color: #374151; /* Dark dropdown border */
  --user-dropdown-hover-bg: #1a2e55; /* Dark dropdown hover background */
  --user-dropdown-hover-color: #e5e7eb; /* Light dropdown hover text */
}

/* Smooth scroll */
:root {
  scroll-behavior: smooth;
}

/*--------------------------------------------------------------
/* General Styling & Shared Classes */
/* -------------------------------------------------------------- */
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}

.card {
  background-color: var(--surface-color);
  border: 1px solid var(--gray-200);
}

input {
  	background-color: var(--surface-color);
}

label {
  color: var(--default-color);
}

/*--------------------------------------------------------------
/* Pulsating Play Button
/* -------------------------------------------------------------- */
.pulsating-play-btn {
  width: 94px;
  height: 94px;
  background: radial-gradient(var(--accent-color) 50%, color-mix(in srgb, var(--accent-color), transparent 75%) 52%);
  border-radius: 50%;
  display: block;
  position: relative;
  overflow: hidden;
}

.pulsating-play-btn:before {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  animation-delay: 0s;
  animation: pulsate-play-btn 2s;
  animation-direction: forwards;
  animation-iteration-count: infinite;
  animation-timing-function: steps;
  opacity: 1;
  border-radius: 50%;
  border: 5px solid color-mix(in srgb, var(--accent-color), transparent 30%);
  top: -15%;
  left: -15%;
  background: rgba(198, 16, 0, 0);
}

.pulsating-play-btn:after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-40%) translateY(-50%);
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid #fff;
  z-index: 100;
  transition: all 400ms cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

.pulsating-play-btn:hover:before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-40%) translateY(-50%);
  width: 0;
  height: 0;
  border: none;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid #fff;
  z-index: 200;
  animation: none;
  border-radius: 0;
}

.pulsating-play-btn:hover:after {
  border-left: 15px solid var(--accent-color);
  transform: scale(20);
}

@keyframes pulsate-play-btn {
  0% {
    transform: scale(0.6, 0.6);
    opacity: 1;
  }

  100% {
    transform: scale(1, 1);
    opacity: 0;
  }
}

/* PHP Email Form Messages
/* -------------------------------------------------------------- */
.php-email-form .error-message {
  display: none;
  background: var(--error-color);
  color: var(--white);
  text-align: left;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .sent-message {
  display: none;
  color: var(--white);
  background: var(--success-color);
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .loading {
  display: none;
  background: var(--surface-color);
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
}

.php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid var(--accent-color);
  border-top-color: var(--surface-color);
  animation: php-email-form-loading 1s linear infinite;
}

@keyframes php-email-form-loading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
/* Global Header */
/* -------------------------------------------------------------- */
.header {
  color: var(--default-color);
  transition: all 0.5s;
  z-index: 997;
  background-color: var(--background-color);
  box-shadow: 0px 8px 8px -6px var(--shadow-overlay);
}

.header .topbar {
  background-color: var(--accent-color);
  height: 40px;
  padding: 0;
  font-size: 14px;
  transition: all 0.5s;
}

.header .topbar .contact-info i {
  font-style: normal;
  color: var(--contrast-color);
}

.header .topbar .contact-info i a,
.header .topbar .contact-info i span {
  padding-left: 5px;
  color: var(--contrast-color);
}

@media (max-width: 575px) {

  .header .topbar .contact-info i a,
  .header .topbar .contact-info i span {
    font-size: 13px;
  }
}

.header .topbar .contact-info i a {
  line-height: 0;
  transition: 0.3s;
}

.header .topbar .contact-info i a:hover {
  color: var(--contrast-color);
  text-decoration: underline;
}

.header .topbar .social-links a {
  color: color-mix(in srgb, var(--contrast-color), transparent 40%);
  line-height: 0;
  transition: 0.3s;
  margin-left: 20px;
}

.header .topbar .social-links a:hover {
  color: var(--contrast-color);
}

.header .branding {
  min-height: 60px;
  padding: 10px 0;
}

.header .logo {
  line-height: 1;
}

.header .logo img {
  max-height: 36px;
  margin-right: 8px;
}

.header .logo h1 {
  font-size: 30px;
  margin: 0;
  font-weight: 700;
  color: var(--heading-color);
}

/* BOTH IMAGE AND TEXT */
.header .logo-2 {
  line-height: 1;
}

.header .logo-2 img {
  max-height: 36px;
  margin-right: 8px;
}

.header .logo-2 h1 {
  font-size: 25px;
  margin: 0;
  font-weight: 700;
  color: var(--heading-color);
}

@media (max-width: 1199px) {
	.header .logo-2 h1 {
	font-size: 20px;
	margin: 0;
	font-weight: 700;
	color: var(--heading-color);
	}
}

.header .cta-btn,
.header .cta-btn:focus {
  color: var(--contrast-color);
  background: var(--accent-color);
  font-size: 14px;
  padding: 8px 25px;
  margin: 0 0 0 30px;
  border-radius: 50px;
  transition: 0.3s;
}

.header .cta-btn:hover,
.header .cta-btn:focus:hover {
  color: var(--contrast-color);
  background: color-mix(in srgb, var(--accent-color), transparent 15%);
}

@media (max-width: 1200px) {
  .header .logo {
    order: 1;
  }

  .header .cta-btn {
    order: 2;
    margin: 0 15px 0 0;
    padding: 6px 15px;
  }

  .header .navmenu {
    order: 3;
  }
}

.scrolled .header {
  box-shadow: 0px 0 18px rgba(0, 0, 0, 0.1);
}

.scrolled .header .topbar {
  height: 0;
  visibility: hidden;
  overflow: hidden;
}

/*--------------------------------------------------------------
/* Navigation Menu */
/* -------------------------------------------------------------- */
/* Desktop Navigation */
@media (min-width: 1200px) {
  .navmenu {
    padding: 0;
  }

  .navmenu ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
  }

  .navmenu li {
    position: relative;
  }

  .navmenu>ul>li {
    white-space: nowrap;
    padding: 15px 14px;
  }

  .navmenu>ul>li:last-child {
    padding-right: 0;
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-color);
    font-size: 15px;
    padding: 0 2px;
    font-family: var(--nav-font);
    font-weight: 400;
    display: flex;
    align-items: center;
    /*justify-content: space-between;*/
    white-space: nowrap;
    transition: 0.3s;
    position: relative;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    transition: 0.3s;
  }

  .navmenu>ul>li>a:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -6px;
    left: 0;
    background-color: var(--nav-hover-color);
    visibility: hidden;
    width: 0px;
    transition: all 0.3s ease-in-out 0s;
  }

  .navmenu a:hover:before,
  .navmenu li:hover>a:before,
  .navmenu .active:before {
    visibility: visible;
    width: 100%;
  }

  .navmenu li:hover>a,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-hover-color);
  }

  .navmenu .dropdown ul {
    margin: 0;
    padding: 10px 0;
    background: var(--nav-dropdown-background-color);
    display: block;
    position: absolute;
    visibility: hidden;
    left: 14px;
    top: 130%;
    opacity: 0;
    transition: 0.3s;
    border-radius: 4px;
    z-index: 99;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
  }

  .navmenu .dropdown ul li {
    min-width: 200px;
  }

  .navmenu .dropdown ul li:hover {
	background-color: var(--nav-dropdown-background-color-hover);
  }

  .navmenu .dropdown ul a {
    padding: 10px 20px;
    font-size: 15px;
    text-transform: none;
    color: var(--nav-dropdown-color);
  }

  .navmenu .dropdown ul a i {
    font-size: 12px;
  }

  .navmenu .dropdown ul a:hover,
  .navmenu .dropdown ul .active:hover,
  .navmenu .dropdown ul li:hover>a {
    color: var(--nav-dropdown-hover-color);
  }

  .navmenu .dropdown:hover>ul {
    opacity: 1;
    top: 100%;
    visibility: visible;
  }

  .navmenu .dropdown .dropdown ul {
    top: 0;
    left: -90%;
    visibility: hidden;
  }

  .navmenu .dropdown .dropdown:hover>ul {
    opacity: 1;
    top: 0;
    left: -100%;
    visibility: visible;
  }
}

/* Mobile Navigation */
@media (max-width: 1199px) {
  .mobile-nav-toggle {
    color: var(--nav-color);
    font-size: 28px;
    line-height: 0;
    margin-right: 10px;
    cursor: pointer;
    transition: color 0.3s;
  }

  .navmenu {
    padding: 0;
    z-index: 9997;
  }

  .navmenu ul {
    display: none;
    list-style: none;
    position: absolute;
    inset: 60px 20px 20px 20px;
    padding: 10px 0;
    margin: 0;
    border-radius: 6px;
    background-color: var(--nav-mobile-background-color);
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
    box-shadow: none;
    overflow-y: auto;
    transition: 0.3s;
    z-index: 9998;
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-dropdown-color);
    padding: 10px 20px;
    font-family: var(--nav-font);
    font-size: 17px;
    font-weight: 500;
    display: flex;
    align-items: center;
    /*justify-content: space-between;*/
    white-space: nowrap;
    transition: 0.3s;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
    background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  }

  .navmenu a i:hover,
  .navmenu a:focus i:hover {
    background-color: var(--accent-color);
    color: var(--contrast-color);
  }

  .navmenu a:hover,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-dropdown-hover-color);
  }

  .navmenu .active i,
  .navmenu .active:focus i {
    background-color: var(--accent-color);
    color: var(--contrast-color);
    transform: rotate(180deg);
  }

  .navmenu .dropdown ul {
    position: static;
    display: none;
    z-index: 99;
    padding: 10px 0;
    margin: 10px 20px;
    background-color: var(--nav-dropdown-background-color);
    transition: all 0.5s ease-in-out;
  }

  .navmenu .dropdown ul ul {
    background-color: rgba(33, 37, 41, 0.1);
  }

  .navmenu .dropdown>.dropdown-active {
    display: block;
    background-color: rgba(33, 37, 41, 0.03);
  }

  .mobile-nav-active {
    overflow: hidden;
  }

  .mobile-nav-active .mobile-nav-toggle {
    color: #fff;
    position: absolute;
    font-size: 32px;
    top: 15px;
    right: 15px;
    margin-right: 0;
    z-index: 9999;
  }

  .mobile-nav-active .navmenu {
    position: fixed;
    overflow: hidden;
    inset: 0;
    background: rgba(33, 37, 41, 0.8);
    transition: 0.3s;
  }

  .mobile-nav-active .navmenu>ul {
    display: block;
  }
}

/*--------------------------------------------------------------
/* Global Footer */
/* -------------------------------------------------------------- */
.footer {
  color: var(--default-color);
  /*background-color: var(--background-color);*/
  background-color: var(--footer-background-color);
  border-top: 1px solid color-mix(in srgb, var(--accent-color), transparent 75%);
  font-size: 14px;
  position: relative;
}

.footer .footer-top {
  padding-top: 50px;
}

.footer .footer-about .logo {
  line-height: 1;
  margin-bottom: 25px;
}

.footer .footer-about .logo img {
  max-height: 40px;
  margin-right: 6px;
}

.footer .footer-about .logo span {
  color: var(--heading-color);
  font-family: var(--heading-font);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 1px;
}

.footer .footer-about p {
  font-size: 14px;
  font-family: var(--heading-font);
}

.footer .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 50%);
  font-size: 16px;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  margin-right: 10px;
  transition: 0.3s;
}

.footer .social-links a:hover {
  color: var(--accent-color);
  border-color: var(--accent-color);
}

.footer h4 {
  font-size: 16px;
  font-weight: bold;
  position: relative;
  padding-bottom: 12px;
}

.footer .footer-links {
  margin-bottom: 30px;
}

.footer .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer .footer-links ul i {
  padding-right: 2px;
  font-size: 12px;
  line-height: 0;
}

.footer .footer-links ul li {
  padding: 10px 0;
  display: flex;
  align-items: center;
}

.footer .footer-links ul li:first-child {
  padding-top: 0;
}

.footer .footer-links ul a {
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  display: inline-block;
  line-height: 1;
}

.footer .footer-links ul a:hover {
  color: var(--accent-color);
}

.footer .footer-contact p {
  margin-bottom: 5px;
}

.footer .copyright {
  padding-top: 25px;
  padding-bottom: 25px;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.footer .copyright p {
  margin-bottom: 0;
}

.footer .credits {
  margin-top: 8px;
  font-size: 13px;
}

/*--------------------------------------------------------------
/* Preloader */
/* -------------------------------------------------------------- */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  background: var(--background-color);
  transition: all 0.6s ease-out;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #ffffff;
  border-color: var(--accent-color) transparent var(--accent-color) transparent;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 1.5s linear infinite;
}

@keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
/* Scroll Top Button */
/* -------------------------------------------------------------- */
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 99999;
  background-color: var(--accent-color);
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
}

.scroll-top i {
  font-size: 24px;
  color: var(--contrast-color);
  line-height: 0;
}

.scroll-top:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
  color: var(--contrast-color);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
/* Disable aos animation delay on mobile devices */
/* -------------------------------------------------------------- */
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/*--------------------------------------------------------------
/* Global Page Titles & Breadcrumbs */
/* -------------------------------------------------------------- */
.page-title {
  color: var(--default-color);
  background-color: var(--background-color);
  position: relative;
}

.page-title .heading {
  padding: 80px 0;
  border-top: 1px solid color-mix(in srgb, var(--accent-color), transparent 80%);
}

.page-title .heading h1 {
  font-size: 38px;
  font-weight: 700;
}

.page-title nav {
  background-color: color-mix(in srgb, var(--accent-color), transparent 94%);
  padding: 20px 0;
}

.page-title nav ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.page-title nav ol li+li {
  padding-left: 10px;
}

.page-title nav ol li+li::before {
  content: "/";
  display: inline-block;
  padding-right: 10px;
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

/*--------------------------------------------------------------
/* Global Sections */
/* -------------------------------------------------------------- */
section,
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 60px 0;
  scroll-margin-top: 72px;
  overflow: clip;
}

@media (max-width: 1199px) {

  section,
  .section {
    scroll-margin-top: 60px;
  }
}

/*--------------------------------------------------------------
/* Global Section Titles */
/* -------------------------------------------------------------- */
.section-title {
  text-align: center;
  padding-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 500;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
}

.section-title h2:before {
  content: "";
  position: absolute;
  display: block;
  width: 160px;
  height: 1px;
  background: color-mix(in srgb, var(--default-color), transparent 60%);
  left: 0;
  right: 0;
  bottom: 1px;
  margin: auto;
}

.section-title h2::after {
  content: "";
  position: absolute;
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent-color);
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
}

.section-title p {
  margin-bottom: 0;
}

/*--------------------------------------------------------------
/* Section Content */
/* -------------------------------------------------------------- */
.section-content {
	/*display: flex;*/
	background-color: var(--surface-color);
	padding-top: 10px;
  	padding-bottom: 10px;
}

/*--------------------------------------------------------------
/* Hero Section */
/* -------------------------------------------------------------- */
.hero {
  width: 100%;
  min-height: calc(100vh - 112px);
  padding: 80px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero .container {
  z-index: 3;
}

.hero .welcome h2 {
  margin: 0;
  font-size: 48px;
  font-weight: 700;
}

.hero .welcome p {
  font-size: 24px;
  margin: 0;
}

.hero .content {
  margin-top: 40px;
}

.hero .content .why-box {
  color: var(--contrast-color);
  background: var(--accent-color);
  padding: 30px;
  border-radius: 4px;
}

.hero .content .why-box h3 {
  color: var(--contrast-color);
  font-weight: 700;
  font-size: 34px;
  margin-bottom: 30px;
}

.hero .content .why-box p {
  margin-bottom: 30px;
}

.hero .content .why-box .more-btn {
  color: var(--contrast-color);
  background: color-mix(in srgb, var(--contrast-color), transparent 80%);
  display: inline-block;
  padding: 6px 30px 8px 30px;
  border-radius: 50px;
  transition: all ease-in-out 0.4s;
}

.hero .content .why-box .more-btn i {
  font-size: 14px;
}

.hero .content .why-box .more-btn:hover {
  background: var(--surface-color);
  color: var(--accent-color);
}

.hero .content .icon-box {
  text-align: center;
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface-color), transparent 20%);
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
  padding: 40px 30px;
  width: 100%;
}

.hero .content .icon-box i {
  font-size: 40px;
  color: var(--accent-color);
}

.hero .content .icon-box h4 {
  font-size: 20px;
  font-weight: 700;
  margin: 10px 0 20px 0;
}

.hero .content .icon-box p {
  font-size: 15px;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}

/*--------------------------------------------------------------
/* About Section */
/* -------------------------------------------------------------- */
.about .content h3 {
  font-size: 2rem;
  font-weight: 700;
}

.about .content ul {
  list-style: none;
  padding: 0;
}

.about .content ul li {
  display: flex;
  align-items: flex-start;
  margin-top: 40px;
}

.about .content ul i {
  flex-shrink: 0;
  font-size: 48px;
  color: var(--accent-color);
  margin-right: 20px;
}

.about .content ul h5 {
  font-size: 18px;
  font-weight: 700;
}

.about .content ul p {
  font-size: 15px;
}

.about .content p:last-child {
  margin-bottom: 0;
}

.about .pulsating-play-btn {
  position: absolute;
  left: calc(50% - 47px);
  top: calc(50% - 47px);
}

/*--------------------------------------------------------------
/* Stats Section */
/* -------------------------------------------------------------- */
.stats i {
  color: var(--contrast-color);
  background-color: var(--accent-color);
  box-shadow: 0px 2px 25px rgba(0, 0, 0, 0.1);
  width: 54px;
  height: 54px;
  font-size: 24px;
  border-radius: 50px;
  border: 2px solid var(--background-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.stats .stats-item {
  background-color: var(--surface-color);
  margin-top: -27px;
  padding: 30px 30px 25px 30px;
  width: 100%;
  position: relative;
  text-align: center;
  box-shadow: 0px 2px 35px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  z-index: 0;
}

.stats .stats-item span {
  font-size: 32px;
  display: block;
  margin: 10px 0;
  font-weight: 700;
  color: var(--heading-color);
}

.stats .stats-item p {
  padding: 0;
  margin: 0;
  font-family: var(--heading-font);
  font-size: 16px;
}

/*--------------------------------------------------------------
/* Report style */
/* -------------------------------------------------------------- */
.visa-rapport-report-meta {
  background-color: var(--gray-200);
  padding: 1.5rem;
  border-radius: 0.375rem;
  margin-bottom: 2rem;
  border: 1px solid var(--gray-300);
}

.visa-rapport-report-field {
  margin-bottom: 1.5rem;
  padding: 0.5rem;
  background-color: var(--gray-50);
  border-radius: 0.375rem;
  border-left: 4px solid var(--blue-primary);
  transition: all 0.3s ease;
  text-align: left;
}

.visa-rapport-report-field-label {
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.visa-rapport-report-field-value {
  color: var(--text-dark);
  font-size: 1.1rem;
  line-height: 1.5;
}

/*--------------------------------------------------------------
/* Notification Bell Button */
/* -------------------------------------------------------------- */
.notification-dropdown {
	padding-left: 10px;
    display: none;
}

.notification-bell {
	text-decoration: none;
	color: var(--gray-800) !important;
	padding: 0.5rem;
	border: none;
	background: transparent;
}

.notification-bell:hover {
	color: var(--gray-600) !important;
	background: transparent;
}

.notification-bell:focus {
	box-shadow: none;
	outline: none;
}

.notification-bell .badge {
	font-size: 0.65rem;
	padding: 0.25em 0.45em;
}

/* Notification Dropdown Menu */
.notification-menu {
	min-width: 350px;
	max-width: 400px;
	max-height: 500px;
	overflow-y: auto;
	box-shadow: 0 0.5rem 1rem var(--shadow-md);
	padding-top: 0px;
}

.notification-menu .dropdown-header {
	padding: 0.75rem 1rem;
	background-color: var(--gray-50);
	border-bottom: 1px solid var(--gray-300);
	position: sticky;
	top: 0;
	z-index: 1;
}

.notification-menu .dropdown-item {
	white-space: normal;
	word-wrap: break-word;
	padding: 0.75rem 1rem;
	border-bottom: 1px solid var(--gray-200);
}

.notification-menu .dropdown-item:hover {
	background-color: var(--gray-50);
}

.notification-unread {
	background-color: var(--blue-light) !important;
	border-left: 3px solid var(--blue-primary);
}

.notification-unread:hover {
	background-color: var(--blue-lighter) !important;
}

.notification-title {
	font-size: 0.9rem;
	max-width: 250px;
}

.notification-preview {
	font-size: 0.85rem;
	line-height: 1.3;
}

/* Mobile: Hide dropdown, show simple link instead */
@media (max-width: 768px) {
    .notification-dropdown .dropdown-menu {
		display: none !important;
	}
	
	.notification-bell {
		pointer-events: none;
	}
	
	.notification-dropdown {
		position: relative;
		display: none;
	}
	
	.notification-dropdown::after {
		content: '';
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
	}
	
	.notification-dropdown a {
		pointer-events: all;
	}
}

/*--------------------------------------------------------------
/* Utility classes */
/* -------------------------------------------------------------- */
.no-print {
    /* Styles for elements that shouldn't print */
}

@media print {
    .no-print {
        display: none !important;
    }
}

/*--------------------------------------------------------------
/* Status Badges */
/* -------------------------------------------------------------- */
.status-badge {
	padding: 0.35rem 0.75rem;
	border-radius: 20px;
	font-size: 0.85rem;
	font-weight: 500;
	display: inline-block;
}

.status-inskickad {
	background: var(--status-inskickad-bg);
	color: var(--status-inskickad-text);
}

.status-kontrolleras {
	background: var(--status-kontrolleras-bg);
	color: var(--status-kontrolleras-text);
}

.status-godkand {
	background: var(--status-godkand-bg);
	color: var(--status-godkand-text);
}

.status-avvisad {
	background: var(--status-avvisad-bg);
	color: var(--status-avvisad-text);
}

.status-utkast {
	background: var(--status-utkast-bg);
	color: var(--status-utkast-text);
}

/*--------------------------------------------------------------
/* Dashboard Page Styles */
/* -------------------------------------------------------------- */
.dashboard-create-report-section {
	background: var(--white);
	border: 2px solid var(--gray-200);
	border-radius: 8px;
	padding: 1.75rem 2rem;
	margin-bottom: 2rem;
	transition: border-color 0.3s ease;
}

.dashboard-create-report-section:hover {
	border-color: var(--gray-400);
}

.dashboard-create-report-section h4 {
	color: var(--text-dark);
	margin-bottom: 0.5rem;
	font-weight: 600;
	font-size: 1.25rem;
}

.dashboard-create-report-section p {
	color: var(--text-muted);
	margin-bottom: 0;
	font-size: 0.95rem;
}

.dashboard-btn-create-report {
	background: var(--success-green);
	color: var(--white);
	font-weight: 500;
	padding: 0.65rem 1.75rem;
	border-radius: 6px;
	transition: all 0.2s ease;
	border: none;
}

.dashboard-btn-create-report:hover {
	background: var(--success-green-hover);
	color: var(--white);
	transform: translateY(-1px);
}

.dashboard-table-actions .btn {
	padding: 0.25rem 0.75rem;
	font-size: 0.875rem;
}

.dashboard-table th,
.dashboard-table td {
	white-space: nowrap;
}

.dashboard-table th:nth-child(1),
.dashboard-table td:nth-child(1) {
	min-width: 100px;
}

.dashboard-table th:nth-child(2),
.dashboard-table td:nth-child(2) {
	min-width: 160px;
}

.dashboard-table th:nth-child(3),
.dashboard-table td:nth-child(3) {
	min-width: 160px;
}

.dashboard-table th:nth-child(4),
.dashboard-table td:nth-child(4) {
	min-width: 120px;
}

.dashboard-table th:nth-child(5),
.dashboard-table td:nth-child(5) {
	min-width: 100px;
}

.dashboard-empty-state {
	padding: 4rem 2rem;
	text-align: center;
}

.dashboard-empty-state i {
	font-size: 4rem;
	color: var(--gray-300);
	margin-bottom: 1.5rem;
}

.dashboard-empty-state h5 {
	color: var(--text-muted);
	margin-bottom: 1rem;
}

.dashboard-filter-bar {
	margin-bottom: 1.5rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
}

.dashboard-report-count {
	color: var(--text-muted);
	font-size: 0.95rem;
}

@media (max-width: 768px) {
	.dashboard-create-report-section {
		padding: 1.5rem;
	}
	
	.dashboard-filter-bar {
		flex-direction: column;
		align-items: stretch;
	}
}
/* ========================================================
   Visa Rapport Page Styles
   ======================================================== */

/* Comment Styles */
.visa-rapport-comment-item {
    background: var(--gray-50);
    transition: box-shadow 0.2s ease;
}
.visa-rapport-comment-item:hover {
    box-shadow: 0 2px 8px var(--shadow-sm);
}
.visa-rapport-comment-content {
    white-space: pre-wrap;
    word-wrap: break-word;
}
.visa-rapport-comment-edit-form {
    display: none;
}
.visa-rapport-comment-edit-form.active {
    display: block;
}

/* Mobile-friendly comment styles */
@media (max-width: 768px) {
  .visa-rapport-comment-photos {
    overflow-x: auto;
  }
  .visa-rapport-photo-thumbnail {
    display: inline-block;
    margin-right: 0.5rem;
  }
  .visa-rapport-comment-photo-thumb {
    max-height: 80px !important;
    max-width: 80px !important;
  }
}

.visa-rapport-photo-delete-form {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.visa-rapport-photo-thumbnail:hover .visa-rapport-photo-delete-form {
    opacity: 1;
}

/* Photo preview styles for upload form */
.visa-rapport-photo-preview-item {
    position: relative;
    display: inline-block;
}

.visa-rapport-photo-preview-img {
    max-height: 100px;
    max-width: 100px;
    object-fit: cover;
    border-radius: 4px;
}

.visa-rapport-photo-preview-remove {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--danger-red);
    color: var(--white);
    border: 2px solid var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
    transition: background-color 0.2s ease;
}

.visa-rapport-photo-preview-remove:hover {
    background: #c82333;
}

/* Lightbox Styles */
.visa-rapport-lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--shadow-darkest);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.visa-rapport-lightbox-overlay.active {
    display: flex;
}

.visa-rapport-lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.visa-rapport-lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    display: block;
    margin: 0 auto;
}

.visa-rapport-lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: var(--white);
    font-size: 40px;
    cursor: pointer;
    background: var(--shadow-overlay);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.visa-rapport-lightbox-close:hover {
    background: var(--shadow-dark);
}

/* Print Header - Hidden on screen, shown when printing */
.visa-rapport-print-header {
    display: none;
}

/* Report Metadata */
.visa-rapport-report-meta table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.visa-rapport-report-meta table th,
.visa-rapport-report-meta table td {
    border: 1px solid var(--gray-300);
    padding: 0.75rem;
    text-align: left;
}

.visa-rapport-report-meta table th {
    background-color: var(--gray-50);
    font-weight: 600;
    width: 20%;
}

/* Print Styles */
@media print {
    /* Hide navigation and non-essential elements */
    .no-print,
    .navbar,
    .visa-rapport-comments-section,
    .btn,
    button {
        display: none !important;
    }
    
    /* Report metadata table for print */
    .visa-rapport-report-meta table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 1rem;
    }
    
    .visa-rapport-report-meta table th,
    .visa-rapport-report-meta table td {
        border: 1px solid #ddd;
        padding: 8px;
        text-align: left;
    }
    
    .visa-rapport-report-meta table th {
        background-color: #f8f9fa;
        font-weight: bold;
        width: 20%;
    }
    
    /* Card styles for print */
    .card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
        page-break-inside: avoid;
    }
    
    .card-header {
        background-color: #f8f9fa !important;
        border-bottom: 1px solid #ddd !important;
        padding: 0.75rem 1rem !important;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
    
    .card-body {
        padding: 1rem !important;
    }
    
    /* Report field table for print */
    .visa-rapport-report-field-table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 1rem;
    }
    
    .visa-rapport-report-field-table td {
        border: 1px solid #ddd;
        padding: 8px;
    }
    
    .visa-rapport-report-field-table td.field-label {
        background-color: #f8f9fa;
        font-weight: bold;
        width: 100%;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
    
    .visa-rapport-report-field-table td.field-value {
        width: 100%;
    }
    
    /* Badge styling for print */
    .badge {
        border: 1px solid #000 !important;
        color: #000 !important;
        background-color: #fff !important;
        padding: 2px 6px !important;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
    
    /* Print header */
    .visa-rapport-print-header {
        display: block !important;
        text-align: center;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid #333;
    }
    
    .visa-rapport-print-header h1 {
        font-size: 24px;
        margin: 0 0 0.5rem 0;
    }
    
    .visa-rapport-print-header p {
        margin: 0;
        font-size: 12px;
        color: #666;
    }
    
    /* General print optimizations */
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    /* Avoid page breaks inside important elements */
    .visa-rapport-report-field,
    .visa-rapport-report-meta,
    .card {
        page-break-inside: avoid;
    }
}

/* ========================================================
   Stats Page Styles
   ======================================================== */

/* Compact colored dot for central status */
.stats-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}
.stats-dot-success { background: var(--success-stat); }
.stats-dot-warning { background: var(--warning-yellow); }
.stats-dot-danger  { background: var(--danger-red); }

/* Make the central list scrollable if long */
.stats-central-list {
    max-height: 420px;
    overflow-y: auto;
}

/* Trend indicators */
.stats-trend-indicator {
    font-size: 0.9rem;
    font-weight: 600;
}
.stats-trend-up { color: var(--success-stat); }
.stats-trend-down { color: var(--danger-red); }
.stats-trend-neutral { color: var(--text-muted); }

/* Heatmap styles */
.stats-hm-table { 
    width: 100%; 
    border-collapse: separate; 
    border-spacing: 2px; 
}
.stats-hm-table th, 
.stats-hm-table td { 
    text-align: center; 
    padding: 6px 4px; 
    font-size: 12px; 
}
.stats-hm-cell { 
    border-radius: 4px; 
    color: #fff; 
}
.stats-hm-zero { 
    background: var(--gray-100); 
    color: var(--text-muted); 
}

/* Heatmap interactive cursor */
.stats-hm-cell:hover {
    cursor: pointer;
    opacity: 0.8;
}

/* Mobile chart optimization */
@media (max-width: 768px) {
    canvas {
        max-height: 250px !important;
    }
}

/* ========================================================
   Login Page Styles
   ======================================================== */

select, input[type="text"], input[type="password"], input[type="email"], textarea {
	background-color: var(--background-color);
	color: var(--default-color);
}

select:focus, input[type="text"]:focus, input[type="password"]:focus, input[type="email"]:focus, textarea:focus {
	background-color: var(--background-color);
	color: var(--default-color);
	box-shadow: 0 0 0 0.2rem var(--blue-light);
	border-color: var(--blue-primary);
}

/* Custom button sizes */
.login-btn-xl {
    --bs-btn-padding-y: 0.625rem;
    --bs-btn-padding-x: 1.25rem;
    --bs-btn-font-size: calc(1.26rem + 0.12vw);
    --bs-btn-border-radius: var(--bs-border-radius-lg);
}
@media(min-width:1200px) {
    .login-btn-xl {
        --bs-btn-font-size: 1.35rem;
    }
}
.login-btn-2xl {
    --bs-btn-padding-y: 0.75rem;
    --bs-btn-padding-x: 1.5rem;
    --bs-btn-font-size: calc(1.27rem + 0.24vw);
    --bs-btn-border-radius: var(--bs-border-radius-lg);
}
@media(min-width:1200px) {
    .login-btn-2xl {
        --bs-btn-font-size: 1.45rem;
    }
}
.login-btn-3xl {
    --bs-btn-padding-y: 0.875rem;
    --bs-btn-padding-x: 1.75rem;
    --bs-btn-font-size: calc(1.28rem + 0.36vw);
    --bs-btn-border-radius: var(--bs-border-radius-lg);
}
@media(min-width:1200px) {
    .login-btn-3xl {
        --bs-btn-font-size: 1.55rem;
    }
}
.login-btn-4xl {
    --bs-btn-padding-y: 1rem;
    --bs-btn-padding-x: 2rem;
    --bs-btn-font-size: calc(1.29rem + 0.48vw);
    --bs-btn-border-radius: var(--bs-border-radius-lg);
}
@media(min-width:1200px) {
    .login-btn-4xl {
        --bs-btn-font-size: 1.65rem;
    }
}
.login-btn-5xl {
    --bs-btn-padding-y: 1.125rem;
    --bs-btn-padding-x: 2.25rem;
    --bs-btn-font-size: calc(1.3rem + 0.6vw);
    --bs-btn-border-radius: var(--bs-border-radius-lg);
}
@media(min-width:1200px) {
    .login-btn-5xl {
        --bs-btn-font-size: 1.75rem;
    }
}

/* ========================================================
   Profile Page Styles
   ======================================================== */

.profile-settings-container {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.profile-settings-sidebar {
    flex: 0 0 280px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow-sm);
    padding: 20px 0;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.profile-settings-sidebar .menu-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--gray-800);
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.profile-settings-sidebar .menu-item:hover {
    background-color: var(--gray-50);
    color: var(--blue-primary);
}

.profile-settings-sidebar .menu-item.active {
    background-color: var(--blue-light);
    color: var(--blue-primary);
    border-left-color: var(--blue-primary);
    font-weight: 600;
}

.profile-settings-sidebar .menu-item i {
    width: 24px;
    margin-right: 12px;
    font-size: 16px;
}

.profile-settings-content {
    flex: 1;
    min-width: 0;
}

.profile-settings-card {
    border: none;
    box-shadow: 0 2px 8px var(--shadow-sm);
    margin-bottom: 1.5rem;
    border-radius: 8px;
}

.profile-settings-card .card-header {
    background-color: var(--gray-50);
    border-bottom: 2px solid var(--blue-primary);
    font-weight: 600;
    padding: 1rem 1.5rem;
    border-radius: 8px 8px 0 0;
}

.profile-settings-card .card-body {
    padding: 1.5rem;
}

.profile-form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.profile-form-text {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.profile-form-check-label {
    margin-left: 0.5rem;
}

.profile-setting-group {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.profile-setting-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.profile-header {
    background: linear-gradient(135deg, var(--blue-gradient-start) 0%, var(--blue-gradient-end) 100%);
    color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--blue-gradient-start);
    font-weight: bold;
    flex-shrink: 0;
}

.profile-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}

.profile-info p {
    margin: 0;
    opacity: 0.9;
}

.profile-user-type-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    background: rgba(255,255,255,0.2);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.profile-password-strength {
    height: 5px;
    border-radius: 3px;
    margin-top: 0.5rem;
    background: var(--gray-200);
    overflow: hidden;
}

.profile-password-strength-bar {
    height: 100%;
    transition: all 0.3s;
    width: 0%;
}

.profile-password-strength-bar.weak {
    width: 33%;
    background: var(--danger-red);
}

.profile-password-strength-bar.medium {
    width: 66%;
    background: var(--warning-yellow);
}

.profile-password-strength-bar.strong {
    width: 100%;
    background: var(--success-green);
}

.profile-notification-option {
    padding: 1rem;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    margin-bottom: 1rem;
    transition: all 0.2s;
}

.profile-notification-option:hover {
    background-color: var(--gray-50);
    border-color: var(--blue-primary);
}

.profile-notification-option .form-check {
    margin: 0;
}

.profile-notification-option .profile-notification-title {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.profile-notification-option .profile-notification-description {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

@media (max-width: 992px) {
    .profile-settings-container {
        flex-direction: column;
    }
    
    .profile-settings-sidebar {
        flex: 0 0 auto;
        position: relative;
        top: 0;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }
}

/* ========================================================
   Notifications Page Styles
   ======================================================== */

.notification-item {
    border-left: 4px solid transparent;
    transition: all 0.2s;
}
.notification-item.unread {
    background-color: var(--blue-light);
    border-left-color: var(--blue-primary);
}
.notification-item:hover {
    background-color: var(--gray-50);
}

/* ========================================================
   Export Stats Page Styles (PDF output)
   ======================================================== */

.export-stats-body { 
    font-family: DejaVu Sans, Arial, sans-serif; 
    font-size: 12px; 
}
.export-stats-h2 { 
    margin: 0 0 10px 0; 
}
.export-stats-table { 
    width: 100%; 
    border-collapse: collapse; 
}
.export-stats-th, 
.export-stats-td { 
    border: 1px solid var(--gray-400); 
    padding: 6px 8px; 
}
.export-stats-th { 
    background: var(--gray-100); 
}
.export-stats-small { 
    color: var(--text-muted); 
    font-size: 11px; 
    margin-bottom: 10px; 
}

/* ========================================================
   Test Reminders Page Styles
   ======================================================== */

.test-reminders-output-box {
    background-color: #f5f5f5;
    color: #444;
    padding: 20px;
    border-radius: 5px;
    font-family: ''Courier New'', monospace;
    font-size: 14px;
    white-space: pre-wrap;
    max-height: 600px;
    overflow-y: auto;
}

.test-reminders-btn-test {
    margin-bottom: 20px;
}

/* ========================================================
   Formular Form Builder Page Styles
   ======================================================== */

.formular-field-item {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.formular-field-item:hover {
    background: var(--gray-100);
    box-shadow: 0 2px 8px var(--shadow-sm);
    transform: translateY(-1px);
}

.formular-field-item.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
    z-index: 1000;
}

.formular-field-item.drag-over {
    border-color: var(--blue-primary);
    background: var(--blue-light);
    border-style: dashed;
}

.formular-drag-handle {
    cursor: grab;
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-right: 0.5rem;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

.formular-drag-handle:hover {
    background: var(--gray-300);
    color: var(--text-secondary);
}

.formular-drag-handle:active {
    cursor: grabbing;
}

.formular-field-actions {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
}

.formular-field-preview {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 0.25rem;
    padding: 1rem;
    margin-top: 0.5rem;
}

.formular-sortable-placeholder {
    background: var(--blue-light);
    border: 2px dashed var(--blue-primary);
    border-radius: 0.375rem;
    height: 60px;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-primary);
    font-weight: 500;
}

.formular-field-type-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.formular-required-indicator {
    color: #dc3545;
    font-weight: bold;
}

.formular-live-preview {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 0.375rem;
    padding: 2rem;
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.formular-live-preview h5 {
    border-bottom: 2px solid var(--blue-primary);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.formular-preview-field {
    margin-bottom: 1.5rem;
}

.formular-preview-field:last-child {
    margin-bottom: 0;
}

.formular-no-fields-message {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    padding: 2rem;
}

.formular-builder-container {
    min-height: 100vh;
}

.formular-edit-field-form {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 0.375rem;
    padding: 1rem;
    margin-top: 0.5rem;
}

.formular-field-item.editing {
    background: #fff3cd;
    border-color: #ffeaa7;
}

.formular-field-item.editing .formular-drag-handle {
    display: none !important;
}

.formular-save-form-btn {
    position: sticky;
    top: 20px;
    z-index: 100;
    margin-bottom: 1rem;
}

.formular-unsaved-changes {
    background: linear-gradient(45deg, #ffc107, #fd7e14);
    animation: formular-pulse 2s infinite;
}

@keyframes formular-pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.formular-changes-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
    padding: 0.5rem 1rem;
    background: var(--warning-yellow);
    color: #000;
    border-radius: 0.375rem;
    box-shadow: 0 4px 12px var(--shadow-md);
    display: none;
}

.formular-changes-indicator.show {
    display: block;
    animation: formular-slideIn 0.3s ease;
}

@keyframes formular-slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.formular-temp-field {
    border-left: 4px solid #28a745;
    background: #f8fff9;
}

.formular-edited-field {
    border-left: 4px solid #ffc107;
    background: #fffef8;
}

.formular-deleted-field {
    border-left: 4px solid #dc3545;
    background: #fff8f8;
    opacity: 0.7;
}

.formular-options-field {
    display: none;
}

.formular-options-field.show {
    display: block;
}

.formular-options-textarea {
    min-height: 100px;
    resize: vertical;
}

.formular-field-content {
    pointer-events: none;
    padding-right: 6rem;
}

.formular-field-item.editing .formular-field-content {
    pointer-events: auto;
}

.formular-field-item:not(.editing) .formular-field-content {
    cursor: default;
}

/* ========================================================
   System Settings Page Styles
   ======================================================== */

.system-settings-container {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.system-settings-sidebar {
    flex: 0 0 280px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow-sm);
    padding: 20px 0;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.system-settings-sidebar .menu-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--gray-800);
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.system-settings-sidebar .menu-item:hover {
    background-color: var(--gray-50);
    color: var(--blue-primary);
}

.system-settings-sidebar .menu-item.active {
    background-color: var(--blue-light);
    color: var(--blue-primary);
    border-left-color: var(--blue-primary);
    font-weight: 600;
}

.system-settings-sidebar .menu-item i {
    width: 24px;
    margin-right: 12px;
    font-size: 16px;
}

.system-settings-content {
    flex: 1;
    min-width: 0;
}

.system-settings-card {
    border: none;
    box-shadow: 0 2px 8px var(--shadow-sm);
    margin-bottom: 1.5rem;
    border-radius: 8px;
}

.system-settings-card .card-header {
    background-color: var(--gray-50);
    border-bottom: 2px solid var(--blue-primary);
    font-weight: 600;
    padding: 1rem 1.5rem;
    border-radius: 8px 8px 0 0;
}

.system-settings-card .card-body {
    padding: 1.5rem;
}

.system-settings-form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.system-settings-form-text {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.system-settings-form-check-label {
    margin-left: 0.5rem;
}

.system-settings-setting-group {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.system-settings-setting-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.system-settings-input-group-text {
    min-width: 50px;
}

@media (max-width: 992px) {
    .system-settings-container {
        flex-direction: column;
    }
    
    .system-settings-sidebar {
        flex: 0 0 auto;
        position: relative;
        top: 0;
    }
}

.user-dropdown-menu {
	background-color: var(--user-dropdown-bg) !important;
	border-color: var(--user-dropdown-border-color) !important;
}

.user-dropdown-menu .dropdown-item:hover {
	background-color: var(--user-dropdown-hover-bg) !important;
	color: var(--user-dropdown-hover-color) !important;
}

.user-info {
	color: var(--user-info-color) !important;
}