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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: #f8f9fa;
    color: #212529;
    line-height: 1.6;
    min-height: 100vh;
}

/* Navigation Bar */
.top-nav {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
}

.brand-icon {
    font-size: 1.5rem;
    color: #495057;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: #495057;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.nav-link:hover {
    background: #f8f9fa;
    color: #212529;
}

.nav-link.active {
    background: #212529;
    color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Homepage header (large) */
body > .container > header {
    text-align: center;
    margin-bottom: 48px;
}

body > .container > header h1 {
    font-size: 2.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

/* Tool page header (compact) */
.container > header:not(:first-child) {
    text-align: left;
    margin: 20px 0 24px 0;
}

.container > header:not(:first-child) h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    font-weight: 400;
    margin-bottom: 24px;
}

/* Site Description */
.site-description {
    max-width: 800px;
    margin: 24px auto;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border-left: 4px solid #495057;
}

.site-description p {
    color: #495057;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

/* Search Container */
.search-container {
    max-width: 600px;
    margin: 32px auto 0;
    position: relative;
}

.search-container input {
    width: 100%;
    padding: 16px 50px 16px 20px;
    font-size: 1rem;
    border: 2px solid #dee2e6;
    border-radius: 50px;
    background: #fff;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.search-container input:focus {
    outline: none;
    border-color: #495057;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: #6c757d;
}

/* Section Styles */
.tools-section {
    margin-bottom: 64px;
}

.section-header {
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e9ecef;
}

.section-header h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 8px;
}

.section-header p {
    color: #6c757d;
    font-size: 1rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.tool-card {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 24px 20px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #495057, #212529);
    transition: left 0.3s ease;
}

.tool-card:hover::before {
    left: 0;
}

.tool-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #495057;
}

.tool-card:hover .open-tool-btn {
    opacity: 1;
    transform: translateY(0);
}

.tool-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.tool-card:hover .tool-icon {
    background: #e9ecef;
    transform: scale(1.1);
}

.tool-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 8px;
}

.tool-desc {
    color: #6c757d;
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0 0 12px 0;
}

.open-tool-btn {
    margin-top: auto;
    padding: 8px 20px;
    background: #212529;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    cursor: pointer;
}

.open-tool-btn:hover {
    background: #343a40;
}

/* No results message */
.no-results {
    text-align: center;
    color: #6c757d;
    padding: 40px;
    font-size: 1.1rem;
}

.back-link {
    display: inline-block;
    color: #495057;
    text-decoration: none;
    margin-bottom: 24px;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #dee2e6;
}

.back-link:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.tool-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 32px 24px;
    text-decoration: none;
    color: inherit;
    display: block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #adb5bd;
}

.tool-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
}

.tool-card h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 8px;
}

.tool-card p {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.5;
}

.tool-content {
    max-width: 800px;
    margin: 0 auto;
}

.input-section,
.output-section {
    margin-bottom: 24px;
}

