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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

header {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 2rem;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
}

.header-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.how-to-link,
.tools-link,
.blog-link {
    color: #4A90E2;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background 0.3s;
}

.how-to-link:hover,
.tools-link:hover,
.blog-link:hover {
    background: rgba(74, 144, 226, 0.1);
}

.how-to-link.active,
.tools-link.active {
    background: #667eea;
    color: white;
}

main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 80px);
    padding: 2rem;
}

.container {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    width: 100%;
}

.left-panel {
    background: white;
    border-radius: 15px;
    padding: 2.5rem;
    flex: 0 0 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.right-panel {
    background: white;
    border-radius: 15px;
    padding: 2.5rem;
    flex: 1;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.subtitle {
    text-align: center;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 2rem;
}

.input-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

label {
    font-weight: 500;
    color: #555;
    margin-top: 0.5rem;
}

select, input {
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s, opacity 0.3s, background-color 0.3s;
}

select:focus, input:focus {
    outline: none;
    border-color: #667eea;
}

select:disabled {
    opacity: 0.5;
    background-color: #f5f5f5;
    cursor: not-allowed;
    color: #999;
}

button {
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 1rem;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

button:active {
    transform: translateY(0);
}

.toggle-custom-btn {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

.toggle-custom-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: none;
    box-shadow: none;
}

.hidden {
    display: none;
}

.results {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.results h2 {
    text-align: center;
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

#splits-content {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-family: 'Courier New', monospace;
    white-space: normal;
    flex: 1;
    overflow-y: auto;
    color: #666;
    min-height: 300px;
}

#copy-btn {
    background: #4A90E2;
    width: 100%;
}

#copy-btn:hover {
    background: #357ABD;
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.4);
}

.copy-message {
    display: block;
    text-align: center;
    color: #4caf50;
    font-weight: 600;
    margin-top: 0.5rem;
}

.copy-message.hidden {
    display: none;
}

/* How To Page Styles */
.how-to-container {
    max-width: 900px;
    width: 100%;
    background: white;
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.how-to-container h1 {
    color: #667eea;
    margin-bottom: 2rem;
    font-size: 2.25rem;
    text-align: center;
}

.instructions-page section {
    margin-bottom: 2.5rem;
}

.instructions-page h2 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}

.instructions-page p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.instructions-page ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
    color: #555;
}

.instructions-page li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.instructions-page strong {
    color: #333;
    font-weight: 600;
}

.instructions-page em {
    color: #667eea;
    font-style: italic;
}

.cta-section {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e0e0e0;
}

.cta-section p {
    color: #333;
    font-size: 1.1rem;
}

.cta-section h2 {
    color: #333;
}

