/*
Theme Name: Zenipp Text Tools Theme
Theme URI: https://example.com/text-tools-theme
Author: Zenipp
Author URI: https://example.com
Description: A beautiful Material Design 3 theme showcasing comprehensive text manipulation tools
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: text-tools-theme
Tags: material-design, tools, utilities, modern, clean
*/

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

:root {
    --md-primary: #6750A4;
    --md-primary-light: #7F67BE;
    --md-primary-container: #E8DEF8;
    --md-on-primary: #FFFFFF;
    --md-secondary: #625B71;
    --md-secondary-container: #E8DEF8;
    --md-surface: #FFFFFF;
    --md-surface-variant: #F3EDF7;
    --md-background: #FEF7FF;
    --md-on-background: #1C1B1F;
    --md-on-surface: #1C1B1F;
    --md-outline: #79747E;
    --md-shadow: rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--md-background);
    color: var(--md-on-background);
    line-height: 1.6;
}

.site-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-header {
    background: linear-gradient(135deg, var(--md-primary) 0%, var(--md-primary-light) 100%);
    color: var(--md-on-primary);
    padding: 24px 0;
    box-shadow: 0 2px 8px var(--md-shadow);
}

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

.site-title {
    font-size: 32px;
    font-weight: 500;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-title a {
    color: var(--md-on-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-description {
    font-size: 16px;
    opacity: 0.9;
    margin-top: 8px;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 24px;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: var(--md-on-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: background 0.2s;
}

.main-navigation a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.site-main {
    flex: 1;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    padding: 32px;
}

.text-tools-page {
    background: var(--md-surface);
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 1px 3px var(--md-shadow);
    overflow: hidden;
}

.tools-container {
    display: flex;
    min-height: 600px;
}

.tools-sidebar {
    width: 280px;
    background: var(--md-surface);
    border-right: 1px solid #E0E0E0;
    overflow-y: auto;
    padding: 16px 0;
}

.search-container {
    padding: 16px;
    margin-bottom: 16px;
}

.search-container input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--md-outline);
    border-radius: 24px;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
}

.search-container input:focus {
    outline: none;
    border-color: var(--md-primary);
    box-shadow: 0 0 0 2px rgba(103, 80, 164, 0.1);
}

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

.nav-section h3 {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--md-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-item {
    width: 100%;
    text-align: left;
    padding: 12px 24px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    color: #49454F;
    transition: all 0.2s;
    display: block;
}

.nav-item:hover {
    background: var(--md-surface-variant);
}

.nav-item.active {
    background: var(--md-primary-container);
    color: var(--md-primary);
    font-weight: 500;
    border-right: 3px solid var(--md-primary);
}

.tools-content {
    flex: 1;
    padding: 32px;
    overflow-y: auto;
}

.welcome-screen {
    text-align: center;
    padding: 80px 20px;
    color: var(--md-primary);
}

.welcome-icon {
    font-size: 120px !important;
    opacity: 0.3;
    display: block;
    margin-bottom: 24px;
}

.welcome-screen h2 {
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 16px;
}

.welcome-screen p {
    font-size: 18px;
    color: var(--md-outline);
}

.tool-card {
    background: var(--md-surface);
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tool-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.tool-header .material-symbols-outlined {
    font-size: 32px;
    color: var(--md-primary);
}

.tool-header h2 {
    font-size: 24px;
    font-weight: 500;
    color: var(--md-on-surface);
}

.tool-description {
    color: var(--md-outline);
    margin-bottom: 24px;
    font-size: 14px;
}

.input-group {
    margin-bottom: 24px;
}

.input-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #49454F;
    font-size: 14px;
}

.input-field {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--md-outline);
    border-radius: 8px;
    font-family: 'Roboto', monospace;
    font-size: 14px;
    resize: vertical;
    min-height: 150px;
    transition: all 0.2s;
}

.input-field:focus {
    outline: none;
    border-color: var(--md-primary);
    box-shadow: 0 0 0 2px rgba(103, 80, 164, 0.1);
}

.input-field.small {
    min-height: 50px;
}

.button-group {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Roboto', sans-serif;
}

.btn-primary {
    background: var(--md-primary);
    color: var(--md-on-primary);
}

.btn-primary:hover {
    background: var(--md-primary-light);
    box-shadow: 0 2px 8px rgba(103, 80, 164, 0.3);
}

.btn-secondary {
    background: var(--md-primary-container);
    color: var(--md-primary);
}

.btn-secondary:hover {
    background: #D0BCFF;
}

.output-section {
    margin-top: 24px;
}

.output-field {
    width: 100%;
    padding: 16px;
    background: var(--md-surface-variant);
    border: 1px solid var(--md-primary-container);
    border-radius: 8px;
    font-family: 'Roboto', monospace;
    font-size: 14px;
    min-height: 150px;
    resize: vertical;
}

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

.stat-card {
    background: var(--md-surface-variant);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.stat-value {
    font-size: 32px;
    font-weight: 500;
    color: var(--md-primary);
    display: block;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: #49454F;
}

.site-footer {
    background: var(--md-surface);
    border-top: 1px solid #E0E0E0;
    padding: 32px 0;
    margin-top: 48px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    text-align: center;
    color: var(--md-outline);
}

.copy-notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #1C1B1F;
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    display: none;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.copy-notification.show {
    display: flex;
}

.option-group {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.option-item input[type="checkbox"],
.option-item input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.option-item input[type="number"],
.option-item input[type="text"] {
    padding: 8px 12px;
    border: 1px solid var(--md-outline);
    border-radius: 8px;
    font-size: 14px;
    width: 100px;
}

.option-item label {
    font-size: 14px;
    color: #49454F;
    cursor: pointer;
}

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

.diff-output {
    font-family: 'Courier New', monospace;
    white-space: pre-wrap;
    line-height: 1.6;
}

.diff-line {
    padding: 2px 8px;
}

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

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

.diff-unchanged {
    color: #495057;
}

.hidden {
    display: none;
}

@media (max-width: 1024px) {
    .tools-container {
        flex-direction: column;
    }
    
    .tools-sidebar {
        width: 100%;
        max-height: 300px;
        border-right: none;
        border-bottom: 1px solid #E0E0E0;
    }
    
    .tools-content {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 16px 0;
    }
    
    .header-content {
        flex-direction: column;
        gap: 16px;
        padding: 0 20px;
    }
    
    .site-title {
        font-size: 24px;
        justify-content: center;
    }
    
    .site-description {
        text-align: center;
        font-size: 14px;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .main-navigation a {
        display: block;
        width: 100%;
    }
    
    .site-main {
        padding: 20px;
    }
    
    .tools-sidebar {
        max-height: 250px;
    }
    
    .tools-content {
        padding: 16px;
    }
    
    .tool-card {
        padding: 20px;
    }
    
    .tool-header h2 {
        font-size: 20px;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 12px;
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    .diff-container {
        grid-template-columns: 1fr;
    }
    
    .copy-notification {
        bottom: 16px;
        right: 16px;
        left: 16px;
        padding: 12px 16px;
    }
}

@media (max-width: 480px) {
    .site-header {
        padding: 12px 0;
    }
    
    .header-content {
        padding: 0 16px;
    }
    
    .site-title {
        font-size: 20px;
    }
    
    .site-title .material-symbols-outlined {
        font-size: 28px;
    }
    
    .site-main {
        padding: 12px;
    }
    
    .tools-sidebar {
        max-height: 200px;
    }
    
    .search-container input {
        font-size: 14px;
    }
    
    .nav-item {
        padding: 14px 16px;
        font-size: 15px;
    }
    
    .tools-content {
        padding: 12px;
    }
    
    .tool-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .tool-header h2 {
        font-size: 18px;
    }
    
    .input-field,
    .output-field {
        font-size: 16px;
        padding: 12px;
    }
    
    .option-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .option-item {
        width: 100%;
    }
    
    .option-item input[type="number"],
    .option-item input[type="text"] {
        width: 150px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .btn {
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .welcome-screen {
        padding: 40px 16px;
    }
    
    .welcome-icon {
        font-size: 80px !important;
    }
    
    .welcome-screen h2 {
        font-size: 24px;
    }
    
    .welcome-screen p {
        font-size: 16px;
    }
    
    .site-footer {
        padding: 24px 0;
    }
    
    .footer-content {
        padding: 0 16px;
        font-size: 14px;
    }
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--md-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--md-primary-light);
}
