/* ========================================
   EEPIS Information System (EIS) Styles
   ======================================== */

body {
  background-image: url('../img/bg.jpg');
  background-repeat: repeat;
  font-family: "Helvetica Neue", Arial, sans-serif;
  padding-top: 56px;
}

/* ==================== 
   Navigation Bar 
   ==================== */
.site-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background: #102573;
  border-bottom: 4px solid #0b2b5a;
}

.site-navbar .nav-link,
.site-navbar .navbar-brand {
  color: #fff !important;
  transition: all 0.3s ease;
  position: relative;
}

.site-navbar .nav-link {
  padding: 8px 16px;
  margin: 0 4px;
  border-radius: 6px;
}

.site-navbar .nav-link:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.site-navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #2d9bf0;
  transition: width 0.3s ease;
}

.site-navbar .nav-link:hover::after {
  width: 80%;
}

.site-navbar .navbar-brand:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

/* ==================== 
   Main Container 
   ==================== */
.main-wrap {
  max-width: 1000px;
  margin: 28px auto 80px;
  background: #fff;
  border-radius: 10px;
  padding: 22px;
  box-shadow: 0 8px 28px rgba(10, 10, 10, 0.18);
}

/* ==================== 
   Site Header 
   ==================== */
.site-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 12px;
}

.logo {
  width: 150px;
  height: 100px;
  background: transparent;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #0b3a6f;
}

.site-title {
  font-size: 28px;
  color: #0b3a6f;
  font-weight: 700;
}

.site-sub {
  color: #b83b2f;
  font-size: 15px;
}

/* ==================== 
   Search Box 
   ==================== */
.search-box {
  margin-left: auto;
}

.search-box .input-group {
  width: 280px;
  box-shadow: 0 2px 8px rgba(16, 37, 115, 0.15);
  border-radius: 8px;
  overflow: hidden;
}

.search-box .form-control {
  border: 2px solid #e0e5f0;
  border-right: none;
  padding: 10px 15px;
  font-size: 14px;
  background: #fafbfd;
}

.search-box .form-control:focus {
  border-color: #2d9bf0;
  box-shadow: none;
  background: #fff;
}

