| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748 |
- * {
- margin: 0;
- padding: 0;
- box-sizing: border-box;
- }
- body {
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
- line-height: 1.6;
- color: #333;
- background-color: #f5f5f5;
- }
- .container {
- max-width: 1200px;
- margin: 0 auto;
- padding: 20px;
- }
- header {
- text-align: center;
- margin-bottom: 40px;
- padding: 30px 0;
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
- color: white;
- border-radius: 10px;
- }
- header h1 {
- font-size: 2.5rem;
- margin-bottom: 10px;
- }
- .subtitle {
- font-size: 1.1rem;
- opacity: 0.9;
- }
- .actions {
- display: flex;
- gap: 15px;
- justify-content: center;
- margin-bottom: 30px;
- }
- .btn {
- padding: 12px 24px;
- font-size: 1rem;
- border: none;
- border-radius: 6px;
- cursor: pointer;
- transition: all 0.3s ease;
- font-weight: 500;
- }
- .btn-primary {
- background-color: #667eea;
- color: white;
- }
- .btn-primary:hover {
- background-color: #5568d3;
- transform: translateY(-2px);
- }
- .btn-secondary {
- background-color: #764ba2;
- color: white;
- }
- .btn-secondary:hover {
- background-color: #643a8a;
- transform: translateY(-2px);
- }
- .message {
- padding: 15px 20px;
- border-radius: 6px;
- margin-bottom: 20px;
- text-align: center;
- }
- .message.success {
- background-color: #d4edda;
- color: #155724;
- border: 1px solid #c3e6cb;
- }
- .message.error {
- background-color: #f8d7da;
- color: #721c24;
- border: 1px solid #f5c6cb;
- }
- /* General hidden class */
- .hidden {
- display: none;
- }
- .message.hidden {
- display: none;
- }
- .section {
- background: white;
- padding: 30px;
- border-radius: 10px;
- margin-bottom: 30px;
- box-shadow: 0 2px 4px rgba(0,0,0,0.1);
- }
- .section h2 {
- font-size: 1.8rem;
- margin-bottom: 20px;
- color: #667eea;
- }
- .recommendations-grid {
- display: grid;
- grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
- gap: 20px;
- }
- .recommendation-card {
- background: #f9f9f9;
- padding: 20px;
- border-radius: 8px;
- border: 1px solid #e0e0e0;
- transition: transform 0.2s ease, box-shadow 0.2s ease;
- }
- .recommendation-card:hover {
- transform: translateY(-4px);
- box-shadow: 0 4px 12px rgba(0,0,0,0.15);
- }
- .recommendation-card h3 {
- font-size: 1.3rem;
- margin-bottom: 5px;
- color: #333;
- }
- .author {
- color: #666;
- font-style: italic;
- margin-bottom: 10px;
- }
- .description {
- margin-bottom: 15px;
- line-height: 1.5;
- }
- .reason {
- background: #fff;
- padding: 10px;
- border-left: 3px solid #667eea;
- margin-bottom: 10px;
- }
- .reason strong {
- color: #667eea;
- }
- .reason p {
- margin-top: 5px;
- font-size: 0.95rem;
- }
- .genres {
- display: flex;
- flex-wrap: wrap;
- gap: 8px;
- margin-top: 10px;
- }
- .genre-tag {
- background: #667eea;
- color: white;
- padding: 4px 12px;
- border-radius: 20px;
- font-size: 0.85rem;
- }
- .history-list {
- display: flex;
- flex-direction: column;
- gap: 15px;
- }
- .history-item {
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 15px;
- background: #f9f9f9;
- border-radius: 8px;
- border: 1px solid #e0e0e0;
- }
- .book-info h3 {
- font-size: 1.1rem;
- margin-bottom: 5px;
- }
- .status {
- padding: 6px 12px;
- border-radius: 20px;
- font-size: 0.9rem;
- font-weight: 500;
- }
- .status.finished {
- background-color: #d4edda;
- color: #155724;
- }
- .status.in-progress {
- background-color: #fff3cd;
- color: #856404;
- }
- .empty-state {
- text-align: center;
- color: #999;
- padding: 40px;
- font-size: 1.1rem;
- }
- /* ==================== Navigation ====================*/
- .navbar {
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
- color: white;
- padding: 0;
- margin-bottom: 20px;
- box-shadow: 0 2px 8px rgba(0,0,0,0.1);
- }
- .nav-container {
- max-width: 1200px;
- margin: 0 auto;
- padding: 15px 20px;
- display: flex;
- justify-content: space-between;
- align-items: center;
- }
- .nav-brand a {
- color: white;
- text-decoration: none;
- font-size: 1.3rem;
- font-weight: 600;
- }
- .nav-links {
- display: flex;
- list-style: none;
- gap: 30px;
- }
- .nav-links a {
- color: white;
- text-decoration: none;
- transition: opacity 0.3s ease;
- }
- .nav-links a:hover {
- opacity: 0.8;
- }
- .nav-user {
- display: flex;
- align-items: center;
- gap: 15px;
- }
- .user-name {
- font-weight: 500;
- }
- .btn-text {
- background: transparent;
- color: white;
- border: 1px solid rgba(255,255,255,0.3);
- padding: 8px 16px;
- }
- .btn-text:hover {
- background: rgba(255,255,255,0.1);
- }
- /* ==================== Authentication Pages ====================*/
- .auth-container {
- min-height: 100vh;
- display: flex;
- align-items: center;
- justify-content: center;
- padding: 20px;
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
- }
- .auth-card {
- background: white;
- padding: 40px;
- border-radius: 12px;
- box-shadow: 0 8px 24px rgba(0,0,0,0.15);
- max-width: 480px;
- width: 100%;
- }
- .auth-card h1 {
- text-align: center;
- color: #333;
- margin-bottom: 10px;
- font-size: 2rem;
- }
- .auth-subtitle {
- text-align: center;
- color: #666;
- margin-bottom: 30px;
- }
- .form-group {
- margin-bottom: 20px;
- }
- .form-group label {
- display: block;
- margin-bottom: 8px;
- color: #333;
- font-weight: 500;
- }
- .form-group input {
- width: 100%;
- padding: 12px;
- border: 1px solid #ddd;
- border-radius: 6px;
- font-size: 1rem;
- transition: border-color 0.3s ease;
- }
- .form-group input:focus {
- outline: none;
- border-color: #667eea;
- box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
- }
- .form-group small {
- display: block;
- margin-top: 5px;
- color: #666;
- font-size: 0.85rem;
- }
- .form-section {
- margin-top: 30px;
- padding-top: 30px;
- border-top: 1px solid #e0e0e0;
- }
- .form-section h3 {
- color: #667eea;
- margin-bottom: 10px;
- }
- .form-help {
- color: #666;
- font-size: 0.9rem;
- margin-bottom: 20px;
- }
- .btn-full {
- width: 100%;
- padding: 14px;
- font-size: 1.1rem;
- }
- .auth-footer {
- text-align: center;
- margin-top: 20px;
- padding-top: 20px;
- border-top: 1px solid #e0e0e0;
- }
- .auth-footer a {
- color: #667eea;
- text-decoration: none;
- font-weight: 500;
- }
- .auth-footer a:hover {
- text-decoration: underline;
- }
- /* ==================== Landing Page ====================*/
- .landing-container {
- min-height: 100vh;
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
- color: white;
- padding: 40px 20px;
- }
- .landing-hero {
- text-align: center;
- max-width: 800px;
- margin: 0 auto 80px;
- padding-top: 80px;
- }
- .landing-hero h1 {
- font-size: 3.5rem;
- margin-bottom: 20px;
- }
- .landing-subtitle {
- font-size: 1.3rem;
- opacity: 0.95;
- margin-bottom: 40px;
- }
- .landing-actions {
- display: flex;
- gap: 20px;
- justify-content: center;
- }
- .btn-large {
- padding: 16px 40px;
- font-size: 1.2rem;
- text-decoration: none;
- display: inline-block;
- }
- .landing-features {
- max-width: 1000px;
- margin: 0 auto;
- }
- .landing-features h2 {
- text-align: center;
- font-size: 2.5rem;
- margin-bottom: 40px;
- }
- .features-grid {
- display: grid;
- grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
- gap: 30px;
- }
- .feature-card {
- background: rgba(255,255,255,0.1);
- padding: 30px;
- border-radius: 12px;
- backdrop-filter: blur(10px);
- border: 1px solid rgba(255,255,255,0.2);
- }
- .feature-card h3 {
- font-size: 1.5rem;
- margin-bottom: 15px;
- }
- .feature-card p {
- opacity: 0.9;
- line-height: 1.6;
- }
- /* ==================== Reading Log ====================*/
- .stats-grid {
- display: grid;
- grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
- gap: 20px;
- margin-bottom: 30px;
- }
- .stat-card {
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
- color: white;
- padding: 25px;
- border-radius: 10px;
- text-align: center;
- box-shadow: 0 4px 12px rgba(0,0,0,0.1);
- }
- .stat-value {
- font-size: 2.5rem;
- font-weight: bold;
- margin-bottom: 5px;
- }
- .stat-label {
- font-size: 0.95rem;
- opacity: 0.9;
- }
- .charts-container {
- display: grid;
- grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
- gap: 30px;
- }
- .chart-card {
- background: white;
- padding: 20px;
- border-radius: 10px;
- box-shadow: 0 2px 8px rgba(0,0,0,0.1);
- }
- .chart-card h3 {
- color: #667eea;
- margin-bottom: 20px;
- text-align: center;
- }
- .books-grid {
- display: grid;
- grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
- gap: 20px;
- }
- .book-card {
- background: #f9f9f9;
- padding: 20px;
- border-radius: 8px;
- border: 1px solid #e0e0e0;
- transition: transform 0.2s ease, box-shadow 0.2s ease;
- }
- .book-card:hover {
- transform: translateY(-4px);
- box-shadow: 0 4px 12px rgba(0,0,0,0.15);
- }
- .book-cover {
- width: 100%;
- height: 200px;
- object-fit: cover;
- border-radius: 6px;
- margin-bottom: 15px;
- }
- .book-title {
- font-size: 1.2rem;
- margin-bottom: 5px;
- color: #333;
- }
- .book-author {
- color: #666;
- font-style: italic;
- margin-bottom: 10px;
- }
- .book-meta {
- display: flex;
- justify-content: space-between;
- font-size: 0.85rem;
- color: #666;
- margin-bottom: 10px;
- }
- .book-rating {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-top: 15px;
- padding-top: 15px;
- border-top: 1px solid #e0e0e0;
- }
- .rating-stars {
- color: #f59e0b;
- font-size: 1.2rem;
- }
- .btn-small {
- padding: 6px 14px;
- font-size: 0.85rem;
- }
- .loading {
- text-align: center;
- padding: 40px;
- color: #999;
- }
- /* ==================== Responsive Design ====================*/
- @media (max-width: 768px) {
- header h1 {
- font-size: 2rem;
- }
- .actions {
- flex-direction: column;
- }
- .recommendations-grid {
- grid-template-columns: 1fr;
- }
- .history-item {
- flex-direction: column;
- align-items: flex-start;
- gap: 10px;
- }
- .nav-container {
- flex-direction: column;
- gap: 15px;
- }
- .nav-links {
- gap: 15px;
- }
- .landing-hero h1 {
- font-size: 2.5rem;
- }
- .landing-actions {
- flex-direction: column;
- align-items: center;
- }
- .charts-container {
- grid-template-columns: 1fr;
- }
- .stats-grid {
- grid-template-columns: repeat(2, 1fr);
- }
- }
- /* ==================== Admin Panel Styles ==================== */
- .settings-grid {
- display: grid;
- gap: 20px;
- margin-top: 20px;
- }
- .setting-item {
- background: white;
- padding: 20px;
- border-radius: 8px;
- box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
- }
- .setting-item label {
- display: flex;
- align-items: center;
- gap: 10px;
- cursor: pointer;
- font-size: 1rem;
- }
- .setting-item input[type="checkbox"] {
- width: 20px;
- height: 20px;
- cursor: pointer;
- }
- .section-actions {
- display: flex;
- gap: 10px;
- margin-bottom: 20px;
- }
- .users-table {
- width: 100%;
- background: white;
- border-radius: 8px;
- overflow: hidden;
- box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
- border-collapse: collapse;
- }
- .users-table thead {
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
- color: white;
- }
- .users-table th {
- padding: 15px;
- text-align: left;
- font-weight: 600;
- }
- .users-table td {
- padding: 15px;
- border-bottom: 1px solid #e0e0e0;
- }
- .users-table tbody tr:hover {
- background-color: #f5f5f5;
- }
- .users-table tbody tr:last-child td {
- border-bottom: none;
- }
- .badge {
- display: inline-block;
- padding: 4px 8px;
- border-radius: 4px;
- font-size: 0.85rem;
- font-weight: 600;
- }
- .badge-admin {
- background-color: #fbbf24;
- color: #78350f;
- }
- .badge-active {
- background-color: #34d399;
- color: #064e3b;
- }
- .badge-inactive {
- background-color: #f87171;
- color: #7f1d1d;
- }
- .btn-danger {
- background-color: #ef4444;
- }
- .btn-danger:hover {
- background-color: #dc2626;
- }
- .text-muted {
- color: #999;
- font-style: italic;
- }
|