/* Production CSS for TONO Application */

/* Reset and base styles */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: #f9fafb;
  color: #1f2937;
}

/* Dark mode support */
body.dark {
  background-color: #111827;
  color: #f3f4f6;
}

/* Container styles */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Navigation styles */
nav {
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 0.75rem 1rem;
}

nav.dark {
  background-color: #1f2937;
  border-color: #374151;
}

/* Button styles */
.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  border: 1px solid transparent;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background-color: #3b82f6;
  color: white;
}

.btn-primary:hover {
  background-color: #2563eb;
}

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

.btn-secondary:hover {
  background-color: #4b5563;
}

.btn-danger {
  background-color: #ef4444;
  color: white;
}

.btn-danger:hover {
  background-color: #dc2626;
}

/* Card styles */
.card {
  background-color: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.card.dark {
  background-color: #1f2937;
}

/* Form styles */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 1rem;
}

.form-control:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Responsive styles */
@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
  
  .md\:flex {
    display: flex;
  }
  
  .md\:items-center {
    align-items: center;
  }
  
  .md\:justify-between {
    justify-content: space-between;
  }
}

/* Mobile bottom navigation */
.bottom-nav {
  display: none;
}

@media (max-width: 767px) {
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-top: 1px solid #e5e7eb;
    z-index: 100;
  }
  
  .bottom-nav.dark {
    background-color: #1f2937;
    border-color: #374151;
  }
  
  .bottom-nav-item {
    flex: 1;
    text-align: center;
    padding: 0.75rem 0;
  }
  
  .bottom-nav-icon {
    display: block;
    margin: 0 auto 0.25rem;
    font-size: 1.25rem;
  }
  
  .bottom-nav-text {
    font-size: 0.75rem;
  }
  
  /* Add padding to bottom of body to account for fixed nav */
  body {
    padding-bottom: 4rem;
  }
}

/* Pagination styles */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  background-color: #ffffff;
  color: #4b5563;
  text-decoration: none;
  border-radius: 0.375rem;
  transition: all 0.2s;
}

.pagination-link:hover {
  background-color: #f3f4f6;
}

.pagination-link.active {
  background-color: #3b82f6;
  color: white;
  border-color: #3b82f6;
}

/* Note card styles */
.note-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.note-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
}

.note-meta {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 1rem;
}

.note-content {
  flex-grow: 1;
  margin-bottom: 1rem;
}

.note-actions {
  margin-top: auto;
}

/* Search form */
.search-form {
  margin-bottom: 1.5rem;
}

.search-input {
  width: 100%;
  max-width: 30rem;
  margin: 0 auto;
  display: flex;
}

.search-input input {
  flex: 1;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.search-input button {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

/* Responsive adjustments */
@media (max-width: 639px) {
  .search-input {
    flex-direction: column;
  }
  
  .search-input input {
    border-radius: 0.375rem;
    margin-bottom: 0.5rem;
  }
  
  .search-input button {
    border-radius: 0.375rem;
  }
}