/*
 * Application Styles
 * Custom CSS classes extracted from Tailwind for reusability
 */

/* Global Styles */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

a:hover {
  text-decoration: none;
}

a:focus {
  outline: none;
}

/* Layout Components */
.page-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: #ffffff;
}

.main-content {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.content-wrapper {
  padding-left: 2.5rem;
  padding-right: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

/* Navigation */
.nav-container {
  border-bottom: 1px solid #e5e7eb;
  background-color: #ffffff;
  position: relative;
}

.nav-inner {
  padding-left: 1rem;
  padding-right: 1rem;
}

.nav-content {
  display: flex;
  height: 4rem;
  justify-content: space-between;
}

.nav-left {
  display: flex;
  align-items: center;
  width: 100%;
}

.nav-logo-link {
  display: flex;
  align-items: center;
  padding-left: 1rem;
  padding-right: 1rem;
}

.nav-logo {
  height: 1.5rem;
  width: auto;
}

.nav-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
}

.burger-line {
  width: 24px;
  height: 2px;
  background: #374151;
  transition: all 0.3s;
  display: block;
}

.nav-burger.active .burger-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-burger.active .burger-line:nth-child(2) {
  opacity: 0;
}

.nav-burger.active .burger-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-links {
  display: flex;
  column-gap: 2rem;
  height: 100%;
}

.nav-right {
  display: flex;
  align-items: center;
  margin-left: 1.5rem;
}

.nav-logout-mobile {
  display: none;
}

.nav-desktop {
  display: flex;
}

@media (max-width: 768px) {
  .nav-burger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 4rem;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
  }

  .nav-links.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
  }

  .nav-links a,
  .nav-logout-mobile {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
    margin: 0;
  }

  .nav-links a:first-child {
    margin-top: 0;
  }

  .nav-logout-mobile {
    display: block;
    background: #ffffff;
    border-bottom: none;
  }

  .nav-logout-btn-mobile {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: #ef4444;
    cursor: pointer;
  }

  .nav-desktop {
    display: none;
  }
}

.navbar-active {
  display: inline-flex;
  align-items: center;
  border-bottom: 2px solid #6366f1;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  padding-top: 0.25rem;
  padding-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6366f1;
  transition: color 0.15s ease-in-out;
}

.navbar-inactive {
  display: inline-flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  padding-top: 0.25rem;
  padding-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
  transition: all 0.15s ease-in-out;
}

.navbar-inactive:hover {
  border-bottom-color: #d1d5db;
  color: #374151;
}

.nav-logout-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  transition: color 0.15s ease-in-out;
}

.nav-logout-btn:hover {
  color: #374151;
}

/* Page Headers */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  margin-right: 1.5rem;
}

.page-title {
  font-size: 1.875rem;
  font-weight: 700;
  flex-grow: 1;
}

/* Tables */
.table-primary {
  width: 100%;
  background-color: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
}

.table-primary thead {
  background-color: #f9fafb;
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
}

.table-primary thead th {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  color: #4b5563;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.table-primary tbody {
  border-top: 1px solid #e5e7eb;
}

.table-primary tbody td {
  white-space: nowrap;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  font-size: 0.75rem;
  color: #4b5563;
}

.table-primary tbody tr {
  transition: background-color 0.15s ease-in-out;
  border-bottom: 1px solid #f3f4f6;
}

.table-primary tbody tr:hover {
  background-color: #f9fafb;
}

.table-container {
  margin-top: 2rem;
  overflow: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.table-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.table-wrapper {
  margin-left: -1rem;
  margin-right: -1rem;
  margin-top: -0.5rem;
  margin-bottom: -0.5rem;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.table-wrapper::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

@media (min-width: 640px) {
  .table-wrapper {
    margin-left: -1.5rem;
    margin-right: -1.5rem;
  }
}

@media (min-width: 1024px) {
  .table-wrapper {
    margin-left: -2rem;
    margin-right: -2rem;
  }
}

.table-inner {
  display: inline-block;
  min-width: 100%;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  vertical-align: middle;
}

@media (min-width: 640px) {
  .table-inner {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .table-inner {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Buttons */
.button-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.5rem;
  background-color: #4f46e5;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: all 0.15s ease-in-out;
}

.button-primary:hover {
  background-color: #6366f1;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.button-primary:active {
  transform: scale(0.95);
}

.button-primary:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.5);
}

.button-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.button-danger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.5rem;
  background-color: #dc2626;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: all 0.15s ease-in-out;
}

.button-danger:hover {
  background-color: #ef4444;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.button-danger:active {
  transform: scale(0.95);
}

.button-danger:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.5);
}

