/* assets/css/style.css */
:root {
  --primary-color: #003f7f;
  --light-bg: #f5f7fa;
  --text-color: #333;
  --border-color: #ddd;
  --wallet1: #4CAF50;
  --wallet2: #2196F3;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--light-bg);
  color: var(--text-color);
}

/* Header */
.main-header {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  background: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  background:#E23744;
}

.logo img {
  height: 70px;
    width: 201px;
}

.marquee-container {
  flex: 1;
  margin: 0 20px;
}

.marquee-text {
  font-weight:bolder;
  color: var(--primary-color);
  font-size: 19px;
}

.header-icons {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Header Icons Styling */
.header-icons .icon {
  font-size: 17px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  background: #f5f7fa;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}

.header-icons .icon:hover {
  /*background: #e9ecef;*/
  transform: scale(1.1);
}

/* Wallet Icons */
.wallet-icon.wallet1 {
  background: var(--wallet1);
  color: white;
}
.wallet-icon.wallet2 {
  background: var(--wallet2);
  color: white;
}

/* Blinking YouTube Icon */
.blink {
  /*animation: blink 1s linear infinite;*/
  color: red;
}
@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0.4; }
  100% { opacity: 1; }
}

/* User Dropdown */
.user-dropdown {
  position: relative;
  cursor: pointer;
  background:pink;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 20px;
  background: #f0f8ff;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ddd;
}

.user-text {
  text-align: left;
}
.user-role { font-size: 12px; color: #666; }
.user-name { font-weight: bold; font-size: 14px; }
.user-arrow { font-size: 12px; color: #888; }

.user-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  border-radius: 6px;
  width: 220px;
  z-index: 1000;
  margin-top: 8px;
}

.user-menu a {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--text-color);
  gap: 10px;
}
.user-menu a:hover {
  background: #f0f8ff;
  color: var(--primary-color);
}
.user-menu .logout-link {
  color: #f44336;
}
.user-menu .logout-link:hover {
  background: #ffebee;
}
.user-menu.show {
  display: block;
}

/* Sidebar Base */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  
  background: linear-gradient(to bottom, #e23744, #df212f, #c91d2a, #b31a26);
  box-shadow: 2px 0 5px rgba(0,0,0,0.1);
  padding-top: 70px;
  z-index: 99;
  
  /*color:white;*/
}

.menu {
  list-style: none;
  height: 100vh;
  overflow-x: hidden;
  /* margin-top: 35%; */
/*background: linear-gradient(to bottom, #b31a26, #c91d2a, #df212f, #e23744);*/

}
.menu li {
  padding: 10px 15px;
/*background: linear-gradient(to bottom, #b31a26, #c91d2a, #df212f, #e23744);*/
color:#F4F4F2;

}
.menu a {
  text-decoration: none;
  color: #F4F4F2;
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  font-size: 17px;
/*background: linear-gradient(to bottom, #b31a26, #c91d2a, #df212f, #e23744);*/
color:white;
}
.menu a:hover {
  /*color: var(--primary-color);*/
  background:rgba(255, 255, 255, 0.2);;
}
.menu-heading {
  font-weight: bold;
  padding: 12px 15px 5px;
  color: var(--primary-color);
  font-size: 14px;
  text-transform: uppercase;
/*background: linear-gradient(to bottom, #b31a26, #c91d2a, #df212f, #e23744);*/

}
.menu-heading span {
  display: inline;
}

