:root {
    --bg: #0b0f0d;
    --panel: #111815;
    --green: #3fa66b;
    --green-soft: #2d7a52;
    --text: #e6f2ea;
    --muted: #9fbfb0;
  }
  
  body {
    margin: 0;
    font-family: system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
  }
  
  .container {
    max-width: 1100px;
    margin: auto;
    padding: 24px;
  }
  
  h1, h2 {
    font-weight: 600;
  }
  
  .card {
    background: var(--panel);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 0 0 1px #1f2a25;
  }
    input, select {
    background: #0f1512;
    border: 1px solid #2a3a32;
    color: var(--text);
    padding: 8px 10px;
    border-radius: 6px;
    width: 100%;
    box-sizing: border-box;
  }
  
  input:focus, select:focus {
    outline: none;
    border-color: var(--green-soft);
  }
  
  button {
    padding: 8px 14px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    background: #1c2622;
    color: var(--text);
    white-space: nowrap;
  }
    button.primary {
    background: var(--green-soft);
  }
  
  button.primary:hover {
    background: var(--green);
  }

  button.secondary {
    background: #1c2622;
    border: 1px solid #2a3a32;
  }

  button.secondary:hover {
    background: #242e28;
  }
  
  table {
    width: 100%;
    border-collapse: collapse;
  }
  
  th, td {
    border-bottom: 1px solid #22332b;
    padding: 10px;
    text-align: left;
  }
  
  th {
    color: var(--muted);
    font-weight: 500;
  }
    td input {
    width: 80px;
  }

  /* Form styling */
  .form-group {
    margin-bottom: 16px;
  }

  .form-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--text);
    font-weight: 500;
    font-size: 0.9em;
  }

  .form-row {
    display: flex;
    gap: 12px;
    align-items: center;
  }

  .checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin-bottom: 0 !important;
    cursor: pointer;
  }

  .checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
  }

  .message {
    font-size: 0.85em;
    margin-top: 8px;
    margin-bottom: 0;
  }

  /* Rent page specific styles */
  .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
  }

  .nav-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
  }

  .components-list {
    border: 1px solid #2a3a32;
    border-radius: 6px;
    max-height: 300px;
    overflow-y: auto;
    padding: 8px;
    background: #0f1512;
  }

  .component-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    border-bottom: 1px solid #1f2a25;
    margin-bottom: 8px;
  }

  .component-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
  }

  .component-info {
    flex: 1;
  }

  .component-name {
    font-weight: 500;
    color: var(--text);
  }

  .component-details {
    font-size: 0.85em;
    color: var(--muted);
    margin-top: 4px;
  }

  .component-actions {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .quantity-input {
    width: 60px !important;
    text-align: center;
  }

  .rent-cart {
    border: 1px solid #2a3a32;
    border-radius: 6px;
    padding: 8px;
    background: #0f1512;
    min-height: 100px;
  }

  .cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    border-bottom: 1px solid #1f2a25;
    margin-bottom: 8px;
  }

  .cart-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
  }

  .total-section {
    margin-top: 12px;
    padding: 12px;
    background: #1a251f;
    border-radius: 6px;
    text-align: right;
    font-size: 1.1em;
    color: var(--green);
  }

  .table-container {
    overflow-x: auto;
  }

  .rental-items {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .btn-small {
    padding: 4px 8px;
    font-size: 0.8em;
  }

  /* Duration and overdue styling */
  .overdue {
    color: #ff6b6b !important;
    font-weight: bold;
  }

  .duration-info {
    background: #1a251f;
    border: 1px solid var(--green-soft);
    border-radius: 6px;
    padding: 8px;
    margin: 8px 0;
    font-size: 0.9em;
  }

  .return-date-highlight {
    color: var(--green);
    font-weight: 500;
  }

  /* Request system specific styles */
  .request-status-pending {
    color: #ffa500;
  }

  .request-status-approved {
    color: #3fa66b;
  }

  .request-status-rejected {
    color: #ff6b6b;
  }

  .request-status-completed {
    color: #6c757d;
  }
  /* Print specific styles */
  @media print {
    .no-print {
      display: none !important;
    }
    
    body {
      background: white !important;
      color: black !important;
    }
  }

  /* User dashboard specific styles */
  .welcome-text {
    color: var(--green);
    font-weight: 500;
    margin-right: 15px;
  }

  .user-cart {
    border: 1px solid #2a3a32;
    border-radius: 6px;
    padding: 8px;
    background: #0f1512;
    min-height: 100px;
  }

  .user-info-card {
    background: #1a251f;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 15px;
  }

  textarea {
    background: #0f1512;
    border: 1px solid #2a3a32;
    color: var(--text);
    padding: 8px 10px;
    border-radius: 6px;
    width: 100%;
    box-sizing: border-box;
    resize: vertical;
    font-family: inherit;
  }

  textarea:focus {
    outline: none;
    border-color: var(--green-soft);
  }