label {
    display: block;
    font-weight: 500;
    color: #495057;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

textarea,
input[type="text"] {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    background: #fff;
    resize: vertical;
}

textarea {
    min-height: 200px;
}

textarea:focus,
input[type="text"]:focus {
    outline: none;
    border-color: #495057;
    box-shadow: 0 0 0 3px rgba(73, 80, 87, 0.1);
}

.actions {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

button {
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: #212529;
    color: #fff;
}

button:hover {
    background: #343a40;
}

button:active {
    transform: translateY(1px);
}

button.secondary {
    background: #e9ecef;
    color: #495057;
}

button.secondary:hover {
    background: #dee2e6;
}

.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.copy-btn {
    padding: 8px 16px;
    font-size: 0.875rem;
    background: #fff;
    color: #495057;
    border: 1px solid #dee2e6;
}

.copy-btn:hover {
    background: #e9ecef;
    color: #212529;
}

.status-message {
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    display: none;
}

.status-message.success {
    display: block;
    background: #d1e7dd;
    color: #0a3622;
    border: 1px solid #a3cfbb;
}

.status-message.error {
    display: block;
    background: #f8d7da;
    color: #58151c;
    border: 1px solid #f1aeb5;
}

.password-options {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.option-group {
    margin-bottom: 20px;
}

.option-group:last-child {
    margin-bottom: 0;
}

input[type="range"] {
    width: 100%;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    outline: none;
    margin-top: 8px;
}

input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    background: #212529;
    border-radius: 50%;
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #212529;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
}

.checkbox-label span {
    color: #495057;
    font-weight: 400;
}

footer {
    text-align: center;
    margin-top: 80px;
    padding-top: 32px;
    border-top: 1px solid #e9ecef;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Additional styles for new tools */

.jwt-sections {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.color-picker-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.color-display {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    border: 2px solid #dee2e6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#colorInput {
    width: 200px;
    height: 50px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.color-formats {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.format-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.format-input-group {
    display: flex;
    gap: 8px;
}

.format-input-group input {
    flex: 1;
}

.copy-btn-small {
    padding: 8px 16px;
    font-size: 0.875rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background: #212529;
    color: #fff;
}

.copy-btn-small:hover {
    background: #343a40;
}

.timestamp-section {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
}

.current-time {
    text-align: center;
}

.time-display {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.time-display strong {
    font-size: 1.5rem;
    color: #212529;
}

.converter-section {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.converter-section h3 {
    margin-bottom: 16px;
    color: #495057;
    font-size: 1.1rem;
}

input[type="datetime-local"],
select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 0.95rem;
    background: #fff;
    margin-bottom: 12px;
}

.diff-container,
.markdown-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.diff-section,
.markdown-section {
    display: flex;
    flex-direction: column;
}

.diff-output {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 16px;
    min-height: 300px;
    max-height: 500px;
    overflow-y: auto;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
}

.diff-line {
    padding: 4px 8px;
    margin: 2px 0;
    border-radius: 4px;
}

.diff-line.same {
    background: #f8f9fa;
}

.diff-line.removed {
    background: #f8d7da;
    color: #721c24;
}

.diff-line.added {
    background: #d4edda;
    color: #155724;
}

.line-num {
    display: inline-block;
    width: 40px;
    color: #6c757d;
    font-size: 0.85rem;
}

.markdown-preview {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 16px;
    min-height: 300px;
    max-height: 500px;
    overflow-y: auto;
}

.markdown-preview h1 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.markdown-preview h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.markdown-preview h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.markdown-preview code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.markdown-preview pre {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    overflow-x: auto;
}

.markdown-preview ul {
    margin-left: 24px;
}

.markdown-preview blockquote {
    border-left: 4px solid #dee2e6;
    padding-left: 16px;
    margin: 16px 0;
    color: #6c757d;
}

.empty-state {
    color: #adb5bd;
    text-align: center;
    padding: 40px;
}

.regex-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 8px 12px;
}

.regex-input-group input[type="text"] {
    border: none;
    padding: 6px;
    flex: 1;
}

.regex-input-group input[type="text"]:focus {
    box-shadow: none;
}

.regex-input-group span {
    color: #6c757d;
    font-weight: 600;
}

.matches-output {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 16px;
    min-height: 100px;
    max-height: 200px;
    overflow-y: auto;
}

.match-item {
    padding: 8px;
    margin-bottom: 8px;
    background: #f8f9fa;
    border-radius: 4px;
}

.no-matches {
    color: #6c757d;
    text-align: center;
    padding: 20px;
}

.highlighted-output {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 16px;
    min-height: 150px;
    max-height: 300px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.highlighted-output mark {
    background: #fff3cd;
    padding: 2px 4px;
    border-radius: 3px;
}

.url-components {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.component-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.params-output {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 16px;
    overflow-x: auto;
}

.params-table {
    width: 100%;
    border-collapse: collapse;
}

.params-table th,
.params-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.params-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.number-options,
.lorem-options,
.uuid-options {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.hash-outputs {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
}

.hash-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Additional styles for new tools */

.tool-description {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #495057;
}

.minify-options,
.optimization-options,
.title-options,
.idea-options,
.qr-options,
.prompt-builder,
.examples-section {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.ip-info-display,
.ua-info-display {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.info-card,
.info-section {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.info-card h3,
.info-section h3 {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: #212529;
    word-break: break-word;
}

.cron-options,
.cron-presets {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.cron-presets h3 {
    margin-bottom: 16px;
    font-size: 1rem;
    color: #495057;
}

.preset-btn,
.example-btn {
    padding: 10px 16px;
    margin: 4px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #495057;
}

.preset-btn:hover,
.example-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.cron-output,
.regex-output {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.cron-display {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.cron-display input {
    flex: 1;
}

.cron-description,
.regex-explanation {
    color: #6c757d;
    font-size: 0.9rem;
    margin-top: 8px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
}

.upload-section {
    margin-bottom: 24px;
}

.upload-section input[type=\"file\"] {
    display: block;
    width: 100%;
    padding: 12px;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    background: #f8f9fa;
    margin-top: 8px;
}

.upload-section input[type=\"file\"]:hover {
    border-color: #adb5bd;
    background: #fff;
}

.file-info {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 8px;
}

.preview-section {
    margin-bottom: 24px;
    text-align: center;
}

.qr-display {
    text-align: center;
    margin: 32px 0;
    padding: 24px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
}

.qr-display canvas {
    max-width: 100%;
    height: auto;
}

.titles-output,
.ideas-output {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.titles-list,
.ideas-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.title-item,
.idea-item {
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #495057;
    cursor: pointer;
    transition: all 0.2s;
}

.title-item:hover {
    background: #e9ecef;
    border-left-color: #212529;
    transform: translateX(4px);
}

.idea-item {
    cursor: default;
}

.suggestions {
    background: #d1e7dd;
    border: 1px solid #a3cfbb;
    border-radius: 12px;
    padding: 20px;
    margin-top: 24px;
}

.suggestions h3 {
    color: #0a3622;
    margin-bottom: 12px;
    font-size: 1rem;
}

.suggestions ul {
    list-style-position: inside;
    color: #0a3622;
}

.suggestions li {
    margin-bottom: 8px;
}

.test-section {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 24px;
    margin-top: 24px;
}

.test-result {
    margin-top: 12px;
    padding: 12px;
    border-radius: 6px;
    display: none;
}

/* Universal Two-Column Tool Layout */
.tool-workspace {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.tool-left-panel {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 24px;
}

.tool-right-panel {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 24px;
    position: sticky;
    top: 80px;
    align-self: start;
}

.panel-header {
    font-size: 1rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e9ecef;
}

.tool-input-group {
    margin-bottom: 16px;
}

.tool-input-group label {
    display: block;
    font-weight: 500;
    color: #495057;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.tool-input-group input,
.tool-input-group textarea,
.tool-input-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    background: #fff;
}

.tool-input-group textarea {
    min-height: 150px;
    resize: vertical;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.tool-input-group input:focus,
.tool-input-group textarea:focus,
.tool-input-group select:focus {
    outline: none;
    border-color: #495057;
    box-shadow: 0 0 0 3px rgba(73, 80, 87, 0.1);
}

.tool-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.tool-actions button {
    flex: 1;
    min-width: 120px;
}

/* Result Panel */
.result-panel-content {
    min-height: 200px;
}

.output-display {
    background: #fff;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 16px;
    min-height: 150px;
    max-height: 400px;
    overflow-y: auto;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    color: #212529;
    white-space: pre-wrap;
    word-break: break-word;
    margin-bottom: 16px;
}

.output-display.empty {
    color: #adb5bd;
    font-style: italic;
    display: flex;
    align-items: center;
    justify-content: center;
}

.output-display.success {
    border-color: #a3cfbb;
    background: #d1e7dd;
}

.result-actions {
    display: flex;
    gap: 10px;
}

.result-actions button {
    flex: 1;
}

.success-message {
    display: none;
    margin-top: 12px;
    padding: 12px;
    background: #d1e7dd;
    color: #0a3622;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
}

.success-message.show {
    display: block;
}

/* Mobile Responsive - Stack Layout */
@media (max-width: 968px) {
    .tool-workspace {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tool-right-panel {
        position: static;
    }
    
    .tool-actions button {
        min-width: 100px;
    }
}

@media (max-width: 768px) {
    .tool-left-panel,
    .tool-right-panel {
        padding: 16px;
    }
    
    .tool-actions {
        flex-direction: column;
    }
    
    .tool-actions button {
        width: 100%;
        min-width: auto;
    }
}

.tool-panel {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
}

.tool-panel h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 8px;
}

.tool-panel .one-liner {
    font-size: 0.95rem;
    color: #6c757d;
    margin-bottom: 24px;
    line-height: 1.5;
}

/* Sticky Mini Navigation */
.tool-mini-nav {
    display: flex;
    gap: 16px;
    padding: 12px 0;
    margin-bottom: 24px;
    border-bottom: 2px solid #e9ecef;
    position: sticky;
    top: 64px;
    background: #fff;
    z-index: 100;
}

.tool-mini-nav a {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s;
}

.tool-mini-nav a:hover,
.tool-mini-nav a.active {
    color: #212529;
    background: #f8f9fa;
}

/* Compact Input/Output */
.compact-input-group {
    margin-bottom: 16px;
}

.compact-input-group label {
    display: block;
    font-weight: 500;
    color: #495057;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.compact-input-group input,
.compact-input-group textarea,
.compact-input-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: inherit;
}

.compact-input-group textarea {
    min-height: 100px;
    resize: vertical;
}

/* Compact Actions */
.compact-actions {
    display: flex;
    gap: 10px;
    margin: 16px 0;
    flex-wrap: wrap;
}

.compact-actions button {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* Result Box */
.result-box {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
    position: relative;
}

.result-box.highlight {
    background: #d1e7dd;
    border-color: #a3cfbb;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.result-header h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #495057;
    margin: 0;
}

.result-content {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    color: #212529;
    white-space: pre-wrap;
    word-break: break-word;
    background: #fff;
    padding: 12px;
    border-radius: 6px;
    max-height: 300px;
    overflow-y: auto;
}

/* Collapsible Sections */
.info-section-collapsible {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}

.collapsible-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    background: #f8f9fa;
    transition: background 0.2s;
}

.collapsible-header:hover {
    background: #e9ecef;
}

.collapsible-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
    margin: 0;
}

.collapsible-toggle {
    font-size: 1.2rem;
    color: #6c757d;
    transition: transform 0.3s;
}

.collapsible-toggle.open {
    transform: rotate(180deg);
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.collapsible-content.open {
    max-height: 2000px;
}

.collapsible-content-inner {
    padding: 20px;
}

.collapsible-content-inner p {
    color: #495057;
    line-height: 1.7;
    margin-bottom: 12px;
}

.collapsible-content-inner ul {
    margin-left: 24px;
    color: #495057;
}

.collapsible-content-inner li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Compact Related Tools */
.compact-related-tools {
    margin-top: 32px;
    padding: 24px;
    background: #f8f9fa;
    border-radius: 8px;
}

.compact-related-tools h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 16px;
}

.compact-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.compact-tool-link {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    display: block;
}

.compact-tool-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    border-color: #495057;
}

.compact-tool-link h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #212529;
    margin: 0 0 4px 0;
}

.compact-tool-link p {
    font-size: 0.8rem;
    color: #6c757d;
    margin: 0;
}

/* Responsive adjustments for compact layout */
@media (max-width: 768px) {
    .tool-panel {
        padding: 20px;
    }
    
    .tool-mini-nav {
        gap: 8px;
        flex-wrap: wrap;
        top: 64px;
    }
    
    .compact-actions {
        flex-direction: column;
    }
    
    .compact-actions button {
        width: 100%;
    }
}

.example-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.example-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.info-sections {
    margin-top: 64px;
    padding-top: 48px;
    border-top: 2px solid #e9ecef;
}

.info-section {
    margin-bottom: 40px;
}

.info-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 16px;
}

.info-section p,
.info-section ul {
    font-size: 0.95rem;
    color: #495057;
    line-height: 1.7;
}

.info-section ul {
    margin-left: 24px;
    margin-top: 12px;
}

.info-section li {
    margin-bottom: 8px;
}

.related-tools {
    margin-top: 48px;
    padding: 32px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.related-tools h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 20px;
}

.related-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.related-tool-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 16px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    display: block;
}

.related-tool-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #495057;
}

.related-tool-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 4px;
}

.related-tool-card p {
    font-size: 0.85rem;
    color: #6c757d;
    margin: 0;
    line-height: 1.4;
}

/* Footer Styles */
.site-footer {
    background: #fff;
    border-top: 1px solid #e9ecef;
    margin-top: 80px;
    padding: 48px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.footer-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 16px;
}

.footer-section p {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #212529;
}

.footer-bottom {
    border-top: 1px solid #e9ecef;
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    color: #6c757d;
    font-size: 0.875rem;
    margin: 0;
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 16px;
    }

    .nav-links {
        gap: 4px;
    }

    .nav-link {
        padding: 6px 10px;
        font-size: 0.85rem;
    }

    .brand-text {
        font-size: 1rem;
    }

    .container {
        padding: 24px 16px;
    }

    header h1 {
        font-size: 2rem;
    }

    .tools-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .section-header h2 {
        font-size: 1.4rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .actions {
        flex-direction: column;
    }

    button {
        width: 100%;
    }

    .output-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .copy-btn {
        width: 100%;
    }

    .diff-container,
    .markdown-container {
        grid-template-columns: 1fr;
    }

    .format-input-group {
        flex-direction: column;
    }

    .copy-btn-small {
        width: 100%;
    }
}