.dropdown .dropdown-menu {
    position: unset!important;
  display: none;
  margin-top: 5px;
  padding-left: 28px;
background: linear-gradient(to bottom, #e23744, #df212f, #c91d2a, #b31a26);

}
.dropdown:hover .dropdown-menu {
  display: block;
}

/* Main Content */
.main-content {
  padding: 30px;
  min-height: 100vh;
  background:#F4F4F2;
}

/* Modal Base */
.modal {
  display: none;
  position: fixed;
  z-index: 200;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background: white;
  margin: 15% auto;
  padding: 20px;
  width: 90%;
  border-radius: 8px;
  position: relative;
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #999;
}
.close:hover {
  color: #333;
}

/* ===== QUICK LINKS MODAL ===== */
.quick-links-modal .modal-content {
  width: 90%;
  max-width: 600px;
  padding: 20px;
}

.modal-title {
  background: #ffc107;
  color: #000;
  padding: 12px 15px;
  margin: -20px -20px 20px -20px;
  border-radius: 6px 6px 0 0;
  font-weight: bold;
  text-align: center;
  font-size: 18px;
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.quick-link-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #333;
  padding: 15px;
  border-radius: 8px;
  background: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.quick-link-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.icon-box {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 8px;
}

.quick-link-item span {
  font-size: 12px;
  text-align: center;
  font-weight: 500;
}

/* Icon Colors */
.icon-blue { color: #F4F4F2; }
.icon-orange { color: #F4F4F2; }
.icon-green { color: #F4F4F2; }
.icon-purple { color: #F4F4F2; }
.icon-teal { color: #F4F4F2; }
.icon-red { color: #F4F4F2; }
.icon-yellow { color: #F4F4F2; }
.icon-indigo { color: #F4F4F2; }
.icon-pink { color: #F4F4F2; }
.icon-cyan { color: #F4F4F2; }
.icon-gold { color: #F4F4F2; }

/* ===== COLLAPSIBLE SIDEBAR ON HOVER (Desktop Only) ===== */
@media (min-width: 769px) {
  /*.sidebar {
    width: 60px;
    transition: width 0.3s ease;
  }*/
  .sidebar {
    width: 250px;
    transition: width 0.3s ease;
  }

  .sidebar:hover {
    width: 250px;
  }

  /*.sidebar .menu li a span,
  .sidebar .menu li.menu-heading span {
    display: none;
  }*/
  .sidebar .menu li a span,
  .sidebar .menu li.menu-heading span {
    display: inline;
  }

  .sidebar:hover .menu li a span,
  .sidebar:hover .menu li.menu-heading span {
    display: inline;
    color:white;
  }

  /*.sidebar .menu li {
    padding: 10px 15px;
  }*/
  .sidebar .menu li {
    padding: 10px 9px;
  }
  .sidebar:hover .menu li {
    padding: 10px 9px;
  }

  .sidebar .dropdown .dropdown-menu {
    display: none;
  }
  /*.sidebar:hover .dropdown:hover .dropdown-menu {*/
  /*  display: block;*/
  /*}*/

  /*.main-content {
    margin-left: 60px;
    transition: margin-left 0.3s ease;
  }*/
  
  .main-content {
    margin-left: 250px;
    transition: margin-left 0.3s ease;
  }

  .sidebar:hover ~ .main-content {
    margin-left: 250px;
  }
  .js-dropdown.open > .dropdown-menu {
  display: block;
}

/* Arrow rotate (optional) */
.js-dropdown.open i.fa-chevron-right {
  transform: rotate(90deg);
  transition: 0.3s;
}
}

/* Mobile Responsive */
.mobile-only { display: none; }

@media (max-width: 768px) {
  .marquee-container,
  .youtube-icon,
  .message-icon,
  .quick-links-icon {
    display: none !important;
  }

  .menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 24px;
    margin-left: auto;
    color: var(--text-color);
  }

  .sidebar {
    width: 250px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    padding-top: 89px; 
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
    padding: 20px 15px;
  }

  .user-info { 
    display: flex !important;
  }

  .main-header {
    justify-content: space-between;
    padding: 10px 15px;
  }

  .logo img {
    height: 32px;
  }
}


/* ===== BULK ACTIVATION POPUP ===== */
.popup-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
  pointer-events: none; 
}

.popup-content {
  background: #00796b;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  max-width: 90%;
  width: 800px;
  overflow: hidden;
  position: relative;
  animation: fadeIn 0.5s ease-out;
  pointer-events: auto; 

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.popup-header {
  background: #00796b;
  color: white;
  padding: 12px 20px;
  font-weight: bold;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #004d40;
}

.close-btn {
  background: none;
  border: none;
  font-size: 28px;
  color: white;
  cursor: pointer;
  padding: 0 5px;
}
.close-btn:hover {
  color: #ffeb3b;
}

.popup-body {
  padding: 20px;
  text-align: center;
}

.poster-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.popup-footer {
  padding: 20px;
  text-align: center;
  background: #004d40;
  border-top: 2px solid #00796b;
}

.check-now-btn {
  display: inline-block;
  background: #4CAF50;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: background 0.3s;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.check-now-btn:hover {
  background: #388E3C;
  transform: translateY(-2px);
}

/* Responsive for Mobile */
@media (max-width: 768px) {
  .popup-content {
    width: 95%;
    max-width: 100%;
  }

  .popup-header {
    font-size: 14px;
    padding: 10px 15px;
  }

  .check-now-btn {
    padding: 10px 20px;
    font-size: 14px;
  }
}
}

  .bg-warning{
        background-color: #1F9D55 !important;
        color:white;
    }
  .th-green{
        background-color: #1F9D55 !important;
        color:white;
    }
    .card-header h5{
        color:#1F9D55;
    }
    .card-header span{
        color:#1F9D55;
    }
    #dataTable th{
        background-color: #1F9D55 !important;
        color:white;
    }