:root {
                --primary-color: #3a7bd5;
                --primary-gradient: linear-gradient(135deg, #3a7bd5, #2b5876);
                --secondary-color: #00d2ff;
                --secondary-gradient: linear-gradient(135deg, #00d2ff, #3a7bd5);
                --text-color: #2d3748;
                --text-light: #718096;
                --bg-color: #f8fafc;
                --bg-gradient: linear-gradient(135deg, #f8fafc, #edf2f7);
                --white: #ffffff;
                --accent-color: #ff6b6b;
                --accent-gradient: linear-gradient(135deg, #ff6b6b, #ee5253);
                --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
                --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
                --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.1);
                --border-radius: 12px;
                --success-color: #48bb78;
                --warning-color: #f6ad55;
                --danger-color: #f56565;
                --success-gradient: linear-gradient(135deg, #48bb78, #38a169);
                --warning-gradient: linear-gradient(135deg, #f6ad55, #ed8936);
                --danger-gradient: linear-gradient(135deg, #f56565, #e53e3e);
                --literature-color: #9f7aea;
                --literature-gradient: linear-gradient(135deg, #9f7aea, #805ad5);
            }
        
        body {
            font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: var(--bg-gradient);
            color: var(--text-color);
            margin: 0;
            padding: 0;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        
        .container {
            width: 100%;
            max-width: 900px;
            padding: 30px;
            box-sizing: border-box;
        }
        
        header {
            text-align: center;
            margin-bottom: 40px;
            position: relative;
        }
        
        header::after {
            content: '';
            position: absolute;
            width: 80px;
            height: 4px;
            background: var(--accent-gradient);
            bottom: -15px;
            left: 50%;
            transform: translateX(-50%);
            border-radius: 2px;
        }
        
        h1 {
            color: var(--primary-color);
            margin-bottom: 10px;
            font-weight: 700;
            letter-spacing: -0.5px;
        }
        
        header p {
            color: var(--text-light);
            font-size: 18px;
            font-weight: 300;
            max-width: 500px;
            margin: 0 auto;
        }
        
        .category-selection {
            display: flex;
            justify-content: center;
            margin-bottom: 40px;
            gap: 20px;
        }
        
        .category-btn {
            padding: 14px 32px;
            font-size: 18px;
            font-weight: 600;
            background: var(--primary-gradient);
            color: var(--white);
            border: none;
            border-radius: var(--border-radius);
            cursor: pointer;
            transition: all 0.3s ease;
            min-width: 140px;
            box-shadow: var(--shadow-md);
            position: relative;
            overflow: hidden;
            z-index: 1;
        }
        
        .category-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--secondary-gradient);
            z-index: -1;
            transition: opacity 0.3s ease;
            opacity: 0;
        }
        
        .category-btn:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-lg);
        }
        
        .category-btn:hover::before {
            opacity: 1;
        }

        .category-btn.active {
            background: var(--accent-gradient);
            transform: translateY(-3px);
        }
        
        .category-btn.active::before {
            opacity: 0;
        }
        
        .generate-section {
            display: flex;
            justify-content: center;
            margin-bottom: 40px;
        }
        
        #generateBtn {
            padding: 16px 36px;
            font-size: 18px;
            font-weight: 600;
            background: var(--accent-gradient);
            color: var(--white);
            border: none;
            border-radius: var(--border-radius);
            cursor: pointer;
            transition: all 0.3s ease;
            display: none;
            box-shadow: var(--shadow-md);
            position: relative;
            overflow: hidden;
            z-index: 1;
        }
        
        #generateBtn::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, #ff8a8a, #ff6b6b);
            z-index: -1;
            transition: opacity 0.3s ease;
            opacity: 0;
        }
        
        #generateBtn:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-lg);
        }
        
        #generateBtn:hover::before {
            opacity: 1;
        }
        
        #question-display {
            background-color: var(--white);
            border-radius: var(--border-radius);
            padding: 30px;
            box-shadow: var(--shadow-lg);
            margin-bottom: 40px;
            min-height: 150px;
            display: none;
            position: relative;
            overflow: hidden;
            transition: all 0.3s ease;
        }
        
        #question-number {
            font-size: 24px;
            font-weight: 700;
            color: var(--primary-color);
            margin-bottom: 15px;
            display: inline-block;
            padding: 5px 15px;
            background: rgba(58, 123, 213, 0.1);
            border-radius: 30px;
        }
        
        #question-title {
            font-size: 22px;
            font-weight: 600;
            margin-bottom: 25px;
            color: var(--text-color);
            position: relative;
            padding-bottom: 15px;
        }
        
        #question-title::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 60px;
            height: 3px;
            background: var(--accent-gradient);
            border-radius: 2px;
        }
        
        #question-content {
            font-size: 17px;
            line-height: 1.6;
        }
        
        #question-content ul {
            margin-top: 20px;
            padding-left: 20px;
            list-style-type: none;
        }
        
        #question-content li {
            margin-bottom: 15px;
            position: relative;
            padding-left: 28px;
        }
        
        #question-content li::before {
            content: '';
            position: absolute;
            left: 0;
            top: 10px;
            width: 8px;
            height: 8px;
            background: var(--accent-color);
            border-radius: 50%;
        }
        
        .timer-section {
            display: none;
            flex-direction: column;
            align-items: center;
            background-color: var(--white);
            border-radius: var(--border-radius);
            padding: 25px;
            box-shadow: var(--shadow-md);
            width: 100%;
            max-width: 350px;
            position: relative;
            overflow: visible;
            margin-left: auto;
            margin-right: auto;
        }
        
        .timer-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 5px;
            background: var(--primary-gradient);
        }
        
        .timer-container {
            position: relative;
            width: 200px;
            height: 200px;
            margin-bottom: 15px;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        
        .timer-circle-bg {
            fill: none;
            stroke: rgba(58, 123, 213, 0.1);
            stroke-width: 12px;
        }
        
        .timer-circle {
            fill: none;
            stroke: var(--primary-color);
            stroke-width: 12px;
            stroke-linecap: round;
            transform: rotate(-90deg);
            transform-origin: center;
            transition: stroke-dashoffset 0.3s;
        }
        
        #timer {
            font-size: 42px;
            font-weight: 700;
            color: var(--primary-color);
            margin-bottom: 0;
            font-family: 'Poppins', monospace;
            letter-spacing: 2px;
            position: absolute;
            text-align: center;
        }
        
        .timer-controls {
            display: flex;
            width: 100%;
            gap: 10px;
        }
        
        #mute-button {
            padding: 12px;
            background: transparent;
            color: var(--primary-color);
            border: 2px solid var(--primary-color);
            border-radius: var(--border-radius);
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-basis: 48px;
            flex-shrink: 0;
        }
        
        #mute-button:hover {
            background: rgba(58, 123, 213, 0.1);
        }
        
        #mute-button.muted {
            color: var(--accent-color);
            border-color: var(--accent-color);
        }
        
        #mute-button svg {
            width: 24px;
            height: 24px;
        }
        
        #start-timer {
            padding: 12px 28px;
            font-size: 16px;
            font-weight: 600;
            background: var(--primary-gradient);
            color: var(--white);
            border: none;
            border-radius: var(--border-radius);
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: var(--shadow-sm);
            width: 100%;
            position: relative;
            overflow: hidden;
            z-index: 1;
            flex-grow: 1;
        }
        
        #start-timer::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--secondary-gradient);
            z-index: -1;
            transition: opacity 0.3s ease;
            opacity: 0;
        }
        
        #start-timer:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-md);
        }
        
        #start-timer:hover::before {
            opacity: 1;
        }
        
        #start-timer:disabled {
            background: #cbd5e0;
            cursor: not-allowed;
            transform: translateY(0);
            box-shadow: none;
        }
        
        #start-timer:disabled::before {
            opacity: 0;
        }
        
        .animation-container {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 10;
            overflow: hidden;
        }
        
        .animation-circle {
            position: absolute;
            background: radial-gradient(circle, rgba(58, 123, 213, 0.2) 0%, rgba(255, 107, 107, 0.1) 70%);
            border-radius: 50%;
            transform: scale(0);
            pointer-events: none;
        }
        
        @keyframes ripple {
            0% {
                transform: scale(0);
                opacity: 1;
            }
            70% {
                transform: scale(3);
                opacity: 0.7;
            }
            100% {
                transform: scale(4);
                opacity: 0;
            }
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(30px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .fade-in {
            animation: fadeIn 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
        }
        
        footer {
            margin-top: auto;
            padding: 30px;
            text-align: center;
            color: var(--text-light);
            font-size: 14px;
            font-weight: 300;
        }
        
        @media (max-width: 600px) {
            .category-selection {
                flex-direction: column;
                gap: 15px;
            }
            
            .category-btn {
                width: 100%;
            }
            
            #question-number {
                font-size: 20px;
            }
            
            #question-title {
                font-size: 18px;
            }
            
            #timer {
                font-size: 36px;
            }
            
            .timer-container {
                width: 180px;
                height: 180px;
            }
            
            .container {
                padding: 20px;
            }
            
            h1 {
                font-size: 24px;
            }
            
            header p {
                font-size: 16px;
            }
            
            .timer-controls {
                flex-direction: column;
            }
            
            #mute-button {
                width: 100%;
                flex-basis: auto;
            }
        }
        
        /* Additional Enhancements */
        .card-wrapper {
            perspective: 1000px;
            width: 100%;
        }
        
        .card-inner {
            transition: transform 0.8s;
            transform-style: preserve-3d;
        }
        
        .pulse {
            animation: pulse 2s infinite;
        }
        
        @keyframes pulse {
            0% {
                box-shadow: 0 0 0 0 rgba(58, 123, 213, 0.4);
            }
            70% {
                box-shadow: 0 0 0 10px rgba(58, 123, 213, 0);
            }
            100% {
                box-shadow: 0 0 0 0 rgba(58, 123, 213, 0);
            }
        }
        
        /* Notes & Rating Styles */
        .session-controls {
            display: flex;
            flex-direction: row; /* Arrange timer/rating and notes side-by-side */
            gap: 30px;
            margin-top: 40px;
            width: 100%;
            flex-wrap: wrap; /* Allow notes to wrap below if not enough space */
            align-items: stretch; /* Changed from flex-start to stretch so items have same height */
            justify-content: flex-start;    /* changed from space-between */
        }

        .timer-and-rating-container {
            display: flex;
            flex-direction: column;
            align-items: flex-start; /* ← change from center so both timer & rating align on left */
            gap: 20px; /* Space between timer and rating */
            flex: 0 0 350px; /* ← fixed width so notes always start at same point */
            justify-content: space-between; /* Distribute space evenly */
        }
        
        /* ensure the timer box and rating box both fill that 350px column */
        .timer-and-rating-container > .timer-section,
        .timer-and-rating-container > .rating-section {
            width: 100%;
            box-sizing: border-box; /* Added this line */
        }
        
        .notes-section {
            flex: 1 1 0;            /* allow to grow/shrink from zero */
            min-width: 300px;       /* prevent shrinking under this */
            background-color: var(--white);
            border-radius: var(--border-radius);
            padding: 25px;
            box-shadow: var(--shadow-md);
            position: relative;
            overflow: hidden;
            display: flex;          /* Added flex display */
            flex-direction: column; /* Stack children vertically */
        }
        
        .notes-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 5px;
            background: var(--secondary-gradient);
        }
        
        .notes-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 15px;
            align-items: center;
        }
        
        .notes-title {
            font-size: 18px;
            font-weight: 600;
            color: var(--text-color);
            margin: 0;
        }
        
        .formatting-toolbar {
            display: flex;
            gap: 8px;
            margin-bottom: 10px;
        }
        
        .format-btn {
            background: transparent;
            border: none;
            cursor: pointer;
            padding: 5px;
            border-radius: 4px;
            color: var(--text-light);
            font-size: 16px;
            transition: all 0.2s;
        }
        
        .format-btn:hover {
            background-color: rgba(0, 0, 0, 0.05);
            color: var(--text-color);
        }
        
        #notes {
            width: 100%;
            flex-grow: 1;           /* Allow textarea to expand to fill available space */
            min-height: 250px;      /* Changed from fixed height to minimum height */
            padding: 12px;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            resize: none;
            font-family: 'Poppins', sans-serif;
            font-size: 14px;
            line-height: 1.6;
            color: var(--text-color);
            box-sizing: border-box;
        }
        
        .rating-section {
            width: 100%; /* Take full width of its parent (timer-and-rating-container) */
            /* max-width: 350px; // This will be implicitly handled by parent's width */
            display: flex;
            flex-direction: column;
            /* margin-top: 20px; // Removed, gap in new parent handles this */
            background-color: var(--white);
            border-radius: var(--border-radius);
            padding: 20px;
            box-shadow: var(--shadow-md);
        }
        
        .rating-title {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 15px;
            color: var(--text-color);
            text-align: center;
        }
        
        .rating-buttons {
            display: flex;
            justify-content: space-between;
            gap: 10px;
        }
        
        .rating-btn {
            flex: 1;
            padding: 12px 15px;
            border: none;
            border-radius: var(--border-radius);
            font-weight: 600;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.3s;
            color: white;
            box-shadow: var(--shadow-sm);
            text-align: center;
        }
        
        .rating-good {
            background: var(--success-gradient);
        }
        
        .rating-medium {
            background: var(--warning-gradient);
        }
        
        .rating-poor {
            background: var(--danger-gradient);
        }
        
        .rating-btn:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-md);
        }
        
        /* History Section */
        .history-btn {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: var(--primary-gradient);
            color: white;
            border: none;
            box-shadow: var(--shadow-lg);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            transition: all 0.3s;
            z-index: 100;
        }
        
        .history-btn:hover {
            transform: scale(1.1) rotate(15deg);
        }
        
        .history-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.6);
            z-index: 1000;
            justify-content: center;
            align-items: center;
        }
        
        .history-content {
            background-color: var(--white);
            width: 90%;
            max-width: 800px;
            max-height: 80vh;
            border-radius: var(--border-radius);
            overflow: hidden;
            display: flex;
            flex-direction: column;
            position: relative;
            box-shadow: var(--shadow-lg);
        }
        
        .history-header {
            padding: 20px;
            background: var(--primary-gradient);
            color: white;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .history-title {
            font-size: 20px;
            font-weight: 600;
            margin: 0;
        }
        
        .history-header-controls {
            display: flex;
            align-items: center;
            gap: 15px;
        }
        
        .clear-history-btn {
            background: transparent;
            border: none;
            color: white;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 5px;
            border-radius: 50%;
            transition: all 0.2s;
        }
        
        .clear-history-btn:hover {
            background-color: rgba(255, 255, 255, 0.2);
        }
        
        .prevent-duplicates-container {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-right: 10px;
            padding: 5px 10px;
            border-radius: 20px;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .checkbox-wrapper {
            position: relative;
            display: inline-block;
            width: 38px;
            height: 20px;
        }
        
        .checkbox-wrapper input {
            opacity: 0;
            width: 0;
            height: 0;
        }
        
        .checkbox-slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(255, 255, 255, 0.3);
            transition: .4s;
            border-radius: 34px;
        }
        
        .checkbox-slider:before {
            position: absolute;
            content: "";
            height: 16px;
            width: 16px;
            left: 2px;
            bottom: 2px;
            background-color: white;
            transition: .4s;
            border-radius: 50%;
        }
        
        input:checked + .checkbox-slider {
            background-color: var(--accent-color);
        }
        
        input:checked + .checkbox-slider:before {
            transform: translateX(18px);
        }
        
        .close-history {
            background: transparent;
            border: none;
            color: white;
            font-size: 24px;
            cursor: pointer;
            padding: 0;
            line-height: 1;
        }
        
        .history-list {
            padding: 20px;
            overflow-y: auto;
            flex-grow: 1;
        }
        
        .history-item {
            padding: 15px;
            border-radius: var(--border-radius);
            background-color: #f8f9fa;
            margin-bottom: 15px;
            cursor: pointer;
            transition: all 0.2s;
            border-left: 4px solid transparent;
        }
        
        .history-item:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-md);
            border-left-color: var(--primary-color);
        }
        
        .history-item-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 10px;
        }
        
        .history-item-title {
            font-weight: 600;
            font-size: 16px;
            color: var(--text-color);
        }
        
        .history-item-date {
            font-size: 14px;
            color: var(--text-light);
        }
        
        .history-item-rating {
            display: inline-block;
            padding: 3px 10px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
            color: white;
        }
        
        .rating-tag-good {
            background: var(--success-color);
        }
        
        .rating-tag-medium {
            background: var(--warning-color);
        }
        
        .rating-tag-poor {
            background: var(--danger-color);
        }
        
        .history-detail {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            z-index: 1100;
            justify-content: center;
            align-items: center;
        }
        
        .history-detail-content {
            background-color: var(--white);
            width: 90%;
            max-width: 700px;
            max-height: 80vh;
            border-radius: var(--border-radius);
            overflow: hidden;
            display: flex;
            flex-direction: column;
            position: relative;
            box-shadow: var(--shadow-lg);
        }
        
        .history-detail-header {
            padding: 20px;
            background: var(--primary-gradient);
            color: white;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .history-detail-body {
            padding: 30px;
            overflow-y: auto;
            flex-grow: 1;
        }
        
        .detail-section {
            margin-bottom: 25px;
        }
        
        .detail-title {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 10px;
            color: var(--primary-color);
            padding-bottom: 5px;
            border-bottom: 2px solid #e2e8f0;
        }
        
        .detail-content {
            line-height: 1.6;
        }
        
        .detail-notes {
            background-color: #f8f9fa;
            padding: 15px;
            border-radius: 8px;
            border-left: 4px solid var(--primary-color);
            white-space: pre-wrap;
        }
        
        .no-history {
            text-align: center;
            padding: 50px 20px;
            color: var(--text-light);
        }
        
        .formatted-notes {
            white-space: pre-wrap;
        }
        
        .formatted-notes b {
            font-weight: bold;
        }
        
        .formatted-notes i {
            font-style: italic;
        }
        
        .formatted-notes u {
            text-decoration: underline;
        }
        
        @media (max-width: 768px) {
            .session-controls {
                flex-direction: column; /* Stack on smaller screens */
                align-items: center; /* Center items when stacked */
                flex-wrap: nowrap; /* Prevent wrapping when in column mode */
            }
            
            .timer-and-rating-container {
                width: 100%; /* Take full width */
                max-width: 400px; /* Or a suitable max-width for centered content */
                align-items: center; /* Ensure children are centered */
                flex: 0 0 auto; /* Reset flex behavior */
            }

            .notes-section {
                width: 100%; /* Take full width */
                max-width: 600px; /* Or a suitable max-width */
                margin-top: 30px; /* Add space when stacked below timer/rating */
                flex: 0 0 auto; /* Reset flex behavior, width controls size */
            }
        }

        /* Filter indicator for active duplicate prevention */
        .filter-active-indicator {
            position: absolute;
            top: -5px;
            right: -5px;
            width: 12px;
            height: 12px;
            background: var(--accent-color);
            border-radius: 50%;
            border: 2px solid white;
            display: none;
        }

        .history-btn.filter-active .filter-active-indicator {
            display: block;
        }

        /* Book Selection Modal */
        .book-selection-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.6);
            z-index: 1000;
            justify-content: center;
            align-items: center;
        }
        
        .book-selection-content {
            background-color: var(--white);
            width: 90%;
            max-width: 800px;
            max-height: 80vh;
            border-radius: var(--border-radius);
            overflow: hidden;
            display: flex;
            flex-direction: column;
            position: relative;
            box-shadow: var(--shadow-lg);
        }
        
        .book-selection-header {
            padding: 20px;
            background: var(--literature-gradient);
            color: white;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .book-selection-title {
            font-size: 20px;
            font-weight: 600;
            margin: 0;
        }
        
        .close-book-selection {
            background: transparent;
            border: none;
            color: white;
            font-size: 24px;
            cursor: pointer;
            padding: 0;
            line-height: 1;
        }
        
        .book-selection-body {
            padding: 20px;
            overflow-y: auto;
            flex-grow: 1;
        }
        
        .book-selection-instructions {
            margin-bottom: 20px;
            padding: 15px;
            background-color: rgba(159, 122, 234, 0.1);
            border-radius: var(--border-radius);
            font-size: 15px;
            line-height: 1.5;
            color: var(--text-color);
        }
        
        .book-selection-list {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 10px;
            margin-bottom: 20px;
        }
        
        .book-item {
            display: flex;
            align-items: center;
            padding: 8px 12px;
            border-radius: 8px;
            background-color: #f8f9fa;
            transition: all 0.2s;
        }
        
        .book-item:hover {
            background-color: rgba(159, 122, 234, 0.1);
        }
        
        .book-item input[type="checkbox"] {
            margin-right: 10px;
            cursor: pointer;
            width: 18px;
            height: 18px;
            accent-color: var(--literature-color);
        }
        
        .book-item label {
            cursor: pointer;
            font-size: 14px;
            line-height: 1.4;
            flex: 1;
        }
        
        .book-selection-footer {
            padding: 15px 20px;
            border-top: 1px solid #e2e8f0;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        
        .book-selection-input-container {
            margin-bottom: 10px;
        }
        
        .book-selection-input-container label {
            display: block;
            margin-bottom: 5px;
            font-weight: 500;
            font-size: 14px;
            color: var(--text-color);
        }
        
        #book-selection-input {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            font-size: 14px;
            font-family: 'Poppins', sans-serif;
        }
        
        #confirm-book-selection {
            padding: 12px 20px;
            font-size: 16px;
            font-weight: 600;
            background: var(--literature-gradient);
            color: var(--white);
            border: none;
            border-radius: var(--border-radius);
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: var(--shadow-sm);
            align-self: center;
        }
        
        #confirm-book-selection:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-md);
        }
        
        /* Adjust category selection for three buttons */
        .category-selection {
            display: flex;
            justify-content: center;
            margin-bottom: 40px;
            gap: 20px;
        }
        
        @media (max-width: 600px) {
            .book-selection-list {
                grid-template-columns: 1fr;
            }
            
            .book-item {
                padding: 10px;
            }
            
            .book-item label {
                font-size: 14px;
            }
        }