/* ===== TOOL PAGE STYLES ===== */

/* Main Content Layout */
.main-content {
    min-height: 100vh;
}

/* ===== HERO SECTION ===== */
.tool-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.tool-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 3rem;
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
}

.breadcrumb-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: white;
}

.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumb-current {
    color: white;
    font-weight: 500;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-icon {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-icon i {
    font-size: 3.5rem;
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.hero-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.badge {
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge-free {
    background: linear-gradient(135deg, #10b981, #059669);
}

.badge-secure {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.badge-instant {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

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

/* ===== WORKSPACE SECTION ===== */
.tool-workspace {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
}

/* Input Panel - Full Width */
.input-panel {
    margin-bottom: 3rem;
}

/* Results Panel - Full Width, Initially Hidden */
.results-panel {
    width: 100%;
    animation: slideInUp 0.5s ease;
}

.panel-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.panel-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.panel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.panel-header {
    margin-bottom: 2rem;
}

.panel-header h2 {
    font-size: 1.6rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.panel-header h2 i {
    color: #667eea;
    font-size: 1.4rem;
}

.panel-header p {
    color: var(--text-light);
    font-size: 1rem;
    margin: 0;
}

/* File Upload Zone */
.file-upload-zone {
    border: 2px dashed #e2e8f0;
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.file-upload-zone:hover {
    border-color: #667eea;
    background: linear-gradient(135deg, #f0f4ff, #e6f0ff);
    transform: translateY(-2px);
}

.file-upload-zone.dragover {
    border-color: #667eea;
    background: linear-gradient(135deg, #e6f0ff, #dbeafe);
    transform: scale(1.02);
}

.upload-content {
    position: relative;
    z-index: 2;
}

.upload-icon {
    margin-bottom: 1rem;
}

.upload-icon i {
    font-size: 3rem;
    color: #667eea;
}

.upload-content h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.upload-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Divider */
.divider {
    text-align: center;
    margin: 2.5rem 0;
    position: relative;
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.9rem;
}

.divider span {
    background: white;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
    z-index: 1;
}

/* Form Row - Responsive Grid */
.form-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

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

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

/* Button Group */
.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.button-group .btn {
    flex: 1;
}

/* Buttons */
.btn {
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
    box-shadow: 0 4px 15px rgba(107, 114, 128, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #4b5563, #374151);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(107, 114, 128, 0.4);
}

.btn-calculate {
    width: 100%;
    padding: 18px 36px;
    font-size: 1.1rem;
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.1rem;
}

/* Results Panel */
.results-content {
    min-height: 300px;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-light);
}

.empty-icon i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
    color: #667eea;
}

.empty-state h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.empty-state p {
    font-size: 1rem;
    margin: 0;
}
/* ===== CONTENT SECTIONS ===== */

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background: white;
}

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

.feature-item {
    text-align: center;
    padding: 2rem;
    border-radius: 16px;
    background: white;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-item h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-item p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* How to Use Section */
.how-to-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.step-item {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.step-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.step-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* Examples Section */
.examples-section {
    padding: 80px 0;
    background: white;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.example-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.example-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12);
}

.example-card h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-align: center;
}

.conversion-demo {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
}

.input-value {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    font-weight: 600;
    text-align: center;
    flex: 1;
    word-break: break-all;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.conversion-arrow {
    color: #667eea;
    font-size: 1.2rem;
}

.output-values {
    flex: 1;
    text-align: center;
}

.output-item {
    background: #f8fafc;
    white-space: normal; 
    padding: 0.5rem;
    margin: 0.25rem 0;
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
    word-break: break-all;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Use Cases Section */
.use-cases-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.use-case-card {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.use-case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12);
}

.use-case-icon {
    margin-bottom: 1.5rem;
}

.use-case-icon i {
    font-size: 2.5rem;
    color: #667eea;
}

.use-case-card h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.use-case-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.use-case-card li {
    color: var(--text-light);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.5;
}

.use-case-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
    font-size: 1rem;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: white;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
    overflow: hidden;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #f8fafc;
}

.faq-question h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin: 0;
    font-weight: 600;
    flex: 1;
}

.faq-question i {
    color: #667eea;
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f8fafc;
}

.faq-answer p {
    padding: 1.5rem;
    margin: 0;
    color: var(--text-light);
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

/* Related Tools Section */
.related-tools-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.related-tools-section .section-header h2 {
    color: white;
}

.related-tools-section .section-header p {
    color: rgba(255, 255, 255, 0.9);
}

.related-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.tool-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
}

.tool-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.tool-icon i {
    font-size: 1.8rem;
    color: white;
}

.tool-card h3 {
    font-size: 1.3rem;
    color: white;
    margin-bottom: 1rem;
    font-weight: 600;
}

.tool-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.tool-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    transition: all 0.3s ease;
}

.tool-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.section-footer {
    text-align: center;
}

/* ===== RESPONSIVE DESIGN ===== */

/* URL Encoding specific styles for long encoded strings */
.url-example .output-item {
    font-family: 'Courier New', Consolas, monospace;
    font-size: 0.8rem;
    line-height: 1.4;
    max-width: 100%;
    overflow: hidden;
}

.url-example .input-value {
    font-family: 'Courier New', Consolas, monospace;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Mobile responsive improvements for URL examples */
@media (max-width: 640px) {
    .url-example .output-item {
        font-size: 0.75rem;
        padding: 0.75rem 0.5rem;
    }
    
    .url-example .input-value {
        font-size: 0.8rem;
        padding: 0.75rem;
    }
    
    .conversion-demo {
        gap: 0.75rem;
    }
}

@media (max-width: 968px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-icon {
        width: 100px;
        height: 100px;
    }

    .hero-icon i {
        font-size: 3rem;
    }

    .conversion-demo {
        flex-direction: column;
        gap: 1rem;
    }

    .conversion-arrow i {
        transform: rotate(90deg);
    }

    .steps-container {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 640px) {
    .section-header h2 {
        font-size: 2rem;
    }

    .features-grid,
    .examples-grid,
    .use-cases-grid {
        grid-template-columns: 1fr;
    }

    .step-item {
        flex-direction: column;
        text-align: center;
    }

    .hero-badges {
        flex-direction: column;
        align-items: center;
    }

    .badge {
        width: 200px;
        justify-content: center;
    }

    .button-group {
        flex-direction: column;
    }

    .button-group .btn {
        width: 100%;
    }
}
/* ===== RESULTS DISPLAY STYLES ===== */

/* File Info Display */
.file-info {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.file-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.file-header i {
    font-size: 2rem;
    color: #667eea;
}

.file-header h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin: 0 0 0.25rem 0;
    font-weight: 600;
}

.file-header p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.9rem;
}

/* Size Conversions Grid */
.size-conversions {
    margin-bottom: 2rem;
}

.size-conversions h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

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

.conversion-item {
    padding: 1rem;
    background: white;
    border-radius: 10px;
    border: 2px solid #f1f5f9;
    text-align: center;
    transition: all 0.3s ease;
}

.conversion-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.conversion-item.highlight {
    border-color: #667eea;
    background: linear-gradient(135deg, #f0f4ff, #e6f0ff);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
}

.conversion-item .unit {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.conversion-item .value {
    display: block;
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 700;
}

.conversion-item.highlight .value {
    color: #667eea;
}

/* Additional Info */
.additional-info,
.calculation-info {
    margin-bottom: 1.5rem;
}

.additional-info h4,
.calculation-info h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.input-display {
    padding: 1rem;
    background: linear-gradient(135deg, #f0f4ff, #e6f0ff);
    border-radius: 10px;
    margin-bottom: 1.5rem;
    text-align: center;
}

.input-display h3 {
    color: #667eea;
    font-size: 1.2rem;
    margin: 0;
    font-weight: 700;
}

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

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
}

.info-item .label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.info-item .value {
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 600;
}

.conversion-formula {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 10px;
    text-align: center;
}

.conversion-formula h4 {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.conversion-formula p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
    font-family: 'Courier New', monospace;
}

.error-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #dc2626;
}

.error-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.error-state h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.error-state p {
    font-size: 1rem;
    margin: 0;
}

/* Animation for results panel */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments for results */
@media (max-width: 640px) {
    .conversion-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .info-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}
/* ===== JSON FORMATTER SPECIFIC STYLES ===== */

/* JSON Input Area */
.json-input-area {
    margin-bottom: 2rem;
}

.json-input-area textarea {
    width: 100%;
    min-height: 300px;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-family: 'Courier New', Consolas, monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    resize: vertical;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.json-input-area textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: white;
}

/* Tool Options */
.tool-options {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.options-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    align-items: center;
}

.option-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.option-group label {
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
    cursor: pointer;
}

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

.option-group select {
    padding: 6px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.9rem;
    background: white;
}

/* JSON Output Styles */
.json-output {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.json-stats {
    background: linear-gradient(135deg, #f0f4ff, #e6f0ff);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.json-stats h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

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

.stat-item {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 700;
}

/* JSON Result Display */
.json-result h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.json-display {
    background: #1e293b;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #334155;
}

.json-code {
    display: block;
    padding: 1.5rem;
    margin: 0;
    color: #e2e8f0;
    font-family: 'Courier New', Consolas, monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    overflow-x: auto;
    white-space: pre;
}

/* Validation Result Styles */
.validation-result {
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

.validation-result.success {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border: 1px solid #10b981;
    color: #065f46;
}

.validation-result.error {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    border: 1px solid #ef4444;
    color: #991b1b;
}

.validation-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.validation-header i {
    font-size: 2rem;
}

.validation-header h3 {
    font-size: 1.3rem;
    margin: 0;
    font-weight: 600;
}

.validation-message p {
    font-size: 1rem;
    margin: 0;
    line-height: 1.6;
}

/* Copy Button Styles */
.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 8px;
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: white !important;
}

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

.panel-header h2 {
    margin: 0;
}

/* Responsive Design for JSON Tools */
@media (max-width: 768px) {
    .options-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .json-output {
        gap: 1.5rem;
    }
    
    .panel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .json-code {
        font-size: 0.8rem;
        padding: 1rem;
    }
}
/* ===== BASE64 ENCODER SPECIFIC STYLES ===== */

/* Text Input Area */
.text-input-area {
    margin-bottom: 2rem;
}

.text-input-area textarea {
    width: 100%;
    min-height: 200px;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-family: 'Courier New', Consolas, monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    resize: vertical;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.text-input-area textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: white;
}

/* Encoding Result Styles */
.encoding-result {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.encoded-output h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.output-display {
    background: #1e293b;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #334155;
    margin-bottom: 1rem;
}

.encoded-text {
    width: 100%;
    min-height: 200px;
    padding: 1.5rem;
    border: none;
    background: transparent;
    color: #e2e8f0;
    font-family: 'Courier New', Consolas, monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    resize: vertical;
    outline: none;
}

.output-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
}

/* File Info Display for Base64 */
.file-info {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.file-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.file-header i {
    font-size: 2rem;
    color: #667eea;
}

.file-header h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin: 0 0 0.25rem 0;
    font-weight: 600;
}

.file-header p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.9rem;
}

/* Encoding Stats */
.encoding-stats {
    background: linear-gradient(135deg, #f0f4ff, #e6f0ff);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.encoding-stats h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Responsive Design for Encoding Tools */
@media (max-width: 768px) {
    .encoding-result {
        gap: 1.5rem;
    }
    
    .output-actions {
        flex-direction: column;
    }
    
    .output-actions .btn {
        width: 100%;
    }
    
    .encoded-text {
        font-size: 0.8rem;
        padding: 1rem;
        min-height: 150px;
    }
}

@media (max-width: 480px) {
    .text-input-area textarea {
        min-height: 150px;
        font-size: 0.8rem;
    }
    
    .file-header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}
/* ===== CASE CONVERTER SPECIFIC STYLES ===== */

/* Case Options */
.case-options {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.case-options h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.case-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
}

.btn-case {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-case:hover {
    border-color: #667eea;
    background: #f0f4ff;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.btn-case i {
    font-size: 0.8rem;
}

/* Conversion Results */
.conversion-results {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.text-stats {
    background: linear-gradient(135deg, #f0f4ff, #e6f0ff);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.text-stats h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

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

.conversion-item {
    background: white;
    border-radius: 12px;
    border: 2px solid #f1f5f9;
    overflow: hidden;
    transition: all 0.3s ease;
}

.conversion-item:hover {
    border-color: #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.conversion-item.highlighted {
    border-color: #667eea;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    transform: translateY(-3px);
}

.conversion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.conversion-header h4 {
    font-size: 1rem;
    color: var(--text-dark);
    margin: 0;
    font-weight: 600;
}

.btn-copy {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    background: white;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-copy:hover {
    border-color: #667eea;
    background: #667eea;
    color: white;
}

.conversion-output {
    padding: 1rem 1.5rem;
}

.conversion-output .result-text {
    width: 100%;
    min-height: 80px;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-family: 'Courier New', Consolas, monospace;
    font-size: 0.9rem;
    line-height: 1.4;
    resize: vertical;
    background: #f8fafc;
    color: var(--text-dark);
}

.conversion-output .result-text:focus {
    outline: none;
    border-color: #667eea;
    background: white;
}

/* Success state for copy buttons */
.btn-success {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: white !important;
    border-color: #10b981 !important;
}

/* Responsive Design for Case Converter */
@media (max-width: 768px) {
    .case-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .btn-case {
        padding: 10px 12px;
        font-size: 0.8rem;
    }
    
    .conversions-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .conversion-header {
        padding: 0.75rem 1rem;
    }
    
    .conversion-output {
        padding: 0.75rem 1rem;
    }
    
    .conversion-output .result-text {
        min-height: 60px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .case-buttons {
        grid-template-columns: 1fr;
    }
    
    .btn-case {
        padding: 12px;
        font-size: 0.85rem;
    }
    
    .conversion-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}
/* Tool Description Section */
.tool-description {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.tool-description .description-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.tool-description h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.tool-description h2 i {
    color: var(--primary-color);
    font-size: 2rem;
}

.tool-description p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 3rem;
}

.tool-description .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1rem;
    margin-top: 3rem;
}

.tool-description .feature-card {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.tool-description .feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.tool-description .feature-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: block;
}

.tool-description .feature-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.tool-description .feature-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Responsive Design for Tool Description */
@media (max-width: 768px) {
    .tool-description {
        padding: 60px 0;
    }
    
    .tool-description h2 {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .tool-description .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tool-description .feature-card {
        padding: 1.5rem;
    }
}
/* Character Counter Specific Styles */
.counter-stats {
    padding: 0;
}

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

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Encoding Map Styles */
.encoding-map {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.encoding-map h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.map-container {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: white;
}

.map-header {
    display: grid;
    grid-template-columns: 1fr 1fr 80px 100px;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: #f1f5f9;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.map-row {
    display: grid;
    grid-template-columns: 1fr 1fr 80px 100px;
    gap: 1rem;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

.map-row:last-child {
    border-bottom: none;
}

.map-row.encoded {
    background: #fef3c7;
}

.map-row.unchanged {
    background: #f0fdf4;
}

.original-char, .encoded-char {
    font-weight: 500;
}

.hex-value {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.status {
    font-size: 0.8rem;
    font-weight: 500;
}

.encoded .status {
    color: #d97706;
}

.unchanged .status {
    color: #16a34a;
}

/* Validation Results Styles */
.validation-result {
    padding: 0;
}

.validation-status {
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.validation-status.success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.validation-status.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.validation-status i {
    font-size: 2rem;
}

.validation-status h3 {
    margin: 0;
    font-size: 1.5rem;
}

.validation-stats {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.validation-stats h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.validation-errors, .validation-warnings {
    margin-top: 2rem;
}

.validation-errors h4, .validation-warnings h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.error-list, .warning-list {
    space-y: 1rem;
}

.error-item, .warning-item {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #ef4444;
    margin-bottom: 1rem;
}

.warning-item {
    border-left-color: #f59e0b;
}

.error-type, .warning-type {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.error-message, .warning-message {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.error-location {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
}

/* Responsive Design for Counter */
@media (max-width: 768px) {
    .counter-stats .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .map-header, .map-row {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
    
    .map-header span:nth-child(3),
    .map-header span:nth-child(4),
    .map-row span:nth-child(3),
    .map-row span:nth-child(4) {
        display: none;
    }
}

@media (max-width: 480px) {
    .counter-stats .stats-grid {
        grid-template-columns: 1fr;
    }
}
/* Text Cleaner Specific Styles */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.cleaning-operations {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.cleaning-operations h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.operations-list {
    space-y: 1rem;
}

.operation-item {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    margin-bottom: 1rem;
}

.operation-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.operation-stats {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.chars-removed {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 500;
}

.operation-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Responsive Design for Text Cleaner */
@media (max-width: 768px) {
    .options-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .operation-stats {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .options-grid {
        grid-template-columns: 1fr;
    }
}