/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
        Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

.main-container {
    margin-top: 20px;
}

/* Header */
header {
    background-color: #ffffff;
    color: #2c3e50;
    padding: 1rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid #e0e0e0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.site-title {
    margin: 0;
    font-size: 1.5rem;
}

.site-title a {
    color: #2c3e50;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: color 0.3s ease;
}

.site-title a:hover {
    color: #3498db;
}

.site-logo {
    height: 40px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-left ul,
.nav-right ul {
    margin: 0;
    padding: 0;
}

nav a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

nav a:hover {
    color: #3498db;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    z-index: 1000;
    flex-direction: column;
    gap: 0;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: #555;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: #f5f5f5;
    color: #3498db;
}

.dropdown:hover .dropdown-menu {
    display: flex;
}

/* Main Content */
main {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 2rem 0;
    background-color: white;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

.hero-tagline {
    font-size: 1.3rem;
    color: #27ae60;
    font-weight: 600;
    margin-bottom: 0.5rem !important;
}

/* Tools List */
.tools-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

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

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

.tool-card h2 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.tool-card h2 a {
    color: #2c3e50;
    text-decoration: none;
}

.tool-card p {
    color: #666;
    margin-bottom: 1rem;
}

/* Tool Page */
.tool-page {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tool-page h1 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.tool-description {
    color: #666;
    margin-bottom: 0.5rem;
}

.privacy-notice {
    background-color: #e8f5e9;
    border-left: 4px solid #27ae60;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    font-size: 0.95rem;
    border-radius: 4px;
}

.info-notice {
    background-color: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-size: 0.9rem;
    border-radius: 4px;
}

/* Tool Container */
.tool-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-section,
.output-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

label {
    font-weight: 600;
    color: #2c3e50;
}

textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-family: "Courier New", monospace;
    font-size: 0.95rem;
    resize: vertical;
    transition: border-color 0.3s;
}

textarea:focus {
    outline: none;
    border-color: #3498db;
}

textarea[readonly] {
    background-color: #f9f9f9;
}

/* Buttons */
.button-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.btn {
    padding: 0.75rem 1.5rem;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #2980b9;
}

.btn-primary {
    background-color: #27ae60;
}

.btn-primary:hover {
    background-color: #229954;
}

/* Stats Grid (Word Counter) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.stat-item {
    background-color: #f9f9f9;
    padding: 1rem;
    border-radius: 4px;
    border-left: 4px solid #3498db;
}

.stat-label {
    display: block;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
}

/* Select Input */
select {
    padding: 0.5rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}

/* Error Message */
.error-message {
    display: none;
    background-color: #e74c3c;
    color: white;
    padding: 0.75rem;
    border-radius: 4px;
    margin: 0.5rem 0;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
}

footer p {
    margin: 0;
}

/* Blank Space Tool Styles */
.blank-space-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Quick Copy Section */
.quick-copy-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
    border-radius: 12px;
    color: white;
}

.quick-copy-section h2 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.quick-copy-section p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.quick-copy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.quick-copy-card {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.quick-copy-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.quick-char-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.popular-badge {
    background-color: #27ae60;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 0.5rem;
}

.quick-char-display {
    font-size: 2rem;
    font-family: "Courier New", monospace;
    background-color: #f5f5f5;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #ddd;
}

.quick-copy-card .copy-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s;
}

.quick-copy-card .copy-btn:hover {
    background-color: #5568d3;
}

.quick-copy-card .copy-btn.copied {
    background-color: #27ae60;
}

.quick-copy-card .copy-btn:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Support Badges */
.support-badge {
    display: inline-block;
    padding: 0.15rem 0.4rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-left: 0.5rem;
    text-transform: uppercase;
}

.support-badge.supported {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.support-badge.unsupported {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.unsupported-card {
    opacity: 0.5;
    cursor: not-allowed;
}

.unsupported-card:hover {
    transform: none;
    box-shadow: none;
}

/* Generator Section */
.generator-section {
    background-color: #fff;
    border: 2px solid #3498db;
    padding: 2rem;
    border-radius: 12px;
}

.generator-section h2 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.generator-section > p {
    color: #666;
    margin-bottom: 1.5rem;
}

.generator-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-end;
}

.generator-input-group {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.generator-input-group label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
}

.generator-input-group select,
.generator-input-group input {
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.generator-input-group select:focus,
.generator-input-group input:focus {
    outline: none;
    border-color: #3498db;
}

.generator-output {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.generator-output label {
    font-weight: 600;
    color: #2c3e50;
}

.generator-output textarea {
    background-color: #f9f9f9;
    border: 2px solid #ddd;
    font-family: "Courier New", monospace;
}

.character-section {
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
}

.character-section h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.character-card {
    background-color: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.character-card:hover {
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.char-display {
    font-size: 1.8rem;
    font-family: "Courier New", monospace;
    background-color: #f5f5f5;
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #ccc;
}

.char-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.char-unicode {
    font-size: 0.8rem;
    color: #666;
    font-family: "Courier New", monospace;
    margin-bottom: 0.75rem;
}

.character-card .copy-btn {
    width: 100%;
    padding: 0.5rem 1rem;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.character-card .copy-btn:hover {
    background-color: #2980b9;
}

.character-card .copy-btn.copied {
    background-color: #27ae60;
}

.character-card .copy-btn.error {
    background-color: #e74c3c;
}

.character-card .copy-btn:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Copy Notification */
.copy-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #27ae60;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    font-weight: 600;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.copy-notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* Sort Text Styles */
.sort-text-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-stats,
.output-stats {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.sort-controls {
    background-color: #f9f9f9;
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
}

.sort-controls-row {
    display: grid;
    grid-template-columns: 1fr 2fr auto;
    gap: 1rem;
    align-items: end;
}

.dropdown-group,
.options-group {
    display: flex;
    flex-direction: column;
}

.dropdown-group label,
.options-group > label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

.sort-dropdown {
    padding: 0.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.95rem;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.sort-dropdown:focus {
    outline: none;
    border-color: #3498db;
}

.compact-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.compact-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #2c3e50;
}

.compact-checkbox input[type="checkbox"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.compact-checkbox span {
    white-space: nowrap;
}

.button-group {
    display: flex;
    align-items: flex-end;
}

@media (max-width: 768px) {
    .sort-controls-row {
        grid-template-columns: 1fr;
    }

    .button-group {
        align-items: stretch;
    }

    .button-group .btn {
        width: 100%;
    }
}

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

.output-header label {
    margin-bottom: 0;
}

.btn-secondary.copied {
    background-color: #27ae60;
}

/* Text Generator Styles */
.text-generator-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.generated-styles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.style-output-card {
    background-color: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.style-output-card:hover {
    border-color: #3498db;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.1);
}

.style-output-card h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.style-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.output-box {
    background-color: #f9f9f9;
    border: 2px dashed #ddd;
    border-radius: 6px;
    padding: 1rem;
    min-height: 60px;
    font-size: 1.1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.copy-output-btn {
    width: 100%;
    padding: 0.75rem;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.copy-output-btn:hover {
    background-color: #2980b9;
}

.copy-output-btn.copied {
    background-color: #27ae60;
}

/* SEO Content Section */
.seo-content {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #ddd;
}

.content-section {
    margin-bottom: 2.5rem;
}

.content-section h2 {
    color: #2c3e50;
    font-size: 1.6rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

.content-section h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

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

.content-section ol,
.content-section ul {
    color: #555;
    line-height: 1.8;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.content-section li {
    margin-bottom: 0.5rem;
}

.content-section ol li {
    padding-left: 0.5rem;
}

.platforms-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.platform-tag {
    background-color: #f0f0f0;
    color: #2c3e50;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid #ddd;
    transition: all 0.3s ease;
}

.platform-tag:hover {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

.final-note {
    font-size: 1.1rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-left: 4px solid #3498db;
    border-radius: 4px;
    color: #2c3e50;
}

.keywords-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.keyword-tag {
    background-color: #e3f2fd;
    color: #1976d2;
    padding: 0.4rem 0.8rem;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid #bbdefb;
    transition: all 0.3s ease;
}

.keyword-tag:hover {
    background-color: #1976d2;
    color: white;
    border-color: #1976d2;
    transform: translateY(-2px);
}

/* Blog Post Styles */
.tool-page h1 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.tool-page h2 {
    color: #2c3e50;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.6rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

.tool-page h3 {
    color: #2c3e50;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

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

.tool-page ul,
.tool-page ol {
    color: #555;
    line-height: 1.8;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.tool-page li {
    margin-bottom: 0.5rem;
}

.tool-page strong {
    color: #2c3e50;
    font-weight: 600;
}

.tool-page a {
    color: #3498db;
    text-decoration: none;
}

.tool-page a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .header-left {
        flex-direction: column;
        gap: 1rem;
    }

    .site-logo {
        height: 32px;
    }

    nav ul {
        justify-content: center;
    }

    .dropdown-menu {
        left: 50%;
        transform: translateX(-50%);
        min-width: 180px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .tools-list {
        grid-template-columns: 1fr;
    }

    .tool-page {
        padding: 1rem;
    }

    .button-group {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .character-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .quick-copy-grid {
        grid-template-columns: 1fr;
    }

    .generator-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .generator-input-group {
        min-width: 100%;
    }

    .generated-styles {
        grid-template-columns: 1fr;
    }

    .copy-notification {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        text-align: center;
    }
}

/* Words to Pages Styles */
.words-to-pages-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.calculator-section {
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
}

.calculator-section h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
}

.input-group input[type="number"] {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1.1rem;
    transition: border-color 0.3s ease;
}

.input-group input[type="number"]:focus {
    outline: none;
    border-color: #3498db;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.setting-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
}

.setting-group select {
    width: 100%;
    padding: 0.6rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.setting-group select:focus {
    outline: none;
    border-color: #3498db;
}

.results-section {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
}

.results-section h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.result-display {
    display: flex;
    justify-content: center;
    align-items: center;
}

.result-card-single {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 3rem 4rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    min-width: 300px;
}

.result-card-single .result-label {
    color: rgba(255, 255, 255, 0.9);
}

.result-card-single .result-value {
    color: white;
}

.result-card-single .result-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.result-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-value {
    font-size: 2.5rem;
    color: #2c3e50;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.result-card.highlighted .result-value {
    color: #3498db;
}

.result-subtitle {
    font-size: 0.95rem;
    color: #666;
}

.reference-section {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
}

.reference-section h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.reference-table {
    overflow-x: auto;
}

.reference-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.reference-table th {
    background-color: #3498db;
    color: white;
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
}

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

.reference-table tr:hover {
    background-color: #f9f9f9;
}

.reference-table a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.reference-table a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .calculator-section,
    .results-section,
    .reference-section {
        padding: 1.5rem;
    }

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

    .result-card-single {
        padding: 2rem 3rem;
        min-width: 250px;
    }

    .result-value {
        font-size: 2rem;
    }
}

/* Word Counter Side-by-Side Layout */
.word-counter-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
    max-height: calc(100vh - 280px);
}

.word-counter-input-panel,
.word-counter-results-panel {
    background-color: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 280px);
}

.word-counter-input-panel {
    min-height: auto;
}

.word-counter-results-panel {
    overflow-y: auto;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom: 2px solid #5568d3;
}

.panel-header label,
.panel-header h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: white;
}

.btn-clear {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-clear:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.word-counter-input-panel textarea {
    flex: 1;
    border: none;
    border-radius: 0;
    padding: 1rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.95rem;
    line-height: 1.5;
    resize: none;
    min-height: auto;
}

.word-counter-input-panel textarea:focus {
    border: none;
    outline: none;
}

.input-footer {
    padding: 0.6rem 1rem;
    background-color: #f9f9f9;
    border-top: 1px solid #e0e0e0;
}

.footer-info {
    font-size: 0.8rem;
    color: #666;
    font-style: italic;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: #27ae60;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.stats-section {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.primary-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.stat-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 8px;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.stat-card.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border-color: #667eea;
}

.stat-card.primary:hover {
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.stat-icon {
    font-size: 1.8rem;
    line-height: 1;
}

.stat-icon-small {
    font-size: 1.3rem;
    line-height: 1;
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-card .stat-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: #2c3e50;
    line-height: 1;
}

.stat-card.primary .stat-value {
    color: white;
}

.stat-card .stat-label {
    font-size: 0.75rem;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.stat-card.primary .stat-label {
    color: rgba(255, 255, 255, 0.9);
}

.secondary-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.detailed-stats {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
}

.detailed-stats h4 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 0.85rem;
    font-weight: 700;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.3rem;
}

.reading-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.reading-stat {
    background-color: white;
    border-radius: 6px;
    padding: 0.6rem;
    text-align: center;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.reading-stat:hover {
    border-color: #667eea;
    transform: translateY(-2px);
}

.reading-label {
    display: block;
    font-size: 0.7rem;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.reading-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    color: #667eea;
    margin-bottom: 0.15rem;
}

.reading-desc {
    display: block;
    font-size: 0.65rem;
    color: #999;
    font-style: italic;
}

.metrics-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.metric-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background-color: white;
    border-radius: 6px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.metric-item:hover {
    border-color: #667eea;
    transform: translateX(3px);
}

.metric-label {
    font-size: 0.75rem;
    color: #666;
    font-weight: 600;
}

.metric-value {
    font-size: 0.8rem;
    font-weight: 700;
    color: #2c3e50;
    background-color: #f0f0f0;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

/* Responsive Design for Word Counter */
@media (max-width: 1024px) {
    .word-counter-container {
        grid-template-columns: 1fr;
    }

    .word-counter-results-panel {
        order: 2;
    }

    .word-counter-input-panel {
        order: 1;
    }

    .primary-stats {
        grid-template-columns: 1fr 1fr;
    }

    .secondary-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .primary-stats,
    .secondary-stats,
    .reading-stats-grid {
        grid-template-columns: 1fr;
    }

    .panel-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }

    .btn-clear {
        width: 100%;
    }

    .stat-card {
        padding: 1.25rem;
    }

    .stat-icon {
        font-size: 2rem;
    }

    .stat-card .stat-value {
        font-size: 1.75rem;
    }
}
