/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

 /* ===== Base ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', sans-serif; background: #f5f7fa; color: #333; }
a { color: #2c7be5; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== Navbar ===== */
.navbar {
  background: #1a1a2e; color: white; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.nav-brand a { color: white; font-size: 1.4rem; font-weight: bold; }
.nav-links { display: flex; align-items: center; gap: 1rem; }
.nav-links a { color: #ccc; font-size: 0.95rem; }
.nav-links a:hover { color: white; text-decoration: none; }

/* ===== Container ===== */
.container { max-width: 1100px; margin: 2rem auto; padding: 0 1.5rem; }

/* ===== Flash ===== */
.flash { padding: 0.75rem 1rem; border-radius: 6px; margin-bottom: 1rem; }
.flash-notice { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.flash-alert  { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ===== Buttons ===== */
.btn {
  display: inline-block; padding: 0.5rem 1.2rem; border-radius: 6px;
  border: none; cursor: pointer; font-size: 0.95rem; font-weight: 500;
  text-decoration: none; transition: opacity 0.2s;
}
.btn:hover { opacity: 0.85; text-decoration: none; }
.btn-primary { background: #2c7be5; color: white; }
.btn-warning { background: #f6a623; color: white; }
.btn-danger  { background: #e74c3c; color: white; }
.btn-small   { padding: 0.3rem 0.7rem; font-size: 0.8rem; border-radius: 4px;
               border: none; cursor: pointer; color: white; }
.btn-logout  { background: #e74c3c; color: white; border: none; padding: 0.4rem 1rem;
               border-radius: 6px; cursor: pointer; font-size: 0.9rem; }

/* ===== Page Header ===== */
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.page-header h1 { font-size: 1.8rem; }

/* ===== Books Grid ===== */
.books-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem; }
.book-card {
  background: white; border-radius: 10px; padding: 1.2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08); transition: transform 0.2s;
}
.book-card:hover { transform: translateY(-3px); }
.book-card h3 { margin-bottom: 0.4rem; font-size: 1rem; }
.book-card .author { color: #666; font-size: 0.9rem; }
.tag { background: #e8f0fe; color: #2c7be5; padding: 0.2rem 0.5rem; border-radius: 12px; font-size: 0.78rem; margin-right: 4px; }
.available   { color: #27ae60; font-weight: 500; }
.unavailable { color: #e74c3c; font-weight: 500; }

/* ===== Book Detail ===== */
.book-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.book-info h1 { font-size: 2rem; margin-bottom: 1rem; }
.book-info p  { margin-bottom: 0.6rem; line-height: 1.6; }
.book-actions { margin-top: 1.5rem; display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* ===== Reviews ===== */
.review { background: white; border-radius: 8px; padding: 1rem; margin-bottom: 1rem; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.stars { color: #f6a623; margin-left: 0.5rem; }
.review-date { font-size: 0.8rem; color: #999; margin-top: 0.5rem; }
.review-form { background: #f8f9fa; border-radius: 8px; padding: 1.2rem; margin-bottom: 1.5rem; }

/* ===== Forms ===== */
.auth-form  { max-width: 420px; margin: 3rem auto; background: white; padding: 2rem; border-radius: 10px; box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.auth-form h1 { margin-bottom: 1.5rem; text-align: center; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.4rem; font-weight: 500; color: #555; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 0.6rem 0.8rem; border: 1px solid #ddd;
  border-radius: 6px; font-size: 0.95rem;
}
.errors { background: #f8d7da; color: #721c24; padding: 1rem; border-radius: 6px; margin-bottom: 1rem; }

/* ===== Table ===== */
.table { width: 100%; border-collapse: collapse; background: white; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.table th { background: #1a1a2e; color: white; padding: 0.8rem 1rem; text-align: left; }
.table td { padding: 0.7rem 1rem; border-bottom: 1px solid #f0f0f0; }
.table tr:hover td { background: #f8f9fa; }
.status-active   { background: #d4edda; color: #155724; padding: 0.2rem 0.6rem; border-radius: 12px; font-size: 0.85rem; }
.status-returned { background: #cce5ff; color: #004085; padding: 0.2rem 0.6rem; border-radius: 12px; font-size: 0.85rem; }
.status-overdue  { background: #f8d7da; color: #721c24; padding: 0.2rem 0.6rem; border-radius: 12px; font-size: 0.85rem; }

/* ===== Categories ===== */
.categories-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.2rem; }
.category-card { background: white; border-radius: 10px; padding: 1.2rem; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }

/* ===== Profile ===== */
.profile h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.profile h2 { font-size: 1.3rem; margin: 1.5rem 0 0.8rem; border-bottom: 2px solid #eee; padding-bottom: 0.4rem; }
.review-item { background: white; padding: 1rem; border-radius: 8px; margin-bottom: 0.8rem; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }

/* ===== Search ===== */
.search-filter { background: white; padding: 1rem; border-radius: 8px; margin-bottom: 1.5rem; display: flex; gap: 0.8rem; flex-wrap: wrap; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.search-filter input, .search-filter select { padding: 0.5rem; border: 1px solid #ddd; border-radius: 6px; }
