/*--------------------------------------------------------------
# Load Local Fonts
--------------------------------------------------------------*/

@font-face {
  font-family: "Roboto";
  src: url("../fonts/Roboto/static/Roboto-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Raleway";
  src: url("../fonts/Raleway/static/Raleway-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins/Poppins-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/*--------------------------------------------------------------
# Font & Color Variables
--------------------------------------------------------------*/
/* 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: "Raleway", sans-serif;
  --nav-font: "Poppins", 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: #f8f4f4; /* Background color for the entire website, including individual sections */
  --default-color: #272829; /* Default color used for the majority of the text content across the entire website */
  --heading-color: #050d18; /* Color for headings, subheadings and title throughout the website */
  --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. */
  --border-color: #e2e8f0; /* Light gray for borders */
  --muted-color: #df0000; /* Muted text color */
  --success-color: #10b981; /* Green for success states */
  --warning-color: #f59e0b; /* Amber for warnings */
  --danger-color: #ef4444; /* Red for errors */
  --accent-color: #00aeff; /* Accent color that represents your brand on the website. It's used for buttons, links, and other elements that need to stand out */
  --accent-hover: #305c9d;
}

/* 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: #a8a9b4; /* The default color of the main navmenu links */
  --nav-hover-color: #ffffff; /* Applied to main navmenu links when they are hovered over or active */
  --nav-mobile-background-color: #040b14; /* Used as the background color for mobile navigation menu */
  --nav-dropdown-background-color: #040b14; /* Used as the background color for dropdown items that appear when hovering over primary navigation items */
  --nav-dropdown-color: #a8a9b4; /* Used for navigation links of the dropdown items in the navigation menu. */
  --nav-dropdown-hover-color: #ffffff; /* Similar to --nav-hover-color, this color is applied to dropdown navigation links when they are hovered over. */
}

/* 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: #f4fafd;
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #040b14;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #151f2b;
  --contrast-color: #ffffff;
}

/* 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);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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);
}

/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/
.header {
  color: var(--default-color);
  background-color: var(--background-color);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  padding: 0 15px;
  width: 300px;
  transition: all ease-in-out 0.3s;
  overflow-y: auto;
  z-index: 997;
  border-right: 1px solid
    color-mix(in srgb, var(--default-color), transparent 90%);
}

.header .profile-img img {
  margin: 15px auto;
  display: block;
  width: 120px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
}

.header .logo {
  line-height: 1;
  margin-bottom: 15px;
}

.header .logo img {
  max-height: 32px;
  margin-right: 8px;
}

.header .logo h1 {
  font-size: 24px;
  margin: 0;
  font-weight: 700;
  color: var(--heading-color);
}

.header .social-links {
  margin: 0 0 20px 0;
}

.header .social-links a {
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--default-color), transparent 90%);
  color: var(--default-color);
  margin: 0 2px;
  border-radius: 50%;
  text-align: center;
  width: 40px;
  height: 40px;
  transition: 0.3s;
}

.header .social-links a:hover {
  color: var(--contrast-color);
  background: var(--accent-color);
}

@media (min-width: 1200px) {
  .header ~ main,
  .header ~ #footer {
    margin-left: 300px;
  }
}

@media (max-width: 1199px) {
  .header {
    left: -100%;
  }
}

.header.header-show {
  left: 0;
}

.header .header-toggle {
  color: var(--contrast-color);
  background-color: var(--accent-color);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 9999;
  transition: background-color 0.3s;
}

.header .header-toggle:hover {
  color: var(--contrast-color);
  background-color: color-mix(in srgb, var(--accent-color) 90%, white 15%);
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
.mobile-nav-toggle {
  display: none;
}

.navmenu {
  padding: 0;
  z-index: 9997;
}

.navmenu ul {
  list-style: none;
  padding: 0 0 20px 0;
  margin: 0;
}

.navmenu a,
.navmenu a:focus {
  color: var(--nav-color);
  padding: 15px 10px;
  font-family: var(--nav-font);
  font-size: 16px;
  font-weight: 400;
  display: flex;
  align-items: center;
  white-space: nowrap;
  transition: 0.3s;
  width: 100%;
}

.navmenu a .navicon,
.navmenu a:focus .navicon {
  font-size: 20px;
  margin-right: 10px;
}

.navmenu a .toggle-dropdown,
.navmenu a:focus .toggle-dropdown {
  font-size: 12px;
  line-height: 0;
  margin-left: auto;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: 0.3s;
  flex-shrink: 0;
  background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
}

.navmenu a .toggle-dropdown:hover,
.navmenu a:focus .toggle-dropdown:hover {
  background-color: var(--accent-color);
  color: var(--contrast-color);
}

.navmenu a:hover,
.navmenu .active,
.navmenu .active:focus {
  color: var(--nav-hover-color);
}

.navmenu a:hover .navicon,
.navmenu .active .navicon,
.navmenu .active:focus .navicon {
  color: var(--accent-color);
}

.navmenu .active .toggle-dropdown,
.navmenu .active:focus .toggle-dropdown {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  transform: rotate(180deg);
}

.navmenu .dropdown {
  display: block;
}

.navmenu .dropdown a,
.navmenu .dropdown a:focus {
  color: var(--nav-dropdown-color);
}

.navmenu .dropdown a:hover,
.navmenu .dropdown .active,
.navmenu .dropdown .active:focus {
  color: var(--nav-dropdown-hover-color);
}

.navmenu .dropdown ul {
  position: static;
  display: none;
  z-index: 99;
  padding: 5px 10px;
  margin: 5px 10px;
  background-color: var(--nav-dropdown-background-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  box-shadow: none;
  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);
}

/*--------------------------------------------------------------
# Global Footer
--------------------------------------------------------------*/
.footer {
  color: var(--default-color);
  background-color: var(--background-color);
  border-top: 1px solid
    color-mix(in srgb, var(--default-color), transparent 90%);
  position: relative;
  z-index: 1;
}

.footer-content {
  width: 100%;
}

/* Footer Main Section */
.footer-main {
  padding: 60px 0 40px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.footer-section {
  margin-bottom: 20px;
}

/* Footer Logo */
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.footer-company-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--heading-color);
  margin: 0;
}

