/* === GENERAL BUTTONS === */
.btn-back-months,
.btn-add-rociste,
.btn-print,
.btn-delete-all {
  display: inline-block;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  color: white;
  margin: 8px 8px 0 0;
  text-align: center;
  min-width: 140px;
  font-size: 14px;
}

/* BUTTON COLORS */
.btn-back-months {
  background-color: #111827;
}
.btn-back-months:hover {
  background-color: #374151;
}
.btn-add-rociste {
  background-color: #2563eb;
}
.btn-add-rociste:hover {
  background-color: #1d4ed8;
}
.btn-print {
  background-color: #16a34a;
}
.btn-print:hover {
  background-color: #15803d;
}
.btn-delete-all {
  background-color: #b91c1c;
  border: none;
  cursor: pointer;
}
.btn-delete-all:hover {
  background-color: #991b1b;
}

/* === TABLE STYLING === */
.rocista-table {
  width: 100%;
  background: white;
  border-collapse: collapse;
  font-size: 15px;
  border-radius: 8px;
}
.rocista-table th,
.rocista-table td {
  border: 1px solid #ccc;
  padding: 10px 12px;
  text-align: left;
  word-break: break-word;
}
.rocista-table th {
  background-color: #e0e7ff;
  color: #1e40af;
}

/* === SMALL ACTION BUTTONS === */
.btn-sm {
  padding: 6px 8px;
  margin: 2px;
  font-size: 13px;
  border-radius: 6px;
  cursor: pointer;
}
.edit-btn {
  background-color: #facc15;
  color: #1f2937;
  border: none;
}
.edit-btn:hover {
  background-color: #eab308;
}
.delete-btn {
  background-color: #ef4444;
  color: white;
  border: none;
}
.delete-btn:hover {
  background-color: #dc2626;
}

/* === SEARCH FORM === */
.search-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.search-form input[type="text"] {
  flex-grow: 1;
  padding: 10px;
  font-size: 15px;
  border-radius: 8px;
  border: 1px solid #ccc;
}
.search-form button {
  padding: 10px 16px;
  background-color: #2563eb;
  color: white;
  border-radius: 8px;
  font-weight: bold;
  border: none;
}
.search-form button:hover {
  background-color: #1d4ed8;
}

/* === PAGINATION === */
.pagination {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.pagination a,
.pagination span {
  background-color: #1e40af;
  color: white;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
}
.pagination a:hover {
  background-color: #3b82f6;
}

/* === PRINT MODE === */
@media print {
  nav,
  .btn-add-rociste,
  .btn-print,
  .pagination,
  .search-form,
  footer,
  .btn-delete-all,
  .edit-btn,
  .delete-btn {
    display: none !important;
  }
  body {
    background: white !important;
    margin: 0;
  }
  .rocista-table {
    font-size: 12px;
  }
  .container.mt-4 {
    margin-top: 0;
  }
}

/* === RESPONSIVE (max-width: 768px) === */
@media (max-width: 768px) {
  .container.mt-4 {
    padding: 0 12px;
  }

  .rocista-table th,
  .rocista-table td {
    font-size: 13px;
    padding: 6px 8px;
  }

  .btn-back-months,
  .btn-add-rociste,
  .btn-print,
  .btn-delete-all {
    width: 40%;
    margin: 8px 0;
  }

  .search-form {
    flex-direction: column;
  }

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

  .pagination a,
  .pagination span {
    width: 40%;
    text-align: center;
  }
}
