* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: #ffffff;
  color: #111827;
}

.hidden {
  display: none !important;
}

/* Login Page */
.login-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background: #ffffff;
}

.login-card {
  width: 100%;
  max-width: 400px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 36px 28px;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  text-align: center;
}

.logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #111827;
}

.subtitle {
  font-size: 15px;
  color: #6b7280;
  margin-bottom: 24px;
}

.login-form {
  text-align: left;
}

.login-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-top: 14px;
  margin-bottom: 8px;
  color: #111827;
}

.login-form input {
  width: 100%;
  height: 44px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 0 14px;
  font-size: 14px;
  outline: none;
  background: #ffffff;
}

.login-form input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.hint {
  display: block;
  font-size: 12px;
  color: #6b7280;
  margin-top: 6px;
}

.signin-btn {
  width: 100%;
  height: 45px;
  border: none;
  border-radius: 6px;
  background: #2563eb;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  margin-top: 22px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.signin-btn:hover {
  background: #1d4ed8;
}

.or-text {
  margin: 18px 0 14px;
  font-size: 14px;
  color: #6b7280;
}

.demo-box {
  text-align: center;
  font-size: 14px;
  color: #374151;
  line-height: 1.7;
}

.demo-title {
  margin-bottom: 8px;
  color: #6b7280;
}

.error-msg {
  color: #dc2626;
  font-size: 13px;
  margin-top: 10px;
  text-align: center;
}

/* Main Page */
.main-page {
  min-height: 100vh;
  background: #f8fafc;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 30px;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-left h2 {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
}

.nav-logo {
  width: 30px;
  height: 30px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-right input {
  width: 260px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  outline: none;
  background: #ffffff;
  font-size: 14px;
}

.nav-right input:focus {
  border-color: #2563eb;
}

.search-btn {
  height: 40px;
  border: none;
  background: #2563eb;
  color: #ffffff;
  padding: 0 18px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s ease;
}

.search-btn:hover {
  background: #1d4ed8;
}

.content-wrapper {
  max-width: 1180px;
  margin: 30px auto;
  padding: 0 20px 40px;
}

.tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  padding: 14px;
  border-radius: 8px;
}

.tab {
  padding: 10px 22px;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  color: #4b5563;
  transition: all 0.2s ease;
}

.tab.active {
  background: #2563eb;
  color: #ffffff;
}

.issues-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.summary-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.summary-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ede9fe;
  color: #7c3aed;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
}

.left-summary h3 {
  font-size: 24px;
  margin-bottom: 4px;
  color: #111827;
}

.left-summary p {
  color: #6b7280;
  font-size: 14px;
}

.right-summary {
  display: flex;
  gap: 18px;
  font-size: 14px;
  color: #374151;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}

.open-dot {
  background: #22c55e;
}

.closed-dot {
  background: #a855f7;
}

/* Loader */
.loader {
  width: 45px;
  height: 45px;
  border: 5px solid #dbeafe;
  border-top: 5px solid #2563eb;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 40px auto;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

/* Issues Grid */
.issues-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.issue-card {
  background: #fffdfa;
  border: 1px solid #d9e5df;
  border-radius: 8px;
  padding: 14px;
  cursor: pointer;
  transition: 0.2s ease;
  min-height: 225px;
  overflow: hidden;
}

.issue-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}

.issue-card.open {
  border-top: 3px solid #10b981;
}

.issue-card.closed {
  border-top: 3px solid #a855f7;
}

/* Card top */
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

/* Status Icons */
.status-icon {
  width: 24px;
  height: 24px;
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-icon .status-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.status-icon.open {
  background: #dcfce7;
}

.status-icon.open .status-ring {
  border: 2px dashed #22c55e;
}

.status-center-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  position: relative;
  z-index: 2;
}

.status-icon.closed {
  background: #f3e8ff;
}

.status-icon.closed .status-ring {
  border: 2px solid #c084fc;
}

.status-symbol {
  font-size: 10px;
  color: #a855f7;
  position: relative;
  z-index: 2;
}

/* Priority */
.priority-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.priority-badge.high {
  background: #fde8e8;
  color: #ef4444;
}

.priority-badge.medium {
  background: #fef3c7;
  color: #d97706;
}

.priority-badge.low {
  background: #f3f4f6;
  color: #9ca3af;
}

/* Title and description */
.issue-title {
  font-size: 15px;
  line-height: 1.45;
  font-weight: 700;
  color: #111827;
  margin-bottom: 10px;
}

.issue-desc {
  font-size: 12px;
  line-height: 1.55;
  color: #64748b;
  margin-bottom: 18px;
  min-height: 50px;
}









.issue-status {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 12px;
}













/* Labels */
.card-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.label-badge {
  height: 30px;
  padding: 0 12px 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  background: transparent;
}

.label-icon {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 10px;
  flex-shrink: 0;
}

.bug-label {
  color: #ef4444;
  background: #fff1f2;
  border: 1px solid #fecdd3;
}

.help-label {
  color: #d97706;
  background: #fff7ed;
  border: 1px solid #fcd34d;
}

.enhancement-label {
  color: #10b981;
  background: #ecfdf5;
  border: 1px solid #86efac;
}

/* Footer */
.card-footer {
  border-top: 1px solid #e5e7eb;
  padding-top: 14px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.8;
}

.no-data {
  text-align: center;
  grid-column: 1 / -1;
  font-size: 18px;
  color: #6b7280;
  padding: 40px 0;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  z-index: 999;
}

.modal-box {
  width: 100%;
  max-width: 520px;
  background: #fffdf8;
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.modal-title {
  font-size: 30px;
  font-weight: 700;
  color: #3f3f46;
  margin-bottom: 12px;
}

.modal-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 12px;
}

.modal-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-size: 11px;
  font-weight: 700;
}

.modal-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.modal-desc {
  font-size: 14px;
  line-height: 1.7;
  color: #52525b;
  margin-bottom: 22px;
}

.modal-info-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.modal-info-box {
  flex: 1;
}

.modal-info-box h4 {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 6px;
  font-weight: 600;
}

.modal-info-box p {
  font-size: 14px;
  color: #18181b;
  font-weight: 600;
}

.modal-close-btn {
  border: none;
  background: #2563eb;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  float: right;
  transition: background 0.2s ease;
}

.modal-close-btn:hover {
  background: #1d4ed8;
}

/* Responsive */
@media (max-width: 1100px) {
  .issues-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .navbar {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }

  .nav-right {
    width: 100%;
    flex-wrap: wrap;
  }

  .nav-right input {
    width: 100%;
  }

  .issues-summary {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .issues-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .login-card {
    padding: 28px 18px;
  }

  .title {
    font-size: 24px;
  }

  .nav-left h2 {
    font-size: 20px;
  }

  .tabs {
    flex-wrap: wrap;
  }

  .issues-container {
    grid-template-columns: 1fr;
  }

  .modal-title {
    font-size: 24px;
  }

  .modal-info-row {
    flex-direction: column;
  }
}