.search-box .btn-search {
  background: linear-gradient(135deg, #2d9bf0, #1b6fd6);
  border: none;
  padding: 10px 20px;
  color: #fff;
  transition: all 0.3s ease;
}

.search-box .btn-search:hover {
  background: linear-gradient(135deg, #0b5abf, #1a237e);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(29, 111, 214, 0.3);
}

.search-box .btn-search i {
  font-size: 15px;
}

/* ==================== 
   Hero Carousel 
   ==================== */
.hero {
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  margin-bottom: 18px;
  border: 6px solid #f8f9fb;
}

.hero img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.hero .carousel-caption {
  left: 20px;
  right: auto;
  bottom: 18px;
  text-align: left;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero .carousel-control-prev,
.hero .carousel-control-next {
  width: 50px;
}

.hero .carousel-indicators {
  margin-bottom: 10px;
}

/* ==================== 
   Info Cards 
   ==================== */
.info-card {
  border-radius: 8px;
  padding: 18px;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.info-blue {
  background: linear-gradient(90deg, #2d9bf0, #1b6fd6);
}

.info-blue:hover {
  background: linear-gradient(90deg, #1b6fd6, #0b5abf);
}

.info-green {
  background: linear-gradient(90deg, #2fb06f, #1b8b63);
}

.info-green:hover {
  background: linear-gradient(90deg, #1b8b63, #0d6b47);
}

.info-cyan {
  background: linear-gradient(90deg, #39d0e6, #13b7d0);
}

.info-cyan:hover {
  background: linear-gradient(90deg, #13b7d0, #0a9ab5);
}

.info-card .value {
  font-size: 20px;
  font-weight: 700;
}

/* ==================== 
   Content Columns 
   ==================== */
.cols {
  margin-top: 18px;
}

.col-list {
  background: #fafafa;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  padding: 0;
  min-height: 420px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.col-list:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.col-list h6 {
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  background: linear-gradient(135deg, #102573, #1b5fa8);
  padding: 12px 14px;
  margin: 0;
  border-bottom: 2px solid #0b2b5a;
}

.menu-header {
  cursor: pointer;
  position: relative;
  transition: background 0.3s ease;
}

.menu-header::after {
  content: '\f107';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: 14px;
  transition: transform 0.3s ease;
}

.menu-header.active::after {
  transform: rotate(180deg);
}

@media (min-width: 992px) {
  .menu-header {
    cursor: default;
  }
  
  .menu-header::after {
    display: none;
  }
}

.col-list ul {
  list-style: none;
  padding: 14px;
  margin: 0;
}

.col-list ul li {
  padding: 8px 12px;
  font-size: 13px;
  color: #333;
  margin: 4px 0;
  border-radius: 4px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.col-list ul li:hover {
  background: #e8f0fe;
  color: #102573;
  transform: translateX(5px);
  padding-left: 16px;
  box-shadow: 0 2px 5px rgba(16, 37, 115, 0.1);
}

/* ==================== 
   Visitor Counter 
   ==================== */
.visitor-box {
  background: linear-gradient(180deg, #15367b, #0a2a63);
  color: #fff;
  padding: 14px;
  border-radius: 8px;
  text-align: center;
  margin-top: 12px;
}

.visitor-box .count {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 2px;
}

/* ==================== 
   Footer 
   ==================== */
footer {
  margin-top: 28px;
  padding: 18px 20px;
  font-size: 12px;
  background: #f8f9fa;
  border-top: 2px solid #e0e0e0;
  border-bottom: 2px solid #e0e0e0;
  border-right: 2px solid #e0e0e0;
  border-left: 2px solid #e0e0e0;
  border-radius: 6px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  height: 50px;
  width: auto;
  margin-right: 8px;
  vertical-align: middle;
}

.upt-link {
  text-decoration: none;
  color: #0b3a6f;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.upt-link:hover {
  color: #1b5fa8;
}

.footer-right {
  text-align: right;
}

.login-text {
  color: #333;
  font-size: 11px;
}

.email-text {
  color: #333;
  font-size: 11px;
}

.admin-text {
  color: #333;
  font-size: 11px;
}

.footer-bottom {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #ddd;
  color: #888;
  font-size: 11px;
}

/* ==================== 
   Responsive Design 
   ==================== */

/* Desktop Large (1200px and above) */
@media (min-width: 1200px) {
  .main-wrap {
    max-width: 1000px;
  }
}

/* Desktop (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
  .main-wrap {
    max-width: 960px;
  }
  
  .site-title {
    font-size: 24px;
  }
  
  .site-sub {
    font-size: 13px;
  }
}

/* Tablet (768px to 991px) */
@media (max-width: 991px) {
  body {
    padding-top: 70px;
  }
  
  .main-wrap {
    margin: 20px 16px 40px;
    padding: 18px;
  }
  
  .site-header {
    flex-direction: column;
    text-align: center;
  }
  
  .logo {
    width: 100px;
    height: 70px;
  }
  
  .site-title {
    font-size: 20px;
  }
  
  .site-sub {
    font-size: 12px;
  }
  
  .search-box {
    margin-left: 0;
    width: 100%;
    margin-top: 10px;
  }
  
  .search-box .input-group {
    width: 100%;
  }
  
  .hero img {
    height: 220px;
  }
  
  .info-card {
    padding: 14px;
  }
  
  .info-card:active {
    transform: translateY(-3px) scale(0.98);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  }
  
  .info-card .value {
    font-size: 18px;
  }
  
  .col-list {
    min-height: auto;
  }
  
  .collapse-mobile {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }
  
  .collapse-mobile.show {
    max-height: 1000px;
  }
  
  .cols .col-lg-4 {
    margin-bottom: 20px;
  }
  
  footer {
    text-align: center;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    align-items: center;
  }
  
  .footer-left,
  .footer-right {
    text-align: center;
    span {
      line-height: 0px;
    }
  }
  
  .upt-link {
    justify-content: center;
  }
  
  .login-text,
  .email-text,
  .admin-text {
    display: block;
    text-align: center;
  }
  
  .footer-bottom {
    text-align: center;
  }
  
  .footer-bottom p {
    text-align: center;
  }
}

/* Mobile (576px to 767px) */
@media (max-width: 767px) {
  .site-navbar .navbar-brand {
    font-size: 14px;
  }
  
  .site-navbar .nav-link {
    padding: 10px 12px;
    margin: 4px 0;
  }
  
  .hero img {
    height: 200px;
  }
  
  .hero .carousel-caption {
    left: 10px;
    bottom: 10px;
  }
  
  .hero .carousel-caption h4 {
    font-size: 16px;
  }
  
  .hero .carousel-caption small {
    font-size: 11px;
  }
  
  .info-card {
    padding: 12px;
  }
  
  .info-card .fa-2x {
    font-size: 1.5rem;
  }
  
  .col-list h6 {
    font-size: 12px;
    padding: 10px 12px;
  }
  
  .col-list ul {
    padding: 10px;
  }
  
  .col-list ul li {
    font-size: 12px;
    padding: 6px 10px;
  }
  
  .footer-logo {
    height: 40px;
  }
}

/* Mobile Small (below 576px) */
@media (max-width: 575px) {
  body {
    padding-top: 60px;
  }
  
  .main-wrap {
    margin: 15px 12px 30px;
    padding: 15px;
    border-radius: 8px;
  }
  
  .site-header {
    flex-direction: column;
    text-align: center;
  }
  
  .logo {
    width: 80px;
    height: 60px;
  }
  
  .site-title {
    font-size: 18px;
  }
  
  .site-sub {
    font-size: 11px;
  }
  
  .site-navbar .navbar-brand {
    font-size: 12px;
    padding: 0;
  }
  
  .site-navbar .container-fluid {
    padding: 0 10px;
  }
  
  .hero {
    border-radius: 8px;
    border: 4px solid #f8f9fb;
  }
  
  .hero img {
    height: 180px;
  }
  
  .hero .carousel-caption {
    padding: 8px;
  }
  
  .hero .carousel-caption h4 {
    font-size: 14px;
    margin-bottom: 2px;
  }
  
  .hero .carousel-caption small {
    font-size: 10px;
  }
  
  .info-card {
    padding: 10px;
  }
  
  .info-card:active {
    transform: translateY(-3px) scale(0.98);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  }
  
  .info-card .me-3 {
    margin-right: 10px !important;
  }
  
  .info-card .value {
    font-size: 16px;
  }
  
  .info-card div:not(.value) {
    font-size: 12px;
  }
  
  .cols {
    margin-top: 15px;
  }
  
  .col-list {
    margin-bottom: 15px;
  }
  
  .col-list h6 {
    font-size: 11px;
    padding: 8px 10px;
  }
  
  .col-list ul {
    padding: 8px;
  }
  
  .col-list ul li {
    font-size: 11px;
    padding: 5px 8px;
    margin: 2px 0;
  }
  
  .col-list ul li:hover {
    transform: translateX(3px);
    padding-left: 12px;
  }
  
  .visitor-box {
    padding: 12px;
    margin-top: 10px;
  }
  
  .visitor-box .count {
    font-size: 18px;
  }
  
  footer {
    margin-top: 20px;
    padding: 15px;
    text-align: center;
  }
  
  .footer-logo {
    height: 35px;
  }
  
  .footer-content {
    font-size: 11px;
    text-align: center;
    align-items: center;
  }
  
  .footer-left,
  .footer-right {
    text-align: center;
    span {
      line-height: 0px;
    }
  }
  
  .login-text,
  .email-text,
  .admin-text {
    font-size: 10px;
    text-align: center;
    display: block;
  }
  
  .footer-bottom {
    font-size: 10px;
    text-align: center;
  }
  
  .footer-bottom p {
    text-align: center;
  }
}

/* Extra Small Mobile (below 380px) */
@media (max-width: 379px) {
  .site-title {
    font-size: 16px;
  }
  
  .site-sub {
    font-size: 10px;
  }
  
  .hero img {
    height: 150px;
  }
  
  .info-card {
    padding: 8px;
  }
  
  .info-card .fa-2x {
    font-size: 1.2rem;
  }
  
  .col-list ul li {
    font-size: 10px;
  }
}