.footer-description {
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  line-height: 1.6;
  margin: 15px 0;
  font-size: 0.95rem;
}

/* Footer Headings */
.footer-heading {
  font-size: 1rem;
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent-color);
  border-radius: 1px;
}

/* Footer Links */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-link {
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  position: relative;
  padding-left: 0;
}

.footer-link:hover {
  color: var(--accent-color);
  padding-left: 8px;
  text-decoration: none;
}

.footer-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 1px;
  background: var(--accent-color);
  transition: width 0.3s ease;
  transform: translateY(-50%);
}

.footer-link:hover::before {
  width: 6px;
}

/* Footer Social Links */
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 80%);
  border-radius: 8px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.social-link:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
  border-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(20, 157, 221, 0.3);
}

/* Footer Contact */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  font-size: 0.9rem;
}

.contact-item i {
  color: var(--accent-color);
  font-size: 1rem;
  width: 16px;
  text-align: center;
}

/* Footer Bottom */
.footer-bottom {
  padding: 20px 0;
  background: var(--surface-color);
  border-top: 1px solid
    color-mix(in srgb, var(--default-color), transparent 90%);
}

.footer-copyright p {
  margin: 0;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  font-size: 0.9rem;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-bottom-link {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.footer-bottom-link:hover {
  color: var(--accent-color);
  text-decoration: none;
}

.footer-powered-by {
  color: color-mix(in srgb, var(--default-color), transparent 60%);
  font-size: 0.85rem;
}

.tech-badge {
  background: linear-gradient(135deg, #8ae7a0 0%, #20c997 100%);
  color: #ffffff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-left: 4px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .footer-main {
    padding: 40px 0 30px;
  }

  .footer-bottom-links {
    justify-content: center;
    margin-top: 15px;
  }

  .footer-copyright {
    text-align: center;
  }

  .footer-heading {
    margin-top: 20px;
  }
}

@media (max-width: 576px) {
  .footer-bottom-links {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  .footer-social {
    justify-content: center;
  }
}

/*--------------------------------------------------------------
# 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: 44px;
  height: 44px;
  border-radius: 50px;
  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;
  bottom: 15px;
}

/*--------------------------------------------------------------
# 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);
  padding: 25px 0;
  position: relative;
}

.page-title h1 {
  font-size: 24px;
  font-weight: 700;
}

.page-title .breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
}

.page-title .breadcrumbs ol li + li {
  padding-left: 10px;
}

.page-title .breadcrumbs 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;
  overflow: clip;
}

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-title {
  padding-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
}

.section-title h2:after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent-color);
  left: 0;
  bottom: 0;
}

.section-title p {
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about .content h2 {
  font-weight: 700;
  font-size: 24px;
}

.about .content ul {
  list-style: none;
  padding: 0;
}

.about .content ul li {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.about .content ul strong {
  margin-right: 10px;
}

.about .content ul i {
  font-size: 16px;
  margin-right: 5px;
  color: var(--accent-color);
  line-height: 0;
}

/*--------------------------------------------------------------
# Stats Section
--------------------------------------------------------------*/
.stats .stats-item {
  padding: 30px;
  width: 100%;
}

.stats .stats-item i {
  color: var(--accent-color);
  display: block;
  font-size: 44px;
  float: left;
  line-height: 0;
}

.stats .stats-item .purecounter {
  color: var(--heading-color);
  font-size: 48px;
  line-height: 40px;
  display: block;
  font-weight: 700;
  margin-left: 60px;
}

.stats .stats-item p {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  padding: 15px 0 0 0;
  margin: 0 0 0 60px;
  font-family: var(--heading-font);
  font-size: 14px;
}

/*--------------------------------------------------------------
# Starter Section Section
--------------------------------------------------------------*/
.starter-section {
  /* Add your styles here */
  font-size: 20px;
}

/*--------------------------------------------------------------
# Generic Section
--------------------------------------------------------------*/
.generic .content h2 {
  font-weight: 700;
  font-size: 24px;
}

.generic .content ul {
  list-style: none;
  padding: 0;
}

.generic .content ul li {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.generic .content ul strong {
  margin-right: 10px;
}

.generic .content ul i {
  font-size: 16px;
  margin-right: 5px;
  color: var(--accent-color);
  line-height: 0;
}

/*--------------------------------------------------------------
# Taken from djtickets css for form formatting
--------------------------------------------------------------*/
.content-section {
  background: #ffffff;
  padding: 10px 20px;
  border: 1px solid #dddddd;
  border-radius: 3px;
  margin-bottom: 20px;
}

/*--------------------------------------------------------------
# Enhanced Header Styles
--------------------------------------------------------------*/
/* Enhanced Header Styling */
.header {
  background: var(--nav-mobile-background-color);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.header .profile-img {
  margin: 1.5rem auto 1rem;
  text-align: center;
}

.header .profile-img img {
  width: 120px;
  height: 120px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  padding: 6px;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.header .profile-img img:hover {
  border-color: var(--accent-color);
  transform: scale(1.05);
}

.header .logo {
  margin-bottom: 1.5rem;
  text-align: center;
}

.header .logo .sitename {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--contrast-color);
  margin: 0;
  font-family: var(--heading-font);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Enhanced Navigation Styling */
.navmenu {
  flex: 1;
  padding: 0 1rem;
}

.navmenu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.navmenu .nav-item {
  margin-bottom: 0.5rem;
}

.navmenu .nav-link,
.navmenu .dropdown > a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--nav-color);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.navmenu .nav-link::before,
.navmenu .dropdown > a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background: var(--accent-hover);
  transition: width 0.3s ease;
  z-index: -1;
}

.navmenu .nav-link:hover::before,
.navmenu .dropdown > a:hover::before,
.navmenu .nav-link.active::before,
.navmenu .dropdown.active > a::before {
  width: 100%;
}

.navmenu .nav-link:hover,
.navmenu .dropdown > a:hover,
.navmenu .nav-link.active,
.navmenu .dropdown.active > a {
  color: var(--nav-hover-color);
  transform: translateX(4px);
}

.navmenu .navicon {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.navmenu .toggle-dropdown {
  margin-left: auto;
  transition: transform 0.3s ease;
}

.navmenu .dropdown.active .toggle-dropdown {
  transform: rotate(180deg);
}

/* Dropdown Styling */
.navmenu .dropdown ul {
  background: var(--nav-dropdown-background-color);
  border-radius: 8px;
  margin-top: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.navmenu .dropdown ul li {
  margin: 0;
}

.navmenu .dropdown ul a,
.navmenu .dropdown ul button {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1rem;
  color: var(--accent-color);
  text-decoration: none;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  border-radius: 0;
}

.navmenu .dropdown ul a:hover,
.navmenu .dropdown ul button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--nav-dropdown-hover-color);
}

/* Mobile Toggle Button */
.header-toggle {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  color: var(--nav-color);
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 1000;
}

.header-toggle:hover {
  color: var(--nav-hover-color);
}

/* Animation for nav items */
.navmenu .nav-item {
  animation: slideInLeft 0.3s ease-out;
  animation-fill-mode: both;
}

.navmenu .nav-item:nth-child(1) {
  animation-delay: 0.1s;
}
.navmenu .nav-item:nth-child(2) {
  animation-delay: 0.2s;
}
.navmenu .nav-item:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Active state for current page */
.navmenu .nav-link.active {
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

/* Hover effects for better interactivity */
.navmenu .nav-link:hover .navicon,
.navmenu .dropdown > a:hover .navicon {
  transform: scale(1.1);
  transition: transform 0.2s ease;
}

/*--------------------------------------------------------------
# Enhanced Footer Styles
--------------------------------------------------------------*/
/* Enhanced Footer Styling */
.footer {
  background: var(--nav-mobile-background-color);
  color: var(--contrast-color);
  padding: 1rem 0 0.5rem;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  position: relative;
}

.footer-content::before {
  display: none;
}

.footer-brand {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.footer-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-company {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  color: var(--contrast-color);
  font-family: var(--heading-font);
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  margin: 0 0 1rem 0;
}

.footer-powered {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.powered-text {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

.tech-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.tech-badge {
  background: rgba(0, 228, 102, 0.2);
  color: var(--accent-color);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid rgba(14, 165, 233, 0.3);
  transition: all 0.2s ease;
}

.tech-badges .tech-badge {
  color: #ffffff;
}

.tech-badge:hover {
  background: rgba(14, 165, 233, 0.3);
  transform: translateY(-1px);
}

/* Footer Responsive Design */
@media (max-width: 768px) {
  .footer {
    padding: 1.5rem 0 1rem;
  }

  .footer-brand {
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer-powered {
    flex-direction: column;
    gap: 0.5rem;
  }

  .tech-badges {
    justify-content: center;
  }
}

/* Animation for footer elements */
.footer-brand,
.footer-copyright,
.footer-powered {
  animation: fadeInUp 0.6s ease-out;
}

/*--------------------------------------------------------------
# Login Page Styles
--------------------------------------------------------------*/
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: flex-start; /* was center */
  justify-content: center;
  background: linear-gradient(135deg, var(--background-color) 0%, #eff6ff 100%);
  position: relative;
  overflow: hidden;
  padding-top: 4rem;
  padding-bottom: 2rem;
}

.login-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(
      circle at 25% 25%,
      rgba(99, 102, 241, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 75% 75%,
      rgba(99, 102, 241, 0.04) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.login-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  padding: 20px;
}

.login-card {
  background: var(--surface-color);
  border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.login-header {
  background: var(--accent-hover);
  color: var(--contrast-color);
  padding: 30px 30px 30px;
  text-align: center;
}

.login-logo {
  margin-bottom: 20px;
}

.logo-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  padding: 8px;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.login-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px 0;
  font-family: var(--heading-font);
}

.login-subtitle {
  font-size: 16px;
  opacity: 0.9;
  margin: 0;
  font-weight: 400;
}

.login-form-container {
  padding: 40px 30px;
}

.login-form {
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 30px;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: 8px;
  font-size: 14px;
}

.form-label i {
  color: var(--accent-color);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: var(--surface-color);
  color: var(--default-color);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-control::placeholder {
  color: var(--muted-color);
}

.error-message {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--danger-color);
  font-size: 13px;
  margin-top: 6px;
  font-weight: 500;
}

.login-btn {
  width: 100%;
  padding: 14px 20px;
  background: var(--accent-hover);
  color: var(--contrast-color);
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.2);
}

.login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 15px -3px rgba(99, 102, 241, 0.3);
}

.login-btn:active {
  transform: translateY(0);
}

.login-info {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted-color);
  margin-bottom: 8px;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-item i {
  font-size: 14px;
}

/* Login Responsive Design */
@media (max-width: 480px) {
  .login-wrapper {
    padding: 10px;
  }

  .login-header {
    padding: 30px 20px 20px;
  }

  .login-form-container {
    padding: 30px 20px;
  }

  .login-title {
    font-size: 24px;
  }

  .logo-img {
    width: 60px;
    height: 60px;
  }
}

/* Login Animation for form elements */
.form-control,
.login-btn {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Login Loading state for button */
.login-btn.loading {
  position: relative;
  color: transparent;
}

.login-btn.loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top: 2px solid var(--contrast-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Main Content Styles
--------------------------------------------------------------*/
.main-content {
  padding: 2rem 0;
  min-height: calc(100vh - 100px);
}

/* Browser Card Styling */
.browser-card {
  background: var(--surface-color);
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border-color);
  overflow: hidden;
  height: fit-content;
}

.browser-header {
  background: var(--accent-hover);
  color: var(--contrast-color);
  padding: 1.5rem;
}

.browser-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #ffffff;
}

.browser-path {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.path-label {
  font-size: 0.75rem;
  opacity: 0.8;
  font-weight: 500;
}

.path-value {
  font-size: 0.875rem;
  font-weight: 600;
  word-break: break-all;
}

.browser-content {
  padding: 1.5rem;
}

.back-button-wrapper {
  margin-bottom: 1rem;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--background-color);
  color: var(--default-color);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.back-button:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
  border-color: var(--accent-color);
  text-decoration: none;
}

/* File List Styling */
.file-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.file-item {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.file-item:hover {
  border-color: var(--accent-color);
  box-shadow: 0 2px 4px rgba(14, 165, 233, 0.1);
}

.file-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  text-decoration: none;
  color: var(--default-color);
  transition: all 0.2s ease;
}

.file-link:hover {
  background: var(--background-color);
  color: var(--default-color);
  text-decoration: none;
}

.file-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 6px;
  flex-shrink: 0;
}

.folder-item .file-icon {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning-color);
}

.pdf-item .file-icon {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger-color);
}

.file-info {
  flex: 1;
  min-width: 0;
}

.file-name {
  display: block;
  font-weight: 500;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
  word-break: break-word;
}

.file-type {
  display: block;
  font-size: 0.75rem;
  color: var(--muted-color);
}

.file-action {
  color: var(--muted-color);
  font-size: 0.875rem;
}

/* Selected PDF Styling */
.pdf-selected {
  background: rgba(14, 165, 233, 0.1) !important;
  border-color: var(--accent-color) !important;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1) !important;
}

.pdf-selected .file-action {
  color: var(--accent-color);
}

/* Viewer Card Styling */
.viewer-card {
  background: var(--surface-color);
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border-color);
  overflow: hidden;
  height: fit-content;
  min-height: 400px;
}

.viewer-header {
  background: var(--accent-hover);
  color: var(--contrast-color);
  padding: 1.5rem;
}

.viewer-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #ffffff;
}

.viewer-content {
  padding: 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Empty States */
.empty-state,
.empty-viewer {
  text-align: center;
  padding: 2rem;
}

.empty-icon {
  font-size: 3rem;
  color: var(--muted-color);
  margin-bottom: 1rem;
}

.empty-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--heading-color);
  margin: 0 0 0.5rem 0;
}

.empty-description {
  color: var(--muted-color);
  font-size: 0.875rem;
  margin: 0;
}

/* Loading State */
.loading-state {
  text-align: center;
  padding: 2rem;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color);
  border-top: 3px solid var(--accent-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

/* Main Content Responsive Design */
@media (max-width: 991.98px) {
  .main-content {
    padding: 1rem 0;
  }

  .browser-card,
  .viewer-card {
    margin-bottom: 1rem;
  }
}

@media (max-width: 575.98px) {
  .browser-header,
  .viewer-header {
    padding: 1rem;
  }

  .browser-content,
  .viewer-content {
    padding: 1rem;
  }

  .file-link {
    padding: 0.5rem;
  }

  .file-icon {
    width: 2rem;
    height: 2rem;
  }
}

/* Animation for file items */
.file-item {
  animation: fadeInUp 0.3s ease-out;
}

/*--------------------------------------------------------------
# Some form thing...cant rem
--------------------------------------------------------------*/
.form-control-sm {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  height: auto;
}

/*--------------------------------------------------------------
# Alert System Styles for alerts.js
--------------------------------------------------------------*/
.alert-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  max-width: 400px;
  pointer-events: none;
}

.alert-custom {
  background: var(--surface-color);
  border-left: 4px solid var(--accent-color);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-bottom: 10px;
  padding: 16px 20px;
  position: relative;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: auto;
  font-size: 14px;
  line-height: 1.4;
  color: var(--default-color);
  min-height: 60px;
  display: flex;
  align-items: center;
  word-wrap: break-word;
}

.alert-custom.show {
  opacity: 1;
  transform: translateX(0);
}

.alert-custom.fade-out {
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
}

/* Alert Types */
.alert-success {
  border-left-color: var(--success-color);
  background: color-mix(in srgb, var(--success-color) 5%, var(--surface-color));
}

.alert-danger {
  border-left-color: var(--danger-color);
  background: color-mix(in srgb, var(--danger-color) 5%, var(--surface-color));
}

.alert-warning {
  border-left-color: var(--warning-color);
  background: color-mix(in srgb, var(--warning-color) 5%, var(--surface-color));
}

.alert-info {
  border-left-color: var(--accent-color);
  background: color-mix(in srgb, var(--accent-color) 5%, var(--surface-color));
}

/* Close Button */
.alert-custom .btn-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  font-size: 18px;
  font-weight: bold;
  color: var(--muted-color);
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.alert-custom .btn-close:hover {
  color: var(--default-color);
}

/* Progress Bar */
.alert-custom::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--accent-color);
  width: 100%;
  animation: progress var(--life, 5000ms) linear;
  border-radius: 0 0 8px 8px;
}

.alert-success::after {
  background: var(--success-color);
}

.alert-danger::after {
  background: var(--danger-color);
}

.alert-warning::after {
  background: var(--warning-color);
}

@keyframes progress {
  from {
    width: 100%;
  }
  to {
    width: 0%;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .alert-container {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }

  .alert-custom {
    margin-bottom: 8px;
    padding: 12px 16px;
    font-size: 13px;
  }
}

/*--------------------------------------------------------------
# Home Page Card Button Alignment
--------------------------------------------------------------*/
.card.h-100 .card-body {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card.h-100 .card-body .btn {
  margin-top: auto;
}
