* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
  }
  
  body {
    background: #f5f7fb;
    color: #1f2937;
  }
  
  a {
    text-decoration: none;
    color: inherit;
  }
  
  button,
  input,
  select,
  textarea {
    font: inherit;
  }
  
  .layout {
    position: relative;
    min-height: 100vh;
  }
  
  /* Sidebar */
  .sidebar {
    width: 240px;
    background: #111827;
    color: #ffffff;
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1100;
    overflow-y: auto;
    box-shadow: 18px 0 42px rgba(15, 23, 42, 0.18);
    transform: translateX(0);
    transition: transform 0.25s ease;
  }

  .layout.admin-panel-collapsed .sidebar {
    transform: translateX(-100%);
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    border: none;
    background: rgba(15, 23, 42, 0.36);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 1090;
  }

  .layout.admin-panel-open .sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }
  
  .brand h2 {
    font-size: 22px;
    margin-bottom: 6px;
  }

  .brand-logo {
    width: 88px;
    height: auto;
    display: block;
    margin-bottom: 12px;
  }
  
  .brand p {
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.5;
  }

  .sidebar-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
  }
  
  .nav-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .nav-links a {
    padding: 12px 14px;
    border-radius: 10px;
    color: #d1d5db;
    transition: 0.2s ease;
  }
  
  .nav-links a:hover {
    background: #1f2937;
    color: #ffffff;
  }
  
  .nav-links a.active {
    background: #2563eb;
    color: #ffffff;
    font-weight: 600;
  }
  
  /* Main */
  .main-content {
    width: 100%;
    min-width: 0;
    padding: 32px;
    transition: padding-left 0.25s ease;
  }

  .layout.admin-panel-open .main-content {
    padding-left: 288px;
  }
  
  .page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
  }

  .layout.admin-panel-collapsed .page-header > :first-child {
    padding-left: 60px;
  }
  
  .page-header h1 {
    font-size: 28px;
    margin-bottom: 6px;
  }
  
  .page-header p {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
  }

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

  .secondary-btn.admin-panel-open-btn {
    position: fixed;
    top: 18px;
    left: 18px;
    z-index: 1080;
    width: 42px;
    height: 42px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #ffffff;
    color: #111827;
    border: 1px solid #d1d5db;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16);
  }

  .secondary-btn.admin-panel-open-btn:hover {
    background: #f9fafb;
    color: #111827;
    border-color: #d1d5db;
  }

  .layout.admin-panel-open .admin-panel-open-btn {
    opacity: 0;
    pointer-events: none;
  }

  .icon-btn.admin-panel-close-btn {
    width: 42px;
    height: 42px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #ffffff;
    color: #111827;
    border: 1px solid #d1d5db;
    flex-shrink: 0;
  }

  .icon-btn.admin-panel-close-btn:hover {
    background: #f9fafb;
  }

  .admin-panel-icon {
    width: 24px;
    height: 24px;
    display: block;
  }

  .admin-panel-icon * {
    stroke: currentColor;
  }

  .filters-panel {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 18px 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
  }

  .filters-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .filter-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
  }

  .filter-toggle input {
    width: 16px;
    height: 16px;
    accent-color: #2563eb;
  }

  .filter-group input,
  .filter-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #ffffff;
    color: #111827;
  }

  .filter-group input:disabled,
  .filter-group select:disabled {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
  }

  .filter-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
  }
  
  /* Dashboard cards */
  .card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
  }
  
  .dashboard-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 22px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
    transition: 0.2s ease;
  }
  
  .dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  }
  
  .dashboard-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
  }
  
  .dashboard-card p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 16px;
  }
  
  .card-status {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 7px 12px;
    border-radius: 999px;
  }
  
  .card-status.live {
    background: #dcfce7;
    color: #166534;
  }
  
  .card-status.soon {
    background: #f3f4f6;
    color: #4b5563;
  }
  
  .disabled-card {
    pointer-events: none;
    opacity: 0.75;
  }
  
  /* Buttons */
  .primary-btn,
  .secondary-btn {
    border: none;
    outline: none;
    cursor: pointer;
    border-radius: 10px;
    padding: 12px 18px;
    font-weight: 600;
    transition: 0.2s ease;
  }
  
  .primary-btn {
    background: #2563eb;
    color: #ffffff;
  }
  
  .primary-btn:hover {
    background: #1d4ed8;
  }
  
  .secondary-btn {
    background: #e5e7eb;
    color: #111827;
  }
  
  .secondary-btn:hover {
    background: #d1d5db;
  }
  
  .icon-btn {
    border: none;
    background: transparent;
    font-size: 28px;
    cursor: pointer;
    color: #374151;
    line-height: 1;
  }
  
  /* Table */
  .table-section {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
  }
  
  .table-wrapper {
    width: 100%;
    overflow-x: auto;
  }
  
  .data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1200px;
  }
  
  .data-table thead {
    background: #f9fafb;
  }
  
  .data-table th,
  .data-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
    vertical-align: top;
  }
  
  .data-table th {
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    white-space: nowrap;
  }
  
  .data-table td {
    color: #111827;
  }

  .data-row {
    cursor: pointer;
  }

  .table-cell-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.45;
    max-width: 220px;
    word-break: break-word;
  }

  .row-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
  }

  .table-action-btn {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
  }

  .danger-btn {
    border: none;
    background: #fee2e2;
    color: #b91c1c;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s ease;
  }

  .danger-btn:hover {
    background: #fecaca;
  }
  
  .data-table tbody tr:hover {
    background: #f9fafb;
  }
  
  .empty-row {
    text-align: center;
    color: #6b7280;
    padding: 26px !important;
  }
  
  /* Links inside table */
  .table-link {
    color: #2563eb;
    font-weight: 600;
  }
  
  .table-link:hover {
    text-decoration: underline;
  }

  .toggle-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 600;
  }

  .toggle-switch input {
    width: 16px;
    height: 16px;
    accent-color: #2563eb;
  }

  .counter-control {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
  }

  .counter-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #1f2937;
    cursor: pointer;
    font-weight: 700;
    line-height: 1;
  }

  .counter-btn:hover:not(:disabled) {
    background: #eff6ff;
    border-color: #93c5fd;
  }

  .counter-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
  }

  .counter-value {
    min-width: 20px;
    text-align: center;
    font-weight: 700;
    color: #111827;
  }
  
  /* Modal */
  .modal {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.55);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 1000;
  }
  
  .hidden {
    display: none;
  }
  
  .modal-content {
    width: 100%;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.2);
    max-height: 92vh;
    overflow-y: auto;
  }
  
  .large-modal {
    max-width: 920px;
  }

  .detail-modal {
    max-width: 980px;
  }
  
  .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 24px;
    border-bottom: 1px solid #e5e7eb;
  }
  
  .modal-header h2 {
    font-size: 22px;
  }
  
  /* Form */
  .form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 24px;
  }
  
  .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  .form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #ffffff;
    color: #111827;
    transition: 0.2s ease;
  }
  
  .form-group input:focus,
  .form-group select:focus,
  .form-group textarea:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  }
  
  .form-group textarea {
    resize: vertical;
    min-height: 100px;
  }
  
  .form-group small {
    color: #6b7280;
    font-size: 12px;
  }
  
  .full-width {
    grid-column: 1 / -1;
  }
  
  .checkbox-group {
    margin-top: -4px;
  }
  
  .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
  }
  
  .checkbox-label input {
    width: 16px;
    height: 16px;
    margin-top: 3px;
  }
  
  .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 8px;
  }

  .detail-card {
    padding: 24px;
  }

  .detail-card-header {
    margin-bottom: 20px;
  }

  .detail-card-header h3 {
    font-size: 24px;
    margin-bottom: 6px;
  }

  .detail-card-header p {
    color: #6b7280;
    line-height: 1.5;
  }

  .detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .detail-item {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #f9fafb;
    padding: 16px;
  }

  .detail-label {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
  }

  .detail-value {
    color: #111827;
    line-height: 1.6;
    word-break: break-word;
  }
  
  /* Placeholder pages */
  .placeholder-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
  }
  
  .placeholder-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 32px;
    max-width: 520px;
    width: 100%;
    text-align: center;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
  }
  
  .placeholder-card h2 {
    font-size: 24px;
    margin-bottom: 12px;
  }
  
  .placeholder-card p {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.7;
  }
  
  /* Utility */
  .contributor-header {
    flex-wrap: wrap;
  }
  
  /* Responsive */
  @media (max-width: 960px) {
    .sidebar {
      width: min(280px, calc(100vw - 32px));
      padding: 18px;
    }
  
    .nav-links {
      flex-direction: column;
      flex-wrap: nowrap;
    }
  
    .main-content {
      padding: 20px;
    }

    .layout.admin-panel-open .main-content {
      padding-left: 20px;
    }

    .admin-panel-open-btn {
      top: 14px;
      left: 14px;
    }
  
    .form-grid {
      grid-template-columns: 1fr;
    }

    .detail-grid {
      grid-template-columns: 1fr;
    }
  
    .page-header {
      flex-direction: column;
      align-items: flex-start;
    }

    .layout.admin-panel-collapsed .page-header > :first-child {
      padding-left: 52px;
    }

    .filters-grid {
      grid-template-columns: 1fr;
    }

    .form-actions {
      justify-content: stretch;
      flex-direction: column;
    }
  
    .form-actions button {
      width: 100%;
    }

    .row-actions {
      flex-direction: column;
      align-items: stretch;
    }

    .table-action-btn {
      width: 100%;
    }
  }

  @media (min-width: 961px) {
    .sidebar-backdrop {
      display: none;
    }
  }
