 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', sans-serif;
            background: #f6f9f7;
            color: #1a2e2a;
            line-height: 1.5;
        }

        /* header / nav */
        .main-header {
            background: #0f2c25;
            color: white;
            padding: 1rem 2rem;
            border-bottom: 3px solid #e6b422;
        }
        .header-container {
            max-width: 1400px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 1rem;
        }
        .header-logo {
            font-size: 1.9rem;
            font-weight: 800;
            letter-spacing: -0.5px;
        }
        .header-logo span {
            color: #f5b042;
        }
        .header-tagline {
            font-size: 0.8rem;
            opacity: 0.85;
            margin-top: 0.25rem;
        }
        .nav-links a {
            color: white;
            text-decoration: none;
            margin-left: 1.8rem;
            font-weight: 500;
            transition: 0.2s;
        }
        .nav-links a:hover {
            color: #f5b042;
        }

        /* reading layout */
        .reading-dashboard {
            max-width: 1400px;
            margin: 2rem auto;
            padding: 0 2rem;
        }

        /* two columns */
        .dashboard-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 2rem;
        }

        /* left panel: library + my bookshelf */
        .library-panel {
            flex: 2;
            min-width: 260px;
        }

        .right-panel {
            flex: 1.2;
            min-width: 280px;
        }

        .card-modern {
            background: white;
            border-radius: 28px;
            box-shadow: 0 8px 20px rgba(0,0,0,0.03), 0 2px 6px rgba(0,0,0,0.05);
            padding: 1.5rem;
            margin-bottom: 2rem;
            transition: all 0.2s;
            border: 1px solid #e2ece8;
        }

        .card-title {
            font-size: 1.6rem;
            font-weight: 700;
            margin-bottom: 1.2rem;
            border-left: 5px solid #e6b422;
            padding-left: 1rem;
            display: flex;
            align-items: center;
            gap: 0.6rem;
        }

        .book-list {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
            max-height: 380px;
            overflow-y: auto;
            padding-right: 0.5rem;
        }

        .book-item {
            background: #fefaf0;
            border-radius: 20px;
            padding: 0.9rem 1rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: 0.15s;
            border: 1px solid #f0e2c5;
            cursor: pointer;
        }
        .book-item:hover {
            background: #fff3e0;
            transform: translateX(4px);
        }
        .book-info {
            font-weight: 600;
        }
        .book-author {
            font-size: 0.75rem;
            color: #5f6c68;
            margin-top: 4px;
        }
        .book-status {
            font-size: 0.7rem;
            background: #e6ddc8;
            padding: 4px 10px;
            border-radius: 40px;
            font-weight: 500;
        }
        .status-reading {
            background: #e6b42220;
            color: #9b6e0f;
        }
        .status-finished {
            background: #2c6e4f20;
            color: #1c523a;
        }

        .btn-sm {
            background: none;
            border: none;
            font-size: 1.2rem;
            cursor: pointer;
            margin-left: 10px;
        }

        .active-book-section {
            background: #fef9ef;
            border-radius: 28px;
            padding: 1.6rem;
            margin-bottom: 2rem;
            border: 1px solid #e9ddc7;
        }

        .reader-area {
            background: white;
            border-radius: 24px;
            padding: 1.8rem;
            box-shadow: 0 6px 14px rgba(0,0,0,0.05);
        }

        .book-title-large {
            font-size: 1.8rem;
            font-weight: 800;
            margin-bottom: 0.5rem;
        }

        .book-content {
            margin: 1.5rem 0;
            background: #fcfaf5;
            padding: 1.5rem;
            border-radius: 24px;
            font-size: 1rem;
            line-height: 1.6;
            max-height: 380px;
            overflow-y: auto;
            white-space: pre-wrap;
            font-family: 'Inter', monospace;
        }

        .notes-section {
            margin-top: 1.8rem;
        }
        .notes-label {
            font-weight: 700;
            margin-bottom: 0.5rem;
            display: flex;
            gap: 0.8rem;
            align-items: center;
        }
        .notes-textarea {
            width: 100%;
            border-radius: 20px;
            border: 1px solid #ddd6c8;
            padding: 1rem;
            font-family: 'Inter', monospace;
            font-size: 0.9rem;
            background: #fffdf9;
            resize: vertical;
        }
        .save-note-btn {
            background: #0f2c25;
            color: white;
            border: none;
            padding: 0.6rem 1.5rem;
            border-radius: 40px;
            margin-top: 0.7rem;
            font-weight: 600;
            cursor: pointer;
            transition: 0.2s;
        }
        .save-note-btn:hover {
            background: #e6b422;
            color: #0f2c25;
        }

        .progress-badge {
            font-size: 0.8rem;
            margin: 12px 0 6px;
            background: #eef3f0;
            display: inline-block;
            padding: 4px 12px;
            border-radius: 20px;
        }

        .btn-action {
            background: #f3e7d3;
            border: none;
            padding: 8px 18px;
            border-radius: 40px;
            font-weight: 500;
            margin-right: 0.7rem;
            cursor: pointer;
            transition: 0.2s;
        }
        .btn-primary {
            background: #0f2c25;
            color: white;
        }
        .btn-primary:hover {
            background: #e6b422;
            color: #1e2a26;
        }

        .library-adder {
            display: flex;
            gap: 0.6rem;
            margin-top: 1rem;
        }
        .library-adder input {
            flex: 1;
            padding: 0.7rem 1rem;
            border-radius: 60px;
            border: 1px solid #cdd9d2;
            font-family: 'Inter';
        }

        hr {
            margin: 1rem 0;
            border-color: #e2e2da;
        }

        footer {
            margin-top: 3rem;
            background: #0f2c25;
            color: #ccc;
            text-align: center;
            padding: 1.5rem;
            font-size: 0.8rem;
        }

        @media (max-width: 780px) {
            .dashboard-grid {
                flex-direction: column;
            }
            .card-title {
                font-size: 1.3rem;
            }
        }