style.css 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748
  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. }
  215. .nav-links {
  216. display: flex;
  217. list-style: none;
  218. gap: 30px;
  219. }
  220. .nav-links a {
  221. color: white;
  222. text-decoration: none;
  223. transition: opacity 0.3s ease;
  224. }
  225. .nav-links a:hover {
  226. opacity: 0.8;
  227. }
  228. .nav-user {
  229. display: flex;
  230. align-items: center;
  231. gap: 15px;
  232. }
  233. .user-name {
  234. font-weight: 500;
  235. }
  236. .btn-text {
  237. background: transparent;
  238. color: white;
  239. border: 1px solid rgba(255,255,255,0.3);
  240. padding: 8px 16px;
  241. }
  242. .btn-text:hover {
  243. background: rgba(255,255,255,0.1);
  244. }
  245. /* ==================== Authentication Pages ====================*/
  246. .auth-container {
  247. min-height: 100vh;
  248. display: flex;
  249. align-items: center;
  250. justify-content: center;
  251. padding: 20px;
  252. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  253. }
  254. .auth-card {
  255. background: white;
  256. padding: 40px;
  257. border-radius: 12px;
  258. box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  259. max-width: 480px;
  260. width: 100%;
  261. }
  262. .auth-card h1 {
  263. text-align: center;
  264. color: #333;
  265. margin-bottom: 10px;
  266. font-size: 2rem;
  267. }
  268. .auth-subtitle {
  269. text-align: center;
  270. color: #666;
  271. margin-bottom: 30px;
  272. }
  273. .form-group {
  274. margin-bottom: 20px;
  275. }
  276. .form-group label {
  277. display: block;
  278. margin-bottom: 8px;
  279. color: #333;
  280. font-weight: 500;
  281. }
  282. .form-group input {
  283. width: 100%;
  284. padding: 12px;
  285. border: 1px solid #ddd;
  286. border-radius: 6px;
  287. font-size: 1rem;
  288. transition: border-color 0.3s ease;
  289. }
  290. .form-group input:focus {
  291. outline: none;
  292. border-color: #667eea;
  293. box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  294. }
  295. .form-group small {
  296. display: block;
  297. margin-top: 5px;
  298. color: #666;
  299. font-size: 0.85rem;
  300. }
  301. .form-section {
  302. margin-top: 30px;
  303. padding-top: 30px;
  304. border-top: 1px solid #e0e0e0;
  305. }
  306. .form-section h3 {
  307. color: #667eea;
  308. margin-bottom: 10px;
  309. }
  310. .form-help {
  311. color: #666;
  312. font-size: 0.9rem;
  313. margin-bottom: 20px;
  314. }
  315. .btn-full {
  316. width: 100%;
  317. padding: 14px;
  318. font-size: 1.1rem;
  319. }
  320. .auth-footer {
  321. text-align: center;
  322. margin-top: 20px;
  323. padding-top: 20px;
  324. border-top: 1px solid #e0e0e0;
  325. }
  326. .auth-footer a {
  327. color: #667eea;
  328. text-decoration: none;
  329. font-weight: 500;
  330. }
  331. .auth-footer a:hover {
  332. text-decoration: underline;
  333. }
  334. /* ==================== Landing Page ====================*/
  335. .landing-container {
  336. min-height: 100vh;
  337. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  338. color: white;
  339. padding: 40px 20px;
  340. }
  341. .landing-hero {
  342. text-align: center;
  343. max-width: 800px;
  344. margin: 0 auto 80px;
  345. padding-top: 80px;
  346. }
  347. .landing-hero h1 {
  348. font-size: 3.5rem;
  349. margin-bottom: 20px;
  350. }
  351. .landing-subtitle {
  352. font-size: 1.3rem;
  353. opacity: 0.95;
  354. margin-bottom: 40px;
  355. }
  356. .landing-actions {
  357. display: flex;
  358. gap: 20px;
  359. justify-content: center;
  360. }
  361. .btn-large {
  362. padding: 16px 40px;
  363. font-size: 1.2rem;
  364. text-decoration: none;
  365. display: inline-block;
  366. }
  367. .landing-features {
  368. max-width: 1000px;
  369. margin: 0 auto;
  370. }
  371. .landing-features h2 {
  372. text-align: center;
  373. font-size: 2.5rem;
  374. margin-bottom: 40px;
  375. }
  376. .features-grid {
  377. display: grid;
  378. grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  379. gap: 30px;
  380. }
  381. .feature-card {
  382. background: rgba(255,255,255,0.1);
  383. padding: 30px;
  384. border-radius: 12px;
  385. backdrop-filter: blur(10px);
  386. border: 1px solid rgba(255,255,255,0.2);
  387. }
  388. .feature-card h3 {
  389. font-size: 1.5rem;
  390. margin-bottom: 15px;
  391. }
  392. .feature-card p {
  393. opacity: 0.9;
  394. line-height: 1.6;
  395. }
  396. /* ==================== Reading Log ====================*/
  397. .stats-grid {
  398. display: grid;
  399. grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  400. gap: 20px;
  401. margin-bottom: 30px;
  402. }
  403. .stat-card {
  404. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  405. color: white;
  406. padding: 25px;
  407. border-radius: 10px;
  408. text-align: center;
  409. box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  410. }
  411. .stat-value {
  412. font-size: 2.5rem;
  413. font-weight: bold;
  414. margin-bottom: 5px;
  415. }
  416. .stat-label {
  417. font-size: 0.95rem;
  418. opacity: 0.9;
  419. }
  420. .charts-container {
  421. display: grid;
  422. grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  423. gap: 30px;
  424. }
  425. .chart-card {
  426. background: white;
  427. padding: 20px;
  428. border-radius: 10px;
  429. box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  430. }
  431. .chart-card h3 {
  432. color: #667eea;
  433. margin-bottom: 20px;
  434. text-align: center;
  435. }
  436. .books-grid {
  437. display: grid;
  438. grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  439. gap: 20px;
  440. }
  441. .book-card {
  442. background: #f9f9f9;
  443. padding: 20px;
  444. border-radius: 8px;
  445. border: 1px solid #e0e0e0;
  446. transition: transform 0.2s ease, box-shadow 0.2s ease;
  447. }
  448. .book-card:hover {
  449. transform: translateY(-4px);
  450. box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  451. }
  452. .book-cover {
  453. width: 100%;
  454. height: 200px;
  455. object-fit: cover;
  456. border-radius: 6px;
  457. margin-bottom: 15px;
  458. }
  459. .book-title {
  460. font-size: 1.2rem;
  461. margin-bottom: 5px;
  462. color: #333;
  463. }
  464. .book-author {
  465. color: #666;
  466. font-style: italic;
  467. margin-bottom: 10px;
  468. }
  469. .book-meta {
  470. display: flex;
  471. justify-content: space-between;
  472. font-size: 0.85rem;
  473. color: #666;
  474. margin-bottom: 10px;
  475. }
  476. .book-rating {
  477. display: flex;
  478. justify-content: space-between;
  479. align-items: center;
  480. margin-top: 15px;
  481. padding-top: 15px;
  482. border-top: 1px solid #e0e0e0;
  483. }
  484. .rating-stars {
  485. color: #f59e0b;
  486. font-size: 1.2rem;
  487. }
  488. .btn-small {
  489. padding: 6px 14px;
  490. font-size: 0.85rem;
  491. }
  492. .loading {
  493. text-align: center;
  494. padding: 40px;
  495. color: #999;
  496. }
  497. /* ==================== Responsive Design ====================*/
  498. @media (max-width: 768px) {
  499. header h1 {
  500. font-size: 2rem;
  501. }
  502. .actions {
  503. flex-direction: column;
  504. }
  505. .recommendations-grid {
  506. grid-template-columns: 1fr;
  507. }
  508. .history-item {
  509. flex-direction: column;
  510. align-items: flex-start;
  511. gap: 10px;
  512. }
  513. .nav-container {
  514. flex-direction: column;
  515. gap: 15px;
  516. }
  517. .nav-links {
  518. gap: 15px;
  519. }
  520. .landing-hero h1 {
  521. font-size: 2.5rem;
  522. }
  523. .landing-actions {
  524. flex-direction: column;
  525. align-items: center;
  526. }
  527. .charts-container {
  528. grid-template-columns: 1fr;
  529. }
  530. .stats-grid {
  531. grid-template-columns: repeat(2, 1fr);
  532. }
  533. }
  534. /* ==================== Admin Panel Styles ==================== */
  535. .settings-grid {
  536. display: grid;
  537. gap: 20px;
  538. margin-top: 20px;
  539. }
  540. .setting-item {
  541. background: white;
  542. padding: 20px;
  543. border-radius: 8px;
  544. box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  545. }
  546. .setting-item label {
  547. display: flex;
  548. align-items: center;
  549. gap: 10px;
  550. cursor: pointer;
  551. font-size: 1rem;
  552. }
  553. .setting-item input[type="checkbox"] {
  554. width: 20px;
  555. height: 20px;
  556. cursor: pointer;
  557. }
  558. .section-actions {
  559. display: flex;
  560. gap: 10px;
  561. margin-bottom: 20px;
  562. }
  563. .users-table {
  564. width: 100%;
  565. background: white;
  566. border-radius: 8px;
  567. overflow: hidden;
  568. box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  569. border-collapse: collapse;
  570. }
  571. .users-table thead {
  572. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  573. color: white;
  574. }
  575. .users-table th {
  576. padding: 15px;
  577. text-align: left;
  578. font-weight: 600;
  579. }
  580. .users-table td {
  581. padding: 15px;
  582. border-bottom: 1px solid #e0e0e0;
  583. }
  584. .users-table tbody tr:hover {
  585. background-color: #f5f5f5;
  586. }
  587. .users-table tbody tr:last-child td {
  588. border-bottom: none;
  589. }
  590. .badge {
  591. display: inline-block;
  592. padding: 4px 8px;
  593. border-radius: 4px;
  594. font-size: 0.85rem;
  595. font-weight: 600;
  596. }
  597. .badge-admin {
  598. background-color: #fbbf24;
  599. color: #78350f;
  600. }
  601. .badge-active {
  602. background-color: #34d399;
  603. color: #064e3b;
  604. }
  605. .badge-inactive {
  606. background-color: #f87171;
  607. color: #7f1d1d;
  608. }
  609. .btn-danger {
  610. background-color: #ef4444;
  611. }
  612. .btn-danger:hover {
  613. background-color: #dc2626;
  614. }
  615. .text-muted {
  616. color: #999;
  617. font-style: italic;
  618. }