style.css 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755
  1. * {
  2. margin: 0;
  3. padding: 0;
  4. box-sizing: border-box;
  5. }
  6. body {
  7. font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  8. line-height: 1.6;
  9. color: #333;
  10. background-color: #f5f5f5;
  11. }
  12. .container {
  13. max-width: 1200px;
  14. margin: 0 auto;
  15. padding: 20px;
  16. }
  17. header {
  18. text-align: center;
  19. margin-bottom: 40px;
  20. padding: 30px 0;
  21. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  22. color: white;
  23. border-radius: 10px;
  24. }
  25. header h1 {
  26. font-size: 2.5rem;
  27. margin-bottom: 10px;
  28. }
  29. .subtitle {
  30. font-size: 1.1rem;
  31. opacity: 0.9;
  32. }
  33. .actions {
  34. display: flex;
  35. gap: 15px;
  36. justify-content: center;
  37. margin-bottom: 30px;
  38. }
  39. .btn {
  40. padding: 12px 24px;
  41. font-size: 1rem;
  42. border: none;
  43. border-radius: 6px;
  44. cursor: pointer;
  45. transition: all 0.3s ease;
  46. font-weight: 500;
  47. }
  48. .btn-primary {
  49. background-color: #667eea;
  50. color: white;
  51. }
  52. .btn-primary:hover {
  53. background-color: #5568d3;
  54. transform: translateY(-2px);
  55. }
  56. .btn-secondary {
  57. background-color: #764ba2;
  58. color: white;
  59. }
  60. .btn-secondary:hover {
  61. background-color: #643a8a;
  62. transform: translateY(-2px);
  63. }
  64. .message {
  65. padding: 15px 20px;
  66. border-radius: 6px;
  67. margin-bottom: 20px;
  68. text-align: center;
  69. }
  70. .message.success {
  71. background-color: #d4edda;
  72. color: #155724;
  73. border: 1px solid #c3e6cb;
  74. }
  75. .message.error {
  76. background-color: #f8d7da;
  77. color: #721c24;
  78. border: 1px solid #f5c6cb;
  79. }
  80. /* General hidden class */
  81. .hidden {
  82. display: none;
  83. }
  84. .message.hidden {
  85. display: none;
  86. }
  87. .section {
  88. background: white;
  89. padding: 30px;
  90. border-radius: 10px;
  91. margin-bottom: 30px;
  92. box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  93. }
  94. .section h2 {
  95. font-size: 1.8rem;
  96. margin-bottom: 20px;
  97. color: #667eea;
  98. }
  99. .recommendations-grid {
  100. display: grid;
  101. grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  102. gap: 20px;
  103. }
  104. .recommendation-card {
  105. background: #f9f9f9;
  106. padding: 20px;
  107. border-radius: 8px;
  108. border: 1px solid #e0e0e0;
  109. transition: transform 0.2s ease, box-shadow 0.2s ease;
  110. }
  111. .recommendation-card:hover {
  112. transform: translateY(-4px);
  113. box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  114. }
  115. .recommendation-card h3 {
  116. font-size: 1.3rem;
  117. margin-bottom: 5px;
  118. color: #333;
  119. }
  120. .author {
  121. color: #666;
  122. font-style: italic;
  123. margin-bottom: 10px;
  124. }
  125. .description {
  126. margin-bottom: 15px;
  127. line-height: 1.5;
  128. }
  129. .reason {
  130. background: #fff;
  131. padding: 10px;
  132. border-left: 3px solid #667eea;
  133. margin-bottom: 10px;
  134. }
  135. .reason strong {
  136. color: #667eea;
  137. }
  138. .reason p {
  139. margin-top: 5px;
  140. font-size: 0.95rem;
  141. }
  142. .genres {
  143. display: flex;
  144. flex-wrap: wrap;
  145. gap: 8px;
  146. margin-top: 10px;
  147. }
  148. .genre-tag {
  149. background: #667eea;
  150. color: white;
  151. padding: 4px 12px;
  152. border-radius: 20px;
  153. font-size: 0.85rem;
  154. }
  155. .history-list {
  156. display: flex;
  157. flex-direction: column;
  158. gap: 15px;
  159. }
  160. .history-item {
  161. display: flex;
  162. justify-content: space-between;
  163. align-items: center;
  164. padding: 15px;
  165. background: #f9f9f9;
  166. border-radius: 8px;
  167. border: 1px solid #e0e0e0;
  168. }
  169. .book-info h3 {
  170. font-size: 1.1rem;
  171. margin-bottom: 5px;
  172. }
  173. .status {
  174. padding: 6px 12px;
  175. border-radius: 20px;
  176. font-size: 0.9rem;
  177. font-weight: 500;
  178. }
  179. .status.finished {
  180. background-color: #d4edda;
  181. color: #155724;
  182. }
  183. .status.in-progress {
  184. background-color: #fff3cd;
  185. color: #856404;
  186. }
  187. .empty-state {
  188. text-align: center;
  189. color: #999;
  190. padding: 40px;
  191. font-size: 1.1rem;
  192. }
  193. /* ==================== Navigation ====================*/
  194. .navbar {
  195. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  196. color: white;
  197. padding: 0;
  198. margin-bottom: 20px;
  199. box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  200. }
  201. .nav-container {
  202. max-width: 1200px;
  203. margin: 0 auto;
  204. padding: 15px 20px;
  205. display: flex;
  206. justify-content: space-between;
  207. align-items: center;
  208. }
  209. .nav-brand a {
  210. color: white;
  211. text-decoration: none;
  212. font-size: 1.3rem;
  213. font-weight: 600;
  214. display: flex;
  215. align-items: center;
  216. }
  217. .nav-logo {
  218. height: 32px;
  219. margin-right: 12px;
  220. }
  221. .nav-links {
  222. display: flex;
  223. list-style: none;
  224. gap: 30px;
  225. }
  226. .nav-links a {
  227. color: white;
  228. text-decoration: none;
  229. transition: opacity 0.3s ease;
  230. }
  231. .nav-links a:hover {
  232. opacity: 0.8;
  233. }
  234. .nav-user {
  235. display: flex;
  236. align-items: center;
  237. gap: 15px;
  238. }
  239. .user-name {
  240. font-weight: 500;
  241. }
  242. .btn-text {
  243. background: transparent;
  244. color: white;
  245. border: 1px solid rgba(255,255,255,0.3);
  246. padding: 8px 16px;
  247. }
  248. .btn-text:hover {
  249. background: rgba(255,255,255,0.1);
  250. }
  251. /* ==================== Authentication Pages ====================*/
  252. .auth-container {
  253. min-height: 100vh;
  254. display: flex;
  255. align-items: center;
  256. justify-content: center;
  257. padding: 20px;
  258. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  259. }
  260. .auth-card {
  261. background: white;
  262. padding: 40px;
  263. border-radius: 12px;
  264. box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  265. max-width: 480px;
  266. width: 100%;
  267. }
  268. .auth-card h1 {
  269. text-align: center;
  270. color: #333;
  271. margin-bottom: 10px;
  272. font-size: 2rem;
  273. }
  274. .auth-subtitle {
  275. text-align: center;
  276. color: #666;
  277. margin-bottom: 30px;
  278. }
  279. .form-group {
  280. margin-bottom: 20px;
  281. }
  282. .form-group label {
  283. display: block;
  284. margin-bottom: 8px;
  285. color: #333;
  286. font-weight: 500;
  287. }
  288. .form-group input {
  289. width: 100%;
  290. padding: 12px;
  291. border: 1px solid #ddd;
  292. border-radius: 6px;
  293. font-size: 1rem;
  294. transition: border-color 0.3s ease;
  295. }
  296. .form-group input:focus {
  297. outline: none;
  298. border-color: #667eea;
  299. box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  300. }
  301. .form-group small {
  302. display: block;
  303. margin-top: 5px;
  304. color: #666;
  305. font-size: 0.85rem;
  306. }
  307. .form-section {
  308. margin-top: 30px;
  309. padding-top: 30px;
  310. border-top: 1px solid #e0e0e0;
  311. }
  312. .form-section h3 {
  313. color: #667eea;
  314. margin-bottom: 10px;
  315. }
  316. .form-help {
  317. color: #666;
  318. font-size: 0.9rem;
  319. margin-bottom: 20px;
  320. }
  321. .btn-full {
  322. width: 100%;
  323. padding: 14px;
  324. font-size: 1.1rem;
  325. }
  326. .auth-footer {
  327. text-align: center;
  328. margin-top: 20px;
  329. padding-top: 20px;
  330. border-top: 1px solid #e0e0e0;
  331. }
  332. .auth-footer a {
  333. color: #667eea;
  334. text-decoration: none;
  335. font-weight: 500;
  336. }
  337. .auth-footer a:hover {
  338. text-decoration: underline;
  339. }
  340. /* ==================== Landing Page ====================*/
  341. .landing-container {
  342. min-height: 100vh;
  343. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  344. color: white;
  345. padding: 40px 20px;
  346. }
  347. .landing-hero {
  348. text-align: center;
  349. max-width: 800px;
  350. margin: 0 auto 80px;
  351. padding-top: 80px;
  352. }
  353. .landing-hero h1 {
  354. font-size: 3.5rem;
  355. margin-bottom: 20px;
  356. }
  357. .landing-subtitle {
  358. font-size: 1.3rem;
  359. opacity: 0.95;
  360. margin-bottom: 40px;
  361. }
  362. .landing-actions {
  363. display: flex;
  364. gap: 20px;
  365. justify-content: center;
  366. }
  367. .btn-large {
  368. padding: 16px 40px;
  369. font-size: 1.2rem;
  370. text-decoration: none;
  371. display: inline-block;
  372. }
  373. .landing-features {
  374. max-width: 1000px;
  375. margin: 0 auto;
  376. }
  377. .landing-features h2 {
  378. text-align: center;
  379. font-size: 2.5rem;
  380. margin-bottom: 40px;
  381. }
  382. .features-grid {
  383. display: grid;
  384. grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  385. gap: 30px;
  386. }
  387. .feature-card {
  388. background: rgba(255,255,255,0.1);
  389. padding: 30px;
  390. border-radius: 12px;
  391. backdrop-filter: blur(10px);
  392. border: 1px solid rgba(255,255,255,0.2);
  393. }
  394. .feature-card h3 {
  395. font-size: 1.5rem;
  396. margin-bottom: 15px;
  397. }
  398. .feature-card p {
  399. opacity: 0.9;
  400. line-height: 1.6;
  401. }
  402. /* ==================== Reading Log ====================*/
  403. .stats-grid {
  404. display: grid;
  405. grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  406. gap: 20px;
  407. margin-bottom: 30px;
  408. }
  409. .stat-card {
  410. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  411. color: white;
  412. padding: 25px;
  413. border-radius: 10px;
  414. text-align: center;
  415. box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  416. }
  417. .stat-value {
  418. font-size: 2.5rem;
  419. font-weight: bold;
  420. margin-bottom: 5px;
  421. }
  422. .stat-label {
  423. font-size: 0.95rem;
  424. opacity: 0.9;
  425. }
  426. .charts-container {
  427. display: grid;
  428. grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  429. gap: 30px;
  430. }
  431. .chart-card {
  432. background: white;
  433. padding: 20px;
  434. border-radius: 10px;
  435. box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  436. }
  437. .chart-card h3 {
  438. color: #667eea;
  439. margin-bottom: 20px;
  440. text-align: center;
  441. }
  442. .books-grid {
  443. display: grid;
  444. grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  445. gap: 20px;
  446. }
  447. .book-card {
  448. background: #f9f9f9;
  449. padding: 20px;
  450. border-radius: 8px;
  451. border: 1px solid #e0e0e0;
  452. transition: transform 0.2s ease, box-shadow 0.2s ease;
  453. }
  454. .book-card:hover {
  455. transform: translateY(-4px);
  456. box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  457. }
  458. .book-cover {
  459. width: 100%;
  460. height: 200px;
  461. object-fit: cover;
  462. border-radius: 6px;
  463. margin-bottom: 15px;
  464. }
  465. .book-title {
  466. font-size: 1.2rem;
  467. margin-bottom: 5px;
  468. color: #333;
  469. }
  470. .book-author {
  471. color: #666;
  472. font-style: italic;
  473. margin-bottom: 10px;
  474. }
  475. .book-meta {
  476. display: flex;
  477. justify-content: space-between;
  478. font-size: 0.85rem;
  479. color: #666;
  480. margin-bottom: 10px;
  481. }
  482. .book-rating {
  483. display: flex;
  484. justify-content: space-between;
  485. align-items: center;
  486. margin-top: 15px;
  487. padding-top: 15px;
  488. border-top: 1px solid #e0e0e0;
  489. }
  490. .rating-stars {
  491. color: #f59e0b;
  492. font-size: 1.2rem;
  493. }
  494. .btn-small {
  495. padding: 6px 14px;
  496. font-size: 0.85rem;
  497. }
  498. .loading {
  499. text-align: center;
  500. padding: 40px;
  501. color: #999;
  502. }
  503. /* ==================== Responsive Design ====================*/
  504. @media (max-width: 768px) {
  505. header h1 {
  506. font-size: 2rem;
  507. }
  508. .actions {
  509. flex-direction: column;
  510. }
  511. .recommendations-grid {
  512. grid-template-columns: 1fr;
  513. }
  514. .history-item {
  515. flex-direction: column;
  516. align-items: flex-start;
  517. gap: 10px;
  518. }
  519. .nav-container {
  520. flex-direction: column;
  521. gap: 15px;
  522. }
  523. .nav-links {
  524. gap: 15px;
  525. }
  526. .landing-hero h1 {
  527. font-size: 2.5rem;
  528. }
  529. .landing-actions {
  530. flex-direction: column;
  531. align-items: center;
  532. }
  533. .charts-container {
  534. grid-template-columns: 1fr;
  535. }
  536. .stats-grid {
  537. grid-template-columns: repeat(2, 1fr);
  538. }
  539. }
  540. /* ==================== Admin Panel Styles ==================== */
  541. .settings-grid {
  542. display: grid;
  543. gap: 20px;
  544. margin-top: 20px;
  545. }
  546. .setting-item {
  547. background: white;
  548. padding: 20px;
  549. border-radius: 8px;
  550. box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  551. }
  552. .setting-item label {
  553. display: flex;
  554. align-items: center;
  555. gap: 10px;
  556. cursor: pointer;
  557. font-size: 1rem;
  558. }
  559. .setting-item input[type="checkbox"] {
  560. width: 20px;
  561. height: 20px;
  562. cursor: pointer;
  563. }
  564. .section-actions {
  565. display: flex;
  566. gap: 10px;
  567. margin-bottom: 20px;
  568. }
  569. .users-table {
  570. width: 100%;
  571. background: white;
  572. border-radius: 8px;
  573. overflow: hidden;
  574. box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  575. border-collapse: collapse;
  576. }
  577. .users-table thead {
  578. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  579. color: white;
  580. }
  581. .users-table th {
  582. padding: 15px;
  583. text-align: left;
  584. font-weight: 600;
  585. }
  586. .users-table td {
  587. padding: 15px;
  588. border-bottom: 1px solid #e0e0e0;
  589. }
  590. .users-table tbody tr:hover {
  591. background-color: #f5f5f5;
  592. }
  593. .users-table tbody tr:last-child td {
  594. border-bottom: none;
  595. }
  596. .badge {
  597. display: inline-block;
  598. padding: 4px 8px;
  599. border-radius: 4px;
  600. font-size: 0.85rem;
  601. font-weight: 600;
  602. }
  603. .badge-admin {
  604. background-color: #fbbf24;
  605. color: #78350f;
  606. }
  607. .badge-active {
  608. background-color: #34d399;
  609. color: #064e3b;
  610. }
  611. .badge-inactive {
  612. background-color: #f87171;
  613. color: #7f1d1d;
  614. }
  615. .btn-danger {
  616. background-color: #ef4444;
  617. }
  618. .btn-danger:hover {
  619. background-color: #dc2626;
  620. }
  621. .text-muted {
  622. color: #999;
  623. font-style: italic;
  624. }