.back-btn {
    display: inline-block;
    background: #1a1a1a;
    color: #ffffff;
    text-decoration: none;
    padding: 1.25rem 2.75rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.15rem;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    margin: 1.5rem 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.back-btn:hover {
    background: #333333;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.footer-note {
    text-align: center;
    font-size: 1.1rem;
    margin-top: 1rem;
    color: #667eea;
}

/* Blog Post Styles */
.blog-post {
    max-width: 900px;
    width: 100%;
    background: white;
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.blog-post h1 {
    color: #333;
    font-size: 2.25rem;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.post-meta {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e0e0e0;
}

.blog-post .intro {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.blog-post section {
    margin-bottom: 2.5rem;
}

.blog-post h2 {
    color: #333;
    font-size: 1.75rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 3px solid #667eea;
    padding-bottom: 0.5rem;
}

.blog-post h3 {
    color: #444;
    font-size: 1.35rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.blog-post h4 {
    color: #555;
    font-size: 1.15rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.blog-post p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.blog-post ul, .blog-post ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
    color: #555;
}

.blog-post li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.blog-post strong {
    color: #333;
    font-weight: 600;
}

.blog-post em {
    color: #667eea;
    font-style: italic;
}

.blog-post a {
    color: #667eea;
    text-decoration: underline;
}

.blog-post a:hover {
    color: #764ba2;
}

.pace-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pace-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.pace-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.pace-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.pace-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.pace-table tbody tr:hover {
    background: #e3f2fd;
}

.pace-table .highlight-row {
    background: #fff3cd !important;
    font-weight: 600;
}

.highlight-box {
    background: #e3f2fd;
    border-left: 4px solid #667eea;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
}

.highlight-box h3 {
    color: #667eea;
    margin-top: 0;
}

.formula-box {
    background: #f8f9fa;
    border: 2px dashed #667eea;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
    text-align: center;
    font-family: 'Courier New', monospace;
}

.warning-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
}

.warning-box h3 {
    color: #856404;
    margin-top: 0;
}

.note {
    background: #f0f4ff;
    border-left: 3px solid #667eea;
    padding: 1rem;
    margin: 1rem 0;
    font-style: italic;
    color: #555;
}

.related-posts {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e0e0e0;
}

.related-posts h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.related-posts ul {
    list-style: none;
    margin-left: 0;
}

.related-posts li {
    margin-bottom: 0.75rem;
}

.related-posts a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.related-posts a:hover {
    text-decoration: underline;
}

/* Blog Index Page Styles */
.blog-index {
    max-width: 1200px;
    width: 100%;
    padding: 3rem 2rem;
}

.blog-index h1 {
    color: #333;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.blog-subtitle {
    text-align: center;
    color: #444;
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.blog-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.blog-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.blog-category {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.read-time {
    color: #999;
    font-size: 0.9rem;
}

.blog-card h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blog-card h2 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.blog-card h2 a:hover {
    color: #667eea;
}

.blog-excerpt {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    background: #f0f4ff;
    color: #667eea;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
}

.read-more {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s;
}

.read-more:hover {
    color: #764ba2;
}

.blog-about {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 3rem;
}

.blog-about h2 {
    color: #333;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.blog-about p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.blog-categories {
    margin-bottom: 3rem;
}

.blog-categories h2 {
    color: #333;
    font-size: 1.75rem;
    margin-bottom: 2rem;
    text-align: center;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.5rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.category-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.category-card h3 {
    color: #667eea;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.category-card p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Tool Card Styles */
.tool-card {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.tool-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.tool-card h3 {
    color: #333;
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.tool-card h3 a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s;
}

.tool-card h3 a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.tool-card p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.tool-card p:last-child {
    margin-bottom: 0;
}

/* Results Display Styles */
.result-header {
    margin-bottom: 20px;
    padding-bottom: 5px;
    border-bottom: 2px solid #667eea;
}

.result-header h3 {
    color: #667eea;
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.result-main {
    font-size: 1rem;
    color: #333;
    margin: 0;
}

.result-section {
    margin-bottom: 10px;
    padding: 0;
}

.result-section h4 {
    color: #667eea;
    font-size: 1rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.result-section p {
    margin-bottom: 5px;
    color: #555;
    white-space: normal;
}

.result-section strong {
    color: #333;
    font-weight: 600;
}

.results-table {
    width: 100%;
    margin: 0.25rem 0;
}

.results-table tr {
    border-bottom: 1px solid #f0f0f0;
}

.results-table td {
    padding: 0.35rem 0;
    color: #555;
    font-size: 0.95rem;
}

.results-table td:first-child {
    font-weight: 500;
    width: 40%;
    color: #333;
}

.results-table td:last-child {
    font-weight: 600;
    color: #667eea;
}

/* Footer Styles */
footer {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-content p {
    color: #555;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.footer-content .disclaimer {
    font-size: 0.85rem;
    color: #777;
    line-height: 1.6;
    font-style: italic;
}

@media (max-width: 1024px) {
    .container {
        flex-direction: column;
    }

    .left-panel {
        flex: 1;
        width: 100%;
    }

    .right-panel {
        flex: 1;
        width: 100%;
    }
}

@media (max-width: 600px) {
    .left-panel, .right-panel {
        padding: 2rem 1.5rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    header {
        padding: 1rem;
    }

    .logo {
        font-size: 1rem;
    }

    .header-links {
        gap: 0.25rem;
    }

    .how-to-link,
    .tools-link,
    .blog-link {
        font-size: 0.85rem;
        padding: 0.4rem 0.75rem;
    }

    main {
        padding: 1rem;
    }

    .how-to-container {
        padding: 2rem 1.5rem;
    }

    .how-to-container h1 {
        font-size: 1.75rem;
    }

    .instructions-page h2 {
        font-size: 1.25rem;
    }

    .blog-post {
        padding: 2rem 1.5rem;
    }

    .blog-post h1 {
        font-size: 1.75rem;
    }

    .blog-post h2 {
        font-size: 1.4rem;
    }

    .blog-post h3 {
        font-size: 1.15rem;
    }

    .pace-table {
        font-size: 0.85rem;
        display: block;
        overflow-x: auto;
    }

    .pace-table th,
    .pace-table td {
        padding: 0.5rem;
    }

    .blog-index {
        padding: 2rem 1rem;
    }

    .blog-index h1 {
        font-size: 2rem;
    }

    .blog-subtitle {
        font-size: 1rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }
}
