/* Component Stylesheet for PrimeGenie */

/* Navbar styling */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 1000;
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  background: rgba(10, 15, 29, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo img {
  height: 45px;
  display: block;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-light);
  transition: var(--transition-smooth);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-blue);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(10, 15, 29, 0.9);
  z-index: 998;
}

@media (max-width: 992px) {
  .mobile-menu-btn {
    display: block;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: #0d1527;
    border-left: 1px solid var(--glass-border);
    flex-direction: column;
    padding: 6rem 2rem 2rem;
    z-index: 999;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    align-items: flex-start;
  }
  .nav-links.active {
    right: 0;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-indigo) 100%);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(51, 208, 253, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(51, 208, 253, 0.3);
}

.btn-whatsapp {
  background-color: var(--whatsapp-green);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--primary-blue);
  background: rgba(51, 208, 253, 0.05);
}

/* Search Wrapper */
.search-wrapper {
  position: relative;
  max-width: 600px;
  margin: 2rem auto 4rem;
}

.search-input {
  width: 100%;
  padding: 1.1rem 1.5rem 1.1rem 3.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 1.05rem;
  transition: var(--transition-smooth);
  backdrop-filter: blur(10px);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 15px rgba(51, 208, 253, 0.15);
  background: rgba(255, 255, 255, 0.05);
}

.search-icon {
  position: absolute;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 1.2rem;
}

/* Product Cards */
.product-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.card-top {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: center;
}

.product-logo {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--glass-border);
  overflow: hidden;
}

.product-logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.product-logo i {
  font-size: 1.5rem;
  color: var(--primary-blue);
}

.product-header-content {
  flex-grow: 1;
}

.product-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.duration-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.badge {
  background: rgba(51, 208, 253, 0.1);
  color: var(--primary-blue);
  border: 1px solid rgba(51, 208, 253, 0.2);
  font-size: 0.75rem;
  padding: 0.15rem 0.6rem;
  border-radius: 50px;
  font-weight: 600;
}

.product-desc {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.plan-details {
  border-top: 1px solid var(--glass-border);
  padding-top: 1.25rem;
  margin-bottom: 1.5rem;
}

.product-features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-light);
}

.product-feature-item i {
  color: var(--primary-blue);
  font-size: 0.8rem;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.btn-view-plans {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  border-radius: 50px;
  padding: 0.6rem;
  font-family: inherit;
  font-weight: 500;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-view-plans:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
}

/* Reviews and Testimonials */
.review-card {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.stars {
  color: #fbbf24;
  margin-bottom: 1.25rem;
  display: flex;
  gap: 0.25rem;
}

.review-text {
  font-size: 1rem;
  color: var(--text-main);
  line-height: 1.7;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.reviewer {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.reviewer-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--primary-indigo);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.2rem;
}

.reviewer-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.reviewer-info span {
  font-size: 0.8rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Footer styling */
.footer {
  background: #060a14;
  border-top: 1px solid var(--glass-border);
  padding: 5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-logo img {
  height: 45px;
  margin-bottom: 1.5rem;
  display: block;
}

.footer-desc {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transition: var(--transition-smooth);
}

.footer-socials a:hover {
  background: var(--primary-blue);
  color: var(--bg-dark);
  border-color: var(--primary-blue);
  transform: translateY(-3px);
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-light);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: var(--primary-blue);
  padding-left: 5px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-light);
}

.footer-bottom {
  text-align: center;
  color: var(--text-light);
  font-size: 0.9rem;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
}

/* Sidebar Layout */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: 260px;
  background: #080d19;
  border-right: 1px solid var(--glass-border);
  z-index: 100;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.sidebar.collapsed {
  width: 80px;
}

.sidebar .logo-details {
  height: 80px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--glass-border);
}

.sidebar.collapsed .logo_full {
  display: none;
}

.sidebar .nav-links {
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem 1rem;
  align-items: stretch;
}

.sidebar .nav-links li {
  list-style: none;
}

.sidebar .nav-links a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  border-radius: 12px;
  color: var(--text-light);
  font-size: 1rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.sidebar.collapsed .nav-links a span {
  display: none;
}

.sidebar .nav-links a i {
  font-size: 1.3rem;
  min-width: 25px;
  text-align: center;
}

.sidebar .nav-links a:hover,
.sidebar .nav-links a.active {
  background: rgba(51, 208, 253, 0.08);
  color: var(--primary-blue);
}

.sidebar .profile-details {
  margin-top: auto;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar.collapsed .profile-details .name-job {
  display: none;
}

.sidebar .profile-content img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar .name-job {
  flex-grow: 1;
  overflow: hidden;
}

.sidebar .profile_name {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.sidebar .job {
  font-size: 0.75rem;
  color: var(--text-light);
}

.sidebar #logoutBtn {
  font-size: 1.3rem;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.sidebar #logoutBtn:hover {
  color: #ef4444;
}

/* Home Section Layout */
.home-section {
  position: relative;
  background: var(--bg-dark);
  min-height: 100vh;
  left: 260px;
  width: calc(100% - 260px);
  transition: var(--transition-smooth);
}

.sidebar.collapsed ~ .home-section {
  left: 80px;
  width: calc(100% - 80px);
}

@media (max-width: 768px) {
  .sidebar {
    left: -260px;
  }
  .sidebar.active {
    left: 0;
    width: 260px;
  }
  .home-section {
    left: 0;
    width: 100%;
  }
  .sidebar.collapsed ~ .home-section {
    left: 0;
    width: 100%;
  }
}

/* Top Nav */
.top-nav {
  height: 80px;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(10, 15, 29, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 90;
}

.sidebar-button {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.4rem;
  font-weight: 600;
}

.sidebar-button i {
  cursor: pointer;
  font-size: 1.7rem;
  transition: var(--transition-smooth);
}

.sidebar-button i:hover {
  color: var(--primary-blue);
}

.profile-dropdown {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.profile-dropdown .admin_name {
  font-size: 0.95rem;
  font-weight: 500;
}

.profile-dropdown img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Content Panel Container */
.main-content-container {
  padding: 2rem;
}

.content-section {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.content-section.active-view {
  display: block;
}

.hidden {
  display: none;
}

/* Welcome Card */
.welcome-card {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.15) 0%, rgba(51, 208, 253, 0.05) 100%);
  border: 1px solid rgba(51, 208, 253, 0.15);
  padding: 2.5rem;
  border-radius: 20px;
  margin-bottom: 2rem;
  box-shadow: var(--glass-shadow);
}

.welcome-card h2 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.welcome-card p {
  color: var(--text-light);
}

/* Overview Boxes */
.overview-boxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .overview-boxes {
    grid-template-columns: 1fr;
  }
}

.overview-boxes .box {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--glass-shadow);
}

.box .box-topic {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.box .number {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.box .text-primary {
  color: var(--primary-blue);
}

.box .indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-light);
}

.box .indicator i {
  color: var(--whatsapp-green);
  font-size: 1.1rem;
}

.box .indicator-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.box .indicator-group .indicator i {
  color: var(--primary-blue);
}

.box .indicator.text-sm {
  font-size: 0.8rem;
}

.box .cart {
  width: 50px;
  height: 50px;
  background: rgba(51, 208, 253, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  color: var(--primary-blue);
}

.box .cart.two {
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary-indigo);
}

/* Active Tools and Resource Cards */
.active-resources {
  margin-bottom: 2rem;
}

.section-title h2 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.section-title p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  box-shadow: var(--glass-shadow);
  transition: var(--transition-smooth);
}

