/* Table of Contents by studyquell.com - Enhanced Version */ .toc { background-color: #ffffff; border: 1px solid #e1e4e8; border-radius: 8px; /* Rounded corners */ padding: 15px 20px; display: table; line-height: 1.7em; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); /* Soft shadow */ font-family: 'Segoe UI', Roboto, sans-serif; min-width: 250px; margin: 20px 0; } .toc h2 { display: inline-block; margin: 0 15px 0 0; font-size: 1.2rem; color: #2c3e50; font-weight: 600; } .toc a { text-decoration: none; color: #34495e; transition: all 0.2s ease; /* Smooth hover effect */ } .toc a:hover { text-decoration: none; color: #007bff; /* Professional Blue */ padding-left: 5px; /* Subtle slide effect */ } .toc ul { list-style-type: none; margin: 10px 0 0 0; padding: 0; text-align: left; } .toc ul li { margin-bottom: 5px; } .toc ul li a { margin-left: 0.5em; font-size: 0.95rem; } .toc ul li ul { margin-left: 1.5em; border-left: 2px solid #f0f0f0; /* Side line for nested items */ padding-left: 10px; } .toctogglelabel { cursor: pointer; color: #007bff; font-size: 0.85rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; } /* Checkbox and Toggle Logic */ :not(:checked) > .toctoggle { display: inline !important; position: absolute; opacity: 0; } :not(:checked) > .toctogglespan:before { content: '['; color: #aaa; } :not(:checked) > .toctogglespan:after { content: ']'; color: #aaa; } .toctoggle:not(:checked) + .toctitle .toctogglelabel:after { content: 'Hide'; } .toctoggle:checked + .toctitle .toctogglelabel:after { content: 'Show'; } .toctoggle:checked ~ ul { display: none; } :target::before { content: ''; display: block; height: 20px; margin-top: -20px; visibility: hidden; }