/* =========================================================
   WEB PANEL
========================================================= */

.web-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(2px);
  z-index: 999;
  display: none;
}

.web-panel {
   position: fixed;
  top: 0;
  right: -100%;
  height: 100vh;
  width: 420px;
  max-width: 100%;
  background: #ffffff;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: right .35s ease;
  overflow-y: auto;
}

.web-panel.open {
  right: 0;
  transform: translateX(0);
}

.web-header {
  padding: 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.web-body {
  padding: 20px;
  flex: 1;
  overflow-y: auto;
}

.web-body label {
  display: block;
  margin-top: 15px;
  font-weight: 500;
}

.web-body input,
.web-body textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.web-footer {
  padding: 20px;
  border-top: 1px solid #eee;
}

.web-generate {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(90deg,#2d5bff,#1c3fd4);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.web-generate:hover {
  opacity: 0.9;
}

.web-success {
  margin-top: 20px;
  padding: 15px;
  border-radius: 10px;
  background: linear-gradient(135deg,#2ecc71,#27ae60);
  color: white;
  font-weight: 600;
  text-align: center;
  animation: fadeInUp 0.4s ease;
}

.hidden {
  display: none;
}

@keyframes fadeInUp {
  from {opacity:0; transform: translateY(10px);}
  to {opacity:1; transform: translateY(0);}
}

.web-success {
  text-align: center;
  padding: 60px 20px;
  animation: fadeIn 0.5s ease;
}

.web-success h3 {
  font-size: 22px;
  color: #00c853;
  font-weight: bold;
}

@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

.web-success-box {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  color: white;
  padding: 40px 20px;
  text-align: center;
  border-radius: 12px;
  margin-top: 40px;
  animation: fadeIn 0.4s ease-in-out;
}

.web-success-box h2 {
  margin-bottom: 10px;
  font-size: 22px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =========================================
   UNIVERSAL MOBILE PANEL SYSTEM
========================================= */

@media (max-width: 640px){

  .logo-panel,
  .flex-panel,
  .gst-panel,
  .web-panel,
  .ts-panel,
  .company-panel,
  .lam-panel,
  .mc-panel,
  .pan-panel,
  .print-panel,
  .vc-panel,
  .voter-panel {
    width: 100% !important;
    max-width: 100% !important;
    right: -100% !important;
    border-radius: 0 !important;
  }

  .logo-panel.open,
  .flex-panel.open,
  .gst-panel.open,
  .web-panel.open,
  .ts-panel.open,
  .company-panel.open,
  .lam-panel.open,
  .mc-panel.open,
  .pan-panel.open,
  .print-panel.open,
  .vc-panel.open,
  .voter-panel.open {
    right: 0 !important;
  }
}