.tool-card:hover {
  transform: translateY(-3px);
  border-color: rgba(51, 208, 253, 0.3);
}

.tool-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bg-envato {
  background: rgba(37, 211, 102, 0.1);
}

.tool-info {
  flex-grow: 1;
}

.tool-info h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.tool-info p {
  font-size: 0.85rem;
  color: var(--text-light);
}

.access-btn {
  background: var(--primary-blue);
  color: var(--bg-dark);
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition-smooth);
}

.access-btn:hover {
  background: #fff;
  transform: scale(1.05);
}

/* Profile Section Card */
.section-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--glass-shadow);
}

.section-card h2 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.section-card .subtitle {
  color: var(--text-light);
  margin-bottom: 2rem;
}

.profile-image-upload {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.profile-image-upload img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--primary-blue);
}

.profile-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .profile-form-grid {
    grid-template-columns: 1fr;
  }
}

.profile-full {
  grid-column: span 2;
}

@media (max-width: 768px) {
  .profile-full {
    grid-column: span 1;
  }
}

/* Admin Dashboard Specific Styles */
.admin-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
}

.badge-role-admin {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-role-user {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.badge-status-active {
  background: rgba(37, 211, 102, 0.1);
  color: var(--whatsapp-green);
  border: 1px solid rgba(37, 211, 102, 0.2);
}

.badge-status-inactive {
  background: rgba(100, 116, 139, 0.1);
  color: var(--text-light);
  border: 1px solid rgba(100, 116, 139, 0.2);
}

.admin-header-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.admin-table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th,
.admin-table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--glass-border);
}

.admin-table th {
  font-weight: 600;
  color: var(--text-light);
  font-size: 0.9rem;
  background: rgba(0, 0, 0, 0.1);
}

.admin-table td {
  font-size: 0.95rem;
}

.admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.01);
}

.admin-action-btn {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.25rem;
  transition: var(--transition-smooth);
}

.btn-edit-user {
  color: var(--primary-blue);
}

.btn-edit-user:hover {
  color: #0284c7;
}

.btn-delete-user {
  color: #ef4444;
}

.btn-delete-user:hover {
  color: #b91c1c;
}

/* Modals Overlay Form styling */
.admin-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 15, 29, 0.8);
  backdrop-filter: blur(5px);
  z-index: 200;
  align-items: center;
  justify-content: center;
}

.admin-modal {
  width: 100%;
  max-width: 500px;
  background: #0d1527;
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--glass-shadow);
  animation: zoom 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.admin-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 0.75rem;
}

.admin-modal-title {
  font-size: 1.25rem;
  font-weight: 600;
}

.admin-modal-close {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.admin-modal-close:hover {
  color: var(--white);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.admin-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