.button-danger:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.button-gray {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.5rem;
  background-color: #4b5563;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: all 0.15s ease-in-out;
}

.button-gray:hover {
  background-color: #6b7280;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.button-gray:active {
  transform: scale(0.95);
}

.button-gray:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.5);
}

.button-gray:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Status Badges */
.status-pending {
  color: #374151;
  background-color: #f9fafb;
  font-weight: 500;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  border-radius: 9999px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.status-approved {
  color: #15803d;
  background-color: #f0fdf4;
  font-weight: 500;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  border-radius: 9999px;
  border: 1px solid #bbf7d0;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.status-rejected {
  color: #b91c1c;
  background-color: #fef2f2;
  font-weight: 500;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  border-radius: 9999px;
  border: 1px solid #fecaca;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Dashboard Stats Grid */
.stats-grid {
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1px;
  background-color: rgba(17, 24, 39, 0.05);
}

@media (min-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.stat-card {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  column-gap: 1rem;
  row-gap: 0.5rem;
  background-color: #ffffff;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .stat-card {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1280px) {
  .stat-card {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.stat-label {
  font-size: 0.875rem;
  line-height: 1.5rem;
  font-weight: 500;
  color: #6b7280;
}

.stat-change {
  font-size: 0.75rem;
  font-weight: 500;
}

.stat-value {
  width: 100%;
  flex: none;
  font-size: 1.875rem;
  line-height: 2.5rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: #111827;
}

/* Recent Activity Section */
.activity-section {
  margin-top: 4rem;
}

.activity-container {
  margin-left: auto;
  margin-right: auto;
  max-width: 80rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 1024px) {
  .activity-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.activity-header {
  margin-left: auto;
  margin-right: auto;
  max-width: 42rem;
}

@media (min-width: 1024px) {
  .activity-header {
    margin-left: 0;
    margin-right: 0;
  }
}

.activity-title {
  font-size: 1.5rem;
  font-weight: 500;
  color: #111827;
}

.activity-grid {
  margin-left: auto;
  margin-right: auto;
  margin-top: 2rem;
  display: grid;
  max-width: 42rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  column-gap: 2rem;
  row-gap: 3rem;
  border-top: 1px solid #e5e7eb;
  padding-top: 2rem;
}

@media (min-width: 1024px) {
  .activity-grid {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.activity-column-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: #4b5563;
  margin-bottom: 1rem;
}

.activity-list {
  display: flex;
  flex-direction: column;
  row-gap: 0.75rem;
}

.activity-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.activity-item-text {
  font-size: 0.875rem;
  color: #111827;
}

.activity-item-subtext {
  font-size: 0.75rem;
  color: #6b7280;
}

.activity-item-value {
  font-size: 0.875rem;
  font-weight: 500;
  color: #111827;
}

/* Login Page */
body.login-page {
  overflow: hidden;
}

body.login-page .main-content {
  padding: 0;
}

body.login-page .content-wrapper {
  padding: 0;
}

.login-container {
  display: flex;
  height: 100vh;
  width: 100vw;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  overflow: hidden;
  position: fixed;
  top: 0;
  left: 0;
}

@media (min-width: 1024px) {
  .login-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.login-header {
  width: 100%;
  max-width: 24rem;
  text-align: center;
  margin-bottom: 2rem;
}

.login-logo {
  display: block;
  margin-left: auto;
  margin-right: auto;
  height: 4rem;
  width: 4rem;
}

.login-form-container {
  width: 100%;
  max-width: 24rem;
}

.login-form-inner {
  background-color: #ffffff;
  padding: 2rem 1.5rem;
  border-radius: 0.5rem;
}

@media (min-width: 640px) {
  .login-form-inner {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

.login-form {
  display: flex;
  flex-direction: column;
  row-gap: 1.5rem;
}

.form-field-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
}

.form-field-input {
  appearance: none;
  display: block;
  width: 100%;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  font-size: 0.875rem;
}

.form-field-input::placeholder {
  color: #9ca3af;
}

.form-field-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.5);
  border-color: #6366f1;
}

.login-submit-btn {
  width: 100%;
  display: flex;
  justify-content: center;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  padding-left: 1rem;
  padding-right: 1rem;
  border: 1px solid transparent;
  border-radius: 0.375rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  font-size: 0.875rem;
  font-weight: 500;
  color: #ffffff;
  background-color: #4f46e5;
}

.login-submit-btn:hover {
  background-color: #4338ca;
}

.login-submit-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.5);
}

/* Resource Actions */
.resource-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.resource-actions {
  display: flex;
  column-gap: 0.5rem;
}

.resource-title {
  font-size: 1.875rem;
  font-weight: 700;
  flex-grow: 1;
}

.resource-new-container {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.resource-new-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.resource-new-title {
  font-size: 1.875rem;
  font-weight: 700;
}

/* Details Toggle */
.details-toggle-btn {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  color: #6b7280;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.details-toggle-btn:hover {
  color: #2563eb;
}

.details-container {
  margin-top: 2rem;
}

/* Form Styles (SimpleForm) */
.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  color: #374151;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.form-control,
input.form-control,
select.form-control,
textarea.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="tel"],
input[type="url"],
select,
textarea {
  display: block;
  width: 100% !important;
  max-width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  box-sizing: border-box;
}

.form-control:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
input[type="datetime-local"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-control:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  background-color: #f9fafb;
  cursor: not-allowed;
}

select.form-control,
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

textarea.form-control,
textarea {
  min-height: 6rem;
  resize: vertical;
}

.form-error {
  color: #dc2626;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.form-hint {
  color: #6b7280;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.form-error-notification {
  background-color: #fef2f2;
  border-left: 4px solid #ef4444;
  padding: 1rem;
  margin-bottom: 1rem;
}

.form-error-notification-content {
  display: flex;
  align-items: flex-start;
}

.form-error-notification-icon {
  flex-shrink: 0;
}

.form-error-notification-icon svg {
  height: 1.25rem;
  width: 1.25rem;
  color: #f87171;
}

.form-error-notification-message {
  margin-left: 0.75rem;
  flex: 1;
}

.form-error-notification-heading {
  font-size: 0.875rem;
  font-weight: 500;
  color: #991b1b;
}

.form-error-notification-list {
  margin-top: 0.5rem;
}

.form-error-notification-list ul {
  list-style-type: disc;
  padding-left: 1.25rem;
  font-size: 0.875rem;
  color: #b91c1c;
}

.form-error-notification-list li {
  margin-top: 0.25rem;
}

/* Checkbox and Radio Styles */
input[type="checkbox"],
input[type="radio"] {
  width: 1rem;
  height: 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.25rem;
  cursor: pointer;
}

input[type="radio"] {
  border-radius: 50%;
}

input[type="checkbox"]:checked,
input[type="radio"]:checked {
  background-color: #4f46e5;
  border-color: #4f46e5;
}

input[type="checkbox"]:focus,
input[type="radio"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Utility Classes */
.text-green-500 {
  color: #10b981;
}

.text-green-600 {
  color: #16a34a;
}

.text-red-500 {
  color: #ef4444;
}

.text-red-600 {
  color: #dc2626;
}

.text-gray-400 {
  color: #9ca3af;
}

.text-gray-500 {
  color: #6b7280;
}

.text-gray-600 {
  color: #4b5563;
}

.text-gray-700 {
  color: #374151;
}

.hidden {
  display: none;
}
.attachments-section {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.attachments-section h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.attachments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.attachment-card {
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.attachment-preview {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e9ecef;
  overflow: hidden;
}

.attachment-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.pdf-preview {
  width: 100%;
  height: 100%;
}

.pdf-frame {
  width: 100%;
  height: 100%;
  border: none;
}

.file-icon {
  color: #6c757d;
}

.attachment-info {
  padding: 1rem;
}

.attachment-name {
  font-weight: 500;
  margin-bottom: 0.25rem;
  word-break: break-word;
}

.attachment-size {
  color: #6c757d;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.attachment-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-sm {
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: #0d6efd;
  color: white;
}

.btn-primary:hover {
  background: #0b5ed7;
}

.btn-secondary {
  background: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background: #5c636a;
}

/* Attachment Form Fields */
.existing-attachments {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #f9fafb;
  border-radius: 0.375rem;
  border: 1px solid #e5e7eb;
}

.attachment-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.attachment-item {
  display: flex;
  align-items: center;
}

.attachment-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.attachment-checkbox input[type="checkbox"] {
  margin: 0;
  cursor: pointer;
}

.attachment-filename {
  font-size: 0.875rem;
  color: #374151;
}

.attachment-filename small {
  color: #6b7280;
  margin-left: 0.25rem;
}
