/* ======================================
   COMPANY REGISTRATION PANEL
====================================== */

.company-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(3px);
  display: none;
  z-index: 999;
}

.company-panel {
  position: fixed;
  top: 0;
  right: 0;
  transform: translateX(100%);
  width: 420px;
  height: 100vh;
  background: #ffffff;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: right 0.35s ease;
  box-shadow: -8px 0 25px rgba(0,0,0,0.08);
}

.company-panel.open {
  right: 0;
  transform: translateX(0);
}

/* ================= HEADER ================= */

.company-header {
  padding: 22px;
  border-bottom: 1px solid #f1f1f1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.company-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.company-close {
  background: #f3f3f3;
  border: none;
  font-size: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.2s ease;
}

.company-close:hover {
  background: #e6e6e6;
}

/* ================= BODY ================= */

.company-body {
  padding: 22px;
  flex: 1;
  overflow-y: auto;
}

.company-body label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  margin-top: 16px;
  color: #333;
}

.company-body input,
.company-body textarea,
.company-body select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #e2e2e2;
  font-size: 14px;
  transition: all 0.25s ease;
  background: #fff;
}

/* Focus glow (like lamination panel) */
.company-body input:focus,
.company-body textarea:focus,
.company-body select:focus {
  border-color: #2f5be3;
  box-shadow: 0 0 0 2px rgba(47, 91, 227, 0.15);
  outline: none;
}

/* Multi-select styling */
.company-body select {
  min-height: 130px;
  cursor: pointer;
}

/* Better textarea */
.company-body textarea {
  resize: vertical;
  min-height: 90px;
}

/* ================= FOOTER ================= */

.company-footer {
  padding: 18px;
  border-top: 1px solid #f1f1f1;
}

.company-generate {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #2f5be3, #4c6fff);
  color: white;
  border: none;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.25s ease;
}

.company-generate:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(47, 91, 227, 0.25);
}

/* ================= SUCCESS MESSAGE ================= */

.company-success {
  background: linear-gradient(135deg, #e8fff2, #f4fff7);
  color: #00aa55;
  padding: 18px;
  margin-top: 18px;
  text-align: center;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(0, 170, 85, 0.08);
}

.hidden {
  display: none;
}

/* ================= RESPONSIVE ================= */

/* =========================================
   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;
  }
}

/* ===== Custom Multi Dropdown ===== */

.company-select {
  display: none; /* hide original select */
}

.custom-multi-dropdown {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px;
  cursor: pointer;
  background: #fff;
  position: relative;
}

.custom-multi-dropdown .dropdown-display {
  font-size: 14px;
  color: #555;
}

.custom-multi-dropdown .dropdown-options {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  max-height: 220px;
  overflow-y: auto;
  display: none;
  z-index: 2000;
  padding: 8px;
}

.custom-multi-dropdown.open .dropdown-options {
  display: block;
}

.dropdown-options label {
  display: block;
  margin-bottom: 6px;
  cursor: pointer;
  font-size: 14px;
}

.dropdown-options input {
  margin-right: 6px;
}

/* Improve checkbox alignment */

.dropdown-options label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 4px;
  cursor: pointer;
  font-size: 14px;
}

.dropdown-options input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
}

.dropdown-options label:hover {
  background: #f5f7ff;
  border-radius: 4px;
}
