*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #2d3748;
}

.tool-page {
    min-height: 100vh;
    padding: 20px;
}

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

.header {
    text-align: center;
    margin: 0 0 30px;
    color: white;
}

.header h1 {
    font-size: 2.5rem;
    margin: 0 0 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.header p {
    margin: 0;
    opacity: 0.92;
}

.main-content,
.content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    max-width: 1200px;
    margin: 0 auto;
}

.tool-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.tool-section + .tool-section {
    margin-top: 20px;
}

.section-title {
    color: #2d3748;
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #edf2f7;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.controls-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.control-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    color: #2d3748;
}

.form-control,
.control-group input[type="text"],
.control-group input[type="number"],
.control-group input[type="email"],
.control-group input[type="password"],
.control-group input[type="url"],
.control-group select,
.control-group textarea,
input[type="text"].form-control,
select.form-control,
textarea.form-control {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    background: #fff;
    color: #2d3748;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus,
.control-group input:focus,
.control-group select:focus,
.control-group textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 800;
    color: white;
    background: #667eea;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    text-decoration: none;
    user-select: none;
}

.btn:hover {
    background: #5a67d8;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(102, 126, 234, 0.35);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled,
.btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-primary {
    background: #667eea;
}

.btn-primary:hover {
    background: #5a67d8;
}

.btn-secondary {
    background: #2d3748;
}

.btn-secondary:hover {
    background: #1a202c;
}

.btn-success {
    background: #48bb78;
}

.btn-success:hover {
    background: #38a169;
}

.btn-danger {
    background: #f56565;
}

.btn-danger:hover {
    background: #e53e3e;
}

.btn-large {
    padding: 14px 22px;
    font-size: 1.05rem;
}

.btn-small {
    padding: 8px 10px;
    border-radius: 10px;
    font-weight: 900;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    color: #2d3748;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input[type="checkbox"],
.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #667eea;
}

.color-input {
    width: 60px;
    height: 42px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
}

.result-area {
    margin-top: 15px;
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px;
}

.result-title {
    font-weight: 900;
    margin-bottom: 10px;
    color: #2d3748;
}

.result-content-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.95rem;
    color: #2d3748;
    word-break: break-word;
}

.copy-btn {
    margin-top: 10px;
    padding: 10px 14px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 800;
    background: #2d3748;
    color: white;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.copy-btn:hover {
    background: #1a202c;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.floating-back-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    z-index: 1000;
}

.floating-back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.floating-back-btn svg {
    width: 24px;
    height: 24px;
}

.main-footer {
    margin-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
}

.main-footer p {
    margin: 6px 0;
}

.security-warning {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 18px;
    margin-bottom: 20px;
    color: white;
}

.security-warning h3 {
    margin: 0 0 10px;
}

.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.analyzer-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.editor-section textarea,
textarea#input-data {
    min-height: 240px;
    resize: vertical;
}

.viewer-section pre,
pre#output-display {
    min-height: 240px;
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
    background: #1a202c;
    color: #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    overflow: auto;
}

.error-msg {
    margin-top: 10px;
    color: #e53e3e;
    font-weight: 800;
}

@media (max-width: 768px) {
    .tool-page {
        padding: 15px;
    }

    .main-content,
    .content {
        padding: 20px;
    }

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

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

.hidden {
    display: none !important;
}

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

.index-header {
    text-align: center;
    margin-bottom: 35px;
    color: white;
}

.index-header h1 {
    font-size: 3rem;
    margin: 0 0 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.index-header p {
    margin: 0;
    opacity: 0.92;
}

.search-container {
    max-width: 900px;
    margin: 25px auto 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.search-box {
    position: relative;
}

#searchInput {
    width: 100%;
    padding: 16px 18px;
    border-radius: 14px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
    color: white;
    font-size: 1rem;
    outline: none;
    backdrop-filter: blur(10px);
}

#searchInput::placeholder {
    color: rgba(255, 255, 255, 0.75);
}

#searchInput:focus {
    border-color: rgba(255, 255, 255, 0.75);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12);
}

.search-suggestions {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    display: none;
    z-index: 2000;
}

.search-suggestions.show {
    display: block;
}

.suggestion-item {
    display: flex;
    gap: 12px;
    padding: 12px 14px;
    cursor: pointer;
    align-items: center;
}

.suggestion-item:hover {
    background: #f7fafc;
}

.suggestion-item .suggestion-icon {
    font-size: 1.25rem;
    width: 34px;
    text-align: center;
}

.suggestion-item .suggestion-text {
    flex: 1;
    color: #2d3748;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.suggestion-item .suggestion-category {
    font-size: 0.9rem;
    color: #718096;
    white-space: nowrap;
}

.search-stats {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    text-align: center;
    min-height: 20px;
}

.services {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.category-title {
    color: white;
    margin: 0 0 15px;
    font-size: 1.6rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.category-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.service-card {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 18px;
    padding: 20px;
    text-decoration: none;
    color: white;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 260px;
}

.service-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.4);
}

.service-card.highlighted {
    border-color: rgba(72, 187, 120, 0.55);
    box-shadow: 0 12px 40px rgba(72, 187, 120, 0.18), 0 10px 30px rgba(0, 0, 0, 0.18);
}

.service-icon {
    font-size: 2.4rem;
    line-height: 1;
}

.service-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: white;
}

.service-description {
    margin: 0;
    opacity: 0.92;
    line-height: 1.45;
}

.service-features {
    margin: 0;
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0.95;
}

.service-features li {
    font-size: 0.92rem;
}

.service-button {
    margin-top: auto;
    border: none;
    background: rgba(255, 255, 255, 0.92);
    color: #2d3748;
    border-radius: 12px;
    padding: 12px 14px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.service-card:hover .service-button {
    transform: translateY(-1px);
    background: white;
}

.search-highlight {
    background: rgba(255, 235, 59, 0.35);
    padding: 0 2px;
    border-radius: 4px;
}

.no-results {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 18px;
    padding: 22px;
    color: white;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.no-results h3 {
    margin: 0 0 10px;
}

.no-results p {
    margin: 0;
    opacity: 0.9;
}

@media (max-width: 600px) {
    .index-header h1 {
        font-size: 2.2rem;
    }

    .index-container {
        padding-top: 28px;
    }

    .service-card {
        padding: 16px;
        min-height: 240px;
    }
}

/* Audio Spectrum Analyzer Styles */
.asa-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.asa-header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.asa-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.asa-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.asa-security-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 25px;
    margin-top: 15px;
    backdrop-filter: blur(10px);
}

.asa-security-badge .icon {
    margin-right: 8px;
    font-size: 1.2rem;
}

.asa-main-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.asa-upload-section {
    background: #f8f9fa;
    border: 3px dashed #dee2e6;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.asa-upload-section:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.asa-upload-section.asa-dragover {
    border-color: #667eea;
    background: #e3f2fd;
    transform: scale(1.02);
}

.asa-upload-icon {
    font-size: 4rem;
    color: #667eea;
    margin-bottom: 20px;
}

.asa-upload-text {
    font-size: 1.2rem;
    color: #495057;
    margin-bottom: 15px;
}

.asa-upload-hint {
    color: #6c757d;
    font-size: 0.9rem;
}

.asa-file-input {
    display: none;
}

.asa-controls-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.asa-control-group {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    border: 2px solid #e9ecef;
}

.asa-control-group h3 {
    color: #495057;
    margin-bottom: 15px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
}

.asa-control-group h3 .icon {
    margin-right: 10px;
    font-size: 1.4rem;
}

.asa-form-group {
    margin-bottom: 15px;
}

.asa-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
}

.asa-form-group input, .asa-form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

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

.asa-range-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.asa-range-group input[type="range"] {
    flex: 1;
}

.asa-range-value {
    background: #667eea;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 600;
    min-width: 60px;
    text-align: center;
    font-size: 0.8rem;
}

.asa-visualizer-container {
    background: #000;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
}

.asa-visualizer-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.asa-tab-btn {
    padding: 8px 16px;
    background: #333;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.asa-tab-btn.asa-active {
    background: #667eea;
}

.asa-tab-btn:hover {
    background: #555;
}

.asa-tab-btn.asa-active:hover {
    background: #5a6fd8;
}

.asa-visualizer {
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.asa-visualizer canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.asa-analysis-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.asa-info-card {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 10px;
    padding: 20px;
}

.asa-info-card h4 {
    color: #1976d2;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.asa-info-list {
    list-style: none;
}

.asa-info-list li {
    padding: 5px 0;
    border-bottom: 1px solid #e3f2fd;
    font-size: 0.9rem;
}

.asa-info-list li:last-child {
    border-bottom: none;
}

.asa-peaks-list {
    max-height: 200px;
    overflow-y: auto;
}

.asa-button-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.asa-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

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

.asa-btn-secondary {
    background: #6c757d;
    color: white;
}

.asa-btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.asa-btn-success {
    background: #28a745;
    color: white;
}

.asa-btn-success:hover {
    background: #218838;
    transform: translateY(-2px);
}

.asa-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.asa-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 1000;
    max-width: 300px;
}

.asa-notification.asa-show {
    transform: translateX(0);
}

.asa-notification.asa-error {
    background: #dc3545;
}

.asa-notification.asa-warning {
    background: #ffc107;
    color: #212529;
}

/* Bingo Generator Styles */
.bi-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.bi-header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.bi-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.bi-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.bi-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.bi-control-group {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.bi-control-group h3 {
    color: #2d3748;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #edf2f7;
    font-size: 1.2rem;
}

.bi-form-group {
    margin-bottom: 20px;
}

.bi-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #4a5568;
    font-weight: 600;
}

.bi-form-group input,
.bi-form-group select,
.bi-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #edf2f7;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

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

.bi-form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.bi-checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    cursor: pointer;
}

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

.bi-templates {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.bi-template-btn {
    padding: 8px 16px;
    background: #edf2f7;
    border: none;
    border-radius: 8px;
    color: #4a5568;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bi-template-btn:hover {
    background: #667eea;
    color: white;
}

.bi-button-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 40px;
}

.bi-stats {
    background: white;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.bi-stats h3 {
    color: #2d3748;
    margin-bottom: 20px;
    text-align: center;
}

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

.bi-stat-item {
    text-align: center;
    padding: 15px;
    background: #f7fafc;
    border-radius: 12px;
}

.bi-stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: #667eea;
}

.bi-stat-label {
    font-size: 0.9rem;
    color: #718096;
    font-weight: 600;
}

.bi-bingo-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.bi-bingo-card {
    background: white;
    border: 2px solid #2d3748;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.bi-bingo-card:hover {
    transform: translateY(-5px);
}

.bi-card-header {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 15px;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.bi-bingo-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    background: #2d3748;
    border: 4px solid #2d3748;
    border-radius: 8px;
    overflow: hidden;
}

.bi-bingo-cell {
    background: white;
    padding: 15px 5px;
    text-align: center;
    font-weight: 800;
    font-size: 1.1rem;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2d3748;
}

.bi-bingo-cell.bi-header-cell {
    background: #667eea;
    color: white;
    font-size: 1.3rem;
    padding: 10px 5px;
}

.bi-bingo-cell.bi-free {
    background: #48bb78;
    color: white;
    font-size: 0.9rem;
}

@media (max-width: 992px) {
    .bi-controls {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .bi-header h1 {
        font-size: 2rem;
    }
    
    .bi-button-group {
        flex-direction: column;
    }
    
    .bi-button-group .btn {
        width: 100%;
    }
    
    .bi-bingo-cards {
        grid-template-columns: 1fr;
    }
}

.bi-hidden {
    display: none !important;
}

/* Base button styles for project consistency if not already defined */
.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
}

.asa-floating-back-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #667eea;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.asa-floating-back-btn:hover {
    background: #5a67d8;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .asa-container {
        padding: 15px;
    }

    .asa-header h1 {
        font-size: 2rem;
    }

    .asa-controls-section {
        grid-template-columns: 1fr;
    }

    .asa-analysis-info {
        grid-template-columns: 1fr;
    }
}

/* --- Advanced Calculator (ca-) --- */
.ca-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.ca-header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.ca-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.ca-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.ca-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.ca-calculator-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.ca-calculator-section {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.ca-section-title {
    color: #2d3748;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #edf2f7;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ca-display {
    background: #1a202c;
    color: #48bb78;
    padding: 25px;
    border-radius: 12px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 2.5rem;
    text-align: right;
    margin-bottom: 25px;
    min-height: 80px;
    word-break: break-all;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.ca-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.ca-btn {
    padding: 15px;
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f7fafc;
    color: #2d3748;
}

.ca-btn:hover {
    background: #edf2f7;
    transform: translateY(-2px);
}

.ca-btn.ca-operator {
    background: #ebf4ff;
    color: #4299e1;
}

.ca-btn.ca-operator:hover {
    background: #bee3f8;
}

.ca-btn.ca-equals {
    background: #48bb78;
    color: white;
    grid-row: span 2;
}

.ca-btn.ca-equals:hover {
    background: #38a169;
}

.ca-btn.ca-clear {
    background: #fff5f5;
    color: #f56565;
}

.ca-btn.ca-clear:hover {
    background: #fed7d7;
}

.ca-history {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

.ca-history-item {
    padding: 12px;
    border-bottom: 1px solid #edf2f7;
    transition: background 0.2s ease;
    border-radius: 8px;
    margin-bottom: 8px;
}

.ca-history-item:hover {
    background: #f7fafc;
}

.ca-history-item-meta {
    font-size: 0.8rem;
    color: #718096;
    display: flex;
    justify-content: space-between;
}

.ca-history-item-use {
    color: #667eea;
}

.ca-history-item-expr {
    font-weight: 600;
    margin-top: 4px;
}

/* Graficador */
.ca-graph-section {
    background: white;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.ca-graph-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.ca-graph-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    background: #f7fafc;
    border: 2px solid #edf2f7;
    border-radius: 10px;
    padding: 0 15px;
    min-width: 250px;
}

.ca-graph-input-label {
    font-weight: 700;
    color: #718096;
    margin-right: 10px;
}

.ca-graph-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 0;
    font-size: 1.1rem;
    outline: none;
}

.ca-graph-canvas-wrapper {
    position: relative;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.ca-graph-canvas {
    width: 100%;
    height: 400px;
    display: block;
    cursor: crosshair;
}

.ca-graph-coords {
    position: absolute;
    background: rgba(26, 32, 44, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    pointer-events: none;
    display: none;
    z-index: 10;
}

.ca-graph-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    color: #718096;
    font-size: 0.9rem;
}

/* Conversores */
.ca-converter-section {
    background: white;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.ca-converter-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 25px;
    align-items: center;
}

.ca-input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ca-input-group label {
    font-weight: 600;
    color: #4a5568;
    font-size: 0.9rem;
}

.ca-input-group input, .ca-input-group select {
    padding: 12px;
    border: 2px solid #edf2f7;
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.ca-input-group input:focus, .ca-input-group select:focus {
    border-color: #667eea;
}

.ca-input-group input[readonly] {
    background: #f7fafc;
    cursor: default;
}

.ca-convert-arrow {
    color: #a0aec0;
    font-size: 1.5rem;
}

.ca-floating-back-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 100;
}

.ca-floating-back-btn:hover {
    transform: scale(1.1) rotate(-10deg);
}

@media (max-width: 992px) {
    .ca-calculator-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .ca-content {
        padding: 20px;
    }
    
    .ca-converter-grid {
        grid-template-columns: 1fr;
    }
    
    .ca-convert-arrow {
        transform: rotate(90deg);
        text-align: center;
    }
    
    .ca-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .ca-buttons {
        gap: 8px;
    }
    
    .ca-btn {
        padding: 12px;
        font-size: 1rem;
    }
    
    .ca-display {
        font-size: 1.8rem;
        padding: 15px;
    }
}

/* ==========================================================================
   Collage Creator Tool (cc-)
   ========================================================================== */

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

.cc-header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

.cc-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.cc-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.cc-floating-back-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 15px;
    border-radius: 50%;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
}

.cc-floating-back-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.cc-floating-back-btn svg {
    width: 24px;
    height: 24px;
}

.cc-upload-area {
    background: white;
    border: 3px dashed #ddd;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.cc-upload-area:hover, .cc-upload-area.dragover {
    border-color: #667eea;
    background: #f8f9ff;
}

.cc-upload-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #667eea;
}

.cc-upload-text {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
}

.cc-upload-hint {
    color: #666;
    font-size: 0.9rem;
}

.cc-layout-selection {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    display: none;
}

.cc-layout-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

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

.cc-layout-option {
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    background: #f9f9f9;
}

.cc-layout-option:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.cc-layout-option.selected {
    border-color: #667eea;
    background: #667eea;
    color: white;
}

.cc-layout-preview {
    width: 100%;
    height: 120px;
    background: #e0e0e0;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.cc-layout-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.cc-layout-description {
    font-size: 0.9rem;
    opacity: 0.8;
}

.cc-customization-panel {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    display: none;
}

.cc-customization-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
}

.cc-control-group {
    margin-bottom: 20px;
}

.cc-control-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.cc-control-input {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

.cc-control-input:focus {
    outline: none;
    border-color: #667eea;
}

.cc-color-input {
    width: 60px;
    height: 40px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.cc-images-preview {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    display: none;
}

.cc-preview-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
}

.cc-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.cc-image-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
}

.cc-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cc-image-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-size: 12px;
}

.cc-collage-preview {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    display: none;
}

.cc-collage-canvas-container {
    text-align: center;
    margin-bottom: 20px;
}

.cc-collage-canvas {
    max-width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.cc-action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.cc-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cc-btn-primary {
    background: #667eea;
    color: white;
}

.cc-btn-primary:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
}

.cc-btn-secondary {
    background: #6c757d;
    color: white;
}

.cc-btn-secondary:hover {
    background: #5a6268;
}

.cc-btn-success {
    background: #28a745;
    color: white;
}

.cc-btn-success:hover {
    background: #218838;
}

.cc-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.cc-progress-bar {
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    margin: 20px 0;
    display: none;
}

.cc-progress-fill {
    height: 100%;
    background: #667eea;
    width: 0%;
    transition: width 0.3s ease;
}

@media (max-width: 768px) {
    .cc-container {
        padding: 15px;
    }

    .cc-header h1 {
        font-size: 2rem;
    }

    .cc-layout-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .cc-action-buttons {
        flex-direction: column;
    }

    .cc-btn {
        width: 100%;
    }
}
    
    .asa-button-group {
        flex-direction: column;
    }
    
    .asa-visualizer {
        height: 300px;
    }
}

/* Barcode Generator Styles */
.bg-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.bg-header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.bg-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.bg-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.bg-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.bg-generator-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.bg-input-panel, .bg-output-panel {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
    border: 1px solid #e9ecef;
}

.bg-input-panel h3, .bg-output-panel h3 {
    margin-bottom: 25px;
    color: #2d3748;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bg-form-group {
    margin-bottom: 20px;
}

.bg-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a5568;
}

.bg-form-group input[type="text"],
.bg-form-group input[type="number"],
.bg-form-group select {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

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

.bg-format-info {
    background: #ebf4ff;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #4299e1;
}

.bg-format-info h4 {
    color: #2b6cb0;
    margin-bottom: 5px;
}

.bg-format-info p {
    font-size: 0.9rem;
    color: #2c5282;
    margin-bottom: 5px;
}

.bg-size-controls, .bg-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.bg-checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.bg-checkbox-group label {
    font-size: 0.95rem;
    color: #4a5568;
    cursor: pointer;
}

.bg-error-message {
    background: #fff5f5;
    color: #c53030;
    padding: 10px;
    border-radius: 6px;
    margin-top: 10px;
    font-size: 0.9rem;
    display: none;
    border-left: 4px solid #f56565;
}

.bg-success-message {
    background: #f0fff4;
    color: #2f855a;
    padding: 10px;
    border-radius: 6px;
    margin-top: 10px;
    font-size: 0.9rem;
    display: none;
    border-left: 4px solid #48bb78;
}

.bg-format-examples {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.bg-format-examples h4 {
    margin-bottom: 10px;
    color: #4a5568;
}

.bg-format-examples ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bg-format-examples li {
    background: #edf2f7;
    padding: 4px 10px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.85rem;
    color: #4a5568;
}

.bg-barcode-preview {
    background: white;
    padding: 30px;
    border-radius: 10px;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    border: 2px dashed #e2e8f0;
    overflow: auto;
}

.bg-barcode-preview.bg-has-barcode {
    border-style: solid;
}

.bg-barcode-preview canvas {
    max-width: 100%;
    height: auto !important;
}

.bg-placeholder-text {
    text-align: center;
    color: #a0aec0;
}

.bg-upload-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.bg-download-section {
    display: none;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.bg-download-section.bg-show {
    display: block;
}

@media (max-width: 992px) {
    .bg-generator-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .bg-size-controls, .bg-options-grid {
        grid-template-columns: 1fr;
    }
    
    .bg-header h1 {
        font-size: 2rem;
    }
}

/* --- BMI Calculator (bc-) --- */
.bc-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

.bc-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.bc-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: white;
}

.bc-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.bc-content {
    padding: 40px;
}

.bc-calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.bc-input-section, .bc-results-section {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    border: 1px solid #e9ecef;
}

.bc-section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 20px;
    text-align: center;
}

.bc-form-group {
    margin-bottom: 20px;
}

.bc-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #4a5568;
}

.bc-form-group input, .bc-form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

.bc-unit-toggle {
    display: flex;
    background: #e2e8f0;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 15px;
}

.bc-unit-toggle button {
    flex: 1;
    padding: 8px 12px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.bc-unit-toggle button.active {
    background: white;
    color: #667eea;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.bc-calculate-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bc-calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.bc-bmi-result {
    text-align: center;
    margin-bottom: 25px;
}

.bc-bmi-value {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #2d3748;
}

.bc-bmi-category {
    font-size: 1.2rem;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 25px;
    display: inline-block;
    margin-bottom: 15px;
}

.bc-bmi-interpretation {
    font-size: 0.95rem;
    color: #718096;
    line-height: 1.5;
}

.bc-bmi-scale {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-top: 30px;
    border: 1px solid #e9ecef;
}

.bc-scale-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.bc-scale-item.current {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.bc-scale-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 15px;
}

.bc-scale-range {
    font-weight: 600;
    margin-right: 15px;
    min-width: 80px;
}

.bc-scale-label {
    flex: 1;
}

.bc-recommendations {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-top: 30px;
    border: 1px solid #e9ecef;
}

.bc-recommendation-item {
    background: #f7fafc;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid #667eea;
}

.bc-recommendation-title {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}

.bc-recommendation-text {
    color: #4a5568;
    line-height: 1.5;
}

.bc-chart-container {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-top: 30px;
    border: 1px solid #e9ecef;
    height: 400px;
    position: relative;
}

.bc-chart-canvas {
    max-width: 100%;
    max-height: 350px;
    width: 100% !important;
    height: 350px !important;
    position: relative;
}

@media (max-width: 768px) {
    .bc-calculator-grid {
        grid-template-columns: 1fr;
    }
    .bc-content {
        padding: 20px;
    }
    .bc-header h1 {
        font-size: 2rem;
    }
    .bc-bmi-value {
        font-size: 2.5rem;
    }
}

.tool-footer {
    margin-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
}

.tool-footer p {
    margin: 6px 0;
}

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

.ic-header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

.ic-header h1 {
    font-size: 2.5rem;
    margin: 0 0 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.ic-header p {
    margin: 0;
    opacity: 0.92;
}

.ic-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.ic-upload-section {
    cursor: pointer;
}

.ic-upload-area {
    background: white;
    border: 3px dashed #cbd5e0;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.ic-upload-area:hover {
    border-color: #667eea;
    background: #f8f9ff;
    transform: scale(1.01);
}

.ic-upload-section.ic-dragover .ic-upload-area {
    border-color: #667eea;
    background: #e6fffa;
    transform: scale(1.01);
}

.ic-upload-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.ic-upload-text {
    font-size: 1.2rem;
    font-weight: 900;
    color: #2d3748;
}

.ic-upload-subtext {
    margin-top: 6px;
    color: #718096;
}

.ic-image-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    margin: 20px 0 10px;
}

.ic-batch-info {
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
    margin: 10px 0 20px;
}

.ic-format-selector h3 {
    margin: 0 0 12px;
    text-align: center;
    color: white;
}

.ic-format-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.ic-format-btn {
    padding: 10px 14px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
    color: white;
    cursor: pointer;
    font-weight: 900;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.ic-format-btn:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.6);
}

.ic-format-btn.active {
    background: white;
    color: #2d3748;
    border-color: white;
}

.ic-quality-selector {
    margin: 18px auto 0;
    max-width: 520px;
    background: white;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.ic-quality-selector label {
    font-weight: 900;
    color: #2d3748;
}

.ic-quality-slider {
    width: 100%;
    margin-top: 10px;
}

.ic-action-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.ic-loading-panel {
    background: white;
    border-radius: 15px;
    padding: 22px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
}

.skeleton {
    border-radius: 10px;
    background: linear-gradient(90deg, #edf2f7 25%, #e2e8f0 37%, #edf2f7 63%);
    background-size: 400% 100%;
    animation: skeleton-loading 1.2s ease-in-out infinite;
}

.skeleton-text {
    height: 14px;
    margin: 10px 0;
}

.skeleton-rect {
    border-radius: 12px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: 0 0;
    }
}

.ic-result-panel {
    margin-top: 20px;
    background: rgba(72, 187, 120, 0.15);
    border: 1px solid rgba(72, 187, 120, 0.35);
    border-radius: 20px;
    padding: 25px;
}

.ic-result-content {
    text-align: center;
    color: white;
}

.ic-success-icon {
    width: 64px;
    height: 64px;
    color: #48bb78;
    margin-bottom: 10px;
}

.ic-result-actions {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ic-comparison-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 3000;
}

.ic-comparison-container {
    width: min(1000px, 100%);
    background: white;
    border-radius: 16px;
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    position: relative;
}

.ic-comparison-view {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #f7fafc;
}

.ic-comparison-label {
    padding: 10px 12px;
    font-weight: 900;
    color: #2d3748;
    background: #edf2f7;
    border-bottom: 1px solid #e2e8f0;
}

.ic-comparison-view img {
    width: 100%;
    height: 360px;
    object-fit: contain;
    display: block;
    background: white;
}

.ic-image-meta {
    padding: 10px 12px;
    color: #4a5568;
    font-weight: 700;
}

.close-modal {
    position: fixed;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.92);
    cursor: pointer;
    font-size: 28px;
    line-height: 44px;
    text-align: center;
    color: #2d3748;
    z-index: 3001;
}

.close-modal:hover {
    background: white;
}

@media (max-width: 768px) {
    .ic-content {
        padding: 20px;
    }
    .ic-comparison-container {
        grid-template-columns: 1fr;
    }
    .ic-comparison-view img {
        height: 260px;
    }
}

.upload-area {
    background: white;
    border: 3px dashed #cbd5e0;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.upload-area:hover {
    border-color: #667eea;
    background: #f8f9ff;
    transform: scale(1.01);
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.upload-text {
    font-size: 1.2rem;
    font-weight: 900;
    color: #2d3748;
}

.upload-subtext {
    margin-top: 6px;
    color: #718096;
}

.loading-panel {
    background: white;
    border-radius: 15px;
    padding: 22px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
}

.compression-panel {
    margin-top: 20px;
}

.images-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.compression-controls {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.compression-controls .control-group + .control-group {
    margin-top: 18px;
}

.compression-mode {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.mode-option {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.mode-option input[type="radio"] {
    margin-top: 4px;
}

.mode-option label {
    cursor: pointer;
    color: #2d3748;
}

.quality-slider {
    width: 100%;
    margin-top: 10px;
}

.quality-value {
    color: #667eea;
    font-weight: 900;
}

.action-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.comparison-section {
    margin-top: 20px;
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.savings-info {
    margin-top: 15px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #2d3748;
    font-weight: 800;
    text-align: center;
}

.placeholder-layout {
    display: grid;
    grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
    gap: 20px;
}

.config-panel {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.preview-panel {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.preview-panel canvas {
    width: 100%;
    max-width: 900px;
    height: auto;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
}

.color-inputs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.color-inputs small {
    display: block;
    color: #718096;
    margin-bottom: 6px;
    font-weight: 700;
}

.color-inputs input[type="color"] {
    width: 64px;
    height: 40px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

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

.br-header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

.br-header h1 {
    font-size: 2.5rem;
    margin: 0 0 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.br-header p {
    margin: 6px 0 0;
    opacity: 0.92;
}

.br-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.br-upload-area {
    background: white;
    border: 3px dashed #cbd5e0;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.br-upload-area:hover {
    border-color: #667eea;
    background: #f8f9ff;
    transform: scale(1.01);
}

.br-loading-panel {
    background: white;
    border-radius: 15px;
    padding: 22px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
    text-align: center;
}

.br-image-comparison {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.br-image-container {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.br-image-label {
    padding: 12px 14px;
    background: #edf2f7;
    font-weight: 900;
    color: #2d3748;
    border-bottom: 1px solid #e2e8f0;
}

.br-image-preview {
    width: 100%;
    height: 320px;
    object-fit: contain;
    display: block;
    background: white;
}

.br-image-info {
    padding: 10px 14px;
    color: #4a5568;
    font-weight: 700;
}

.br-processing-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 18px;
}

.br-control-group {
    background: white;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.br-control-label {
    display: block;
    font-weight: 900;
    color: #2d3748;
    margin-bottom: 10px;
}

.br-quality-slider {
    display: flex;
    align-items: center;
    gap: 12px;
}

.br-slider {
    width: 100%;
}

.br-slider-value {
    font-weight: 900;
    color: #667eea;
    min-width: 72px;
    text-align: right;
}

.br-format-selection {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.br-format-btn {
    padding: 10px 14px;
    border-radius: 999px;
    border: 2px solid #e2e8f0;
    background: #f8fafc;
    color: #2d3748;
    cursor: pointer;
    font-weight: 900;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.br-format-btn:hover {
    transform: translateY(-1px);
    border-color: #667eea;
}

.br-format-btn.selected {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.br-processing-status {
    background: white;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 18px;
}

.br-status-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 900;
    color: #2d3748;
    margin-bottom: 10px;
}

.br-progress-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.br-progress-fill {
    height: 100%;
    width: 0%;
    background: #667eea;
    transition: width 0.2s ease;
}

.br-action-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.br-result-section {
    display: none;
    margin-top: 20px;
    background: rgba(72, 187, 120, 0.15);
    border: 1px solid rgba(72, 187, 120, 0.35);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    color: white;
}

.br-success-icon {
    font-size: 3rem;
    margin-bottom: 8px;
}

.br-result-message {
    font-weight: 900;
    margin-bottom: 12px;
}

@media (max-width: 768px) {
    .compression-mode {
        grid-template-columns: 1fr;
    }
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    .placeholder-layout {
        grid-template-columns: 1fr;
    }
    .br-content {
        padding: 20px;
    }
    .br-image-comparison {
        grid-template-columns: 1fr;
    }
    .br-processing-controls {
        grid-template-columns: 1fr;
    }
    .br-image-preview {
        height: 260px;
    }
}

.settings-panel {
    margin-top: 20px;
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.preset-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.preset-btn {
    padding: 10px 12px;
    border-radius: 999px;
    border: 2px solid #e2e8f0;
    background: #f8fafc;
    color: #2d3748;
    cursor: pointer;
    font-weight: 900;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.preset-btn:hover {
    transform: translateY(-1px);
    border-color: #667eea;
    background: #f0f4ff;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.setting-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 900;
    color: #2d3748;
}

.progress-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    overflow: hidden;
    margin: 18px 0;
    display: none;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: #667eea;
    transition: width 0.2s ease;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.stat-item {
    background: white;
    border-radius: 15px;
    padding: 14px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 950;
    color: #2d3748;
}

.stat-label {
    display: block;
    margin-top: 6px;
    color: #718096;
    font-weight: 800;
    font-size: 0.9rem;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.preview-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.preview-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.preview-info {
    padding: 12px 14px;
    color: #2d3748;
    font-weight: 800;
}

.download-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
    display: none;
    text-align: center;
}

.generator-controls {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
    margin-bottom: 18px;
}

.palette-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.palette-type {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 18px;
    padding: 16px;
    color: white;
    cursor: pointer;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    display: grid;
    grid-template-columns: 36px 1fr;
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 6px;
}

.palette-type .icon {
    grid-row: 1 / span 2;
    display: flex;
    align-items: start;
    justify-content: center;
    font-size: 1.3rem;
}

.palette-type .name {
    font-weight: 950;
}

.palette-type .description {
    opacity: 0.85;
    font-size: 0.95rem;
}

.palette-type:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.16);
}

.palette-type.active {
    background: white;
    color: #2d3748;
    border-color: white;
}

.palette-display {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 18px;
}

.palette-title {
    margin: 0 0 14px;
    color: #2d3748;
}

.color-palette {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.color-card {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.color-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

.color-preview {
    height: 110px;
    position: relative;
}

.copy-indicator {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(26, 32, 44, 0.85);
    color: white;
    font-weight: 900;
    padding: 6px 10px;
    border-radius: 999px;
    opacity: 0;
    transition: opacity 0.15s ease;
    font-size: 0.85rem;
}

.color-info {
    padding: 12px 12px 14px;
}

.color-hex {
    font-weight: 950;
    color: #2d3748;
    margin-bottom: 6px;
}

.color-rgb,
.color-hsl {
    color: #4a5568;
    font-weight: 800;
    font-size: 0.9rem;
}

.palette-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.export-formats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.export-card {
    background: white;
    border-radius: 15px;
    padding: 18px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    display: grid;
    grid-template-columns: 40px 1fr;
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 6px;
    align-items: center;
}

.export-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

.export-card .icon {
    grid-row: 1 / span 2;
    font-size: 1.4rem;
    color: #667eea;
    display: flex;
    align-items: center;
    justify-content: center;
}

.export-card .title {
    font-weight: 950;
    color: #2d3748;
}

.export-card .description {
    color: #718096;
    font-weight: 800;
    font-size: 0.95rem;
}

.saved-palettes {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 18px;
}

.saved-palettes h3 {
    margin: 0 0 14px;
    color: #2d3748;
}

.saved-palette-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.saved-palette {
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    overflow: hidden;
    background: #f8fafc;
}

.saved-palette-colors {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    height: 46px;
}

.saved-palette-color {
    cursor: pointer;
}

.saved-palette-info {
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.saved-palette-name {
    font-weight: 950;
    color: #2d3748;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.saved-palette-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

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

.ascii-header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

.ascii-header h1 {
    font-size: 2.5rem;
    margin: 0 0 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.ascii-header p {
    margin: 0;
    opacity: 0.92;
}

.ascii-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.ascii-upload-area {
    background: white;
    border: 3px dashed #cbd5e0;
    border-radius: 15px;
    padding: 35px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    gap: 14px;
}

.ascii-upload-area:hover {
    border-color: #667eea;
    background: #f8f9ff;
    transform: scale(1.01);
}

.ascii-upload-content h3 {
    margin: 0 0 6px;
    color: #2d3748;
}

.ascii-upload-content p {
    margin: 0;
    color: #718096;
    font-weight: 700;
}

.ascii-controls-panel {
    margin-top: 20px;
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.ascii-controls-panel h3 {
    margin: 0 0 15px;
    color: #2d3748;
}

.ascii-control-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.ascii-control-group label {
    font-weight: 900;
    color: #2d3748;
}

.ascii-range-control label {
    display: block;
    margin-bottom: 8px;
}

.ascii-range-control input[type="range"] {
    width: 100%;
    accent-color: #667eea;
}

.ascii-range-value {
    margin-top: 8px;
    font-weight: 950;
    color: #667eea;
    text-align: center;
}

.ascii-chars-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    outline: none;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.ascii-chars-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

.ascii-preset-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.ascii-preset-btn {
    padding: 10px 12px;
    border-radius: 999px;
    border: 2px solid #e2e8f0;
    background: #f8fafc;
    cursor: pointer;
    font-weight: 900;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.ascii-preset-btn:hover {
    transform: translateY(-1px);
    border-color: #667eea;
    background: #f0f4ff;
}

.ascii-action-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.ascii-btn {
    padding: 12px 18px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 950;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.ascii-btn-primary {
    background: #667eea;
    color: white;
}

.ascii-btn-primary:hover {
    background: #5a67d8;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(102, 126, 234, 0.35);
}

.ascii-btn-secondary {
    background: #2d3748;
    color: white;
}

.ascii-btn-secondary:hover {
    background: #1a202c;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.ascii-progress-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    overflow: hidden;
    margin: 18px 0;
}

.ascii-progress-fill {
    height: 100%;
    width: 0%;
    background: #667eea;
    transition: width 0.2s ease;
}

.ascii-result-container {
    margin-top: 20px;
}

.ascii-preview-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.ascii-preview-box {
    background: white;
    border-radius: 15px;
    padding: 18px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.ascii-preview-box h3 {
    margin: 0 0 12px;
    color: #2d3748;
}

.ascii-original-image {
    width: 100%;
    height: 340px;
    object-fit: contain;
    display: block;
    background: #f8fafc;
    border-radius: 12px;
}

.ascii-output {
    width: 100%;
    height: 340px;
    overflow: auto;
    background: #1a202c;
    color: #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 11px;
    line-height: 1.05;
    white-space: pre;
}

@media (max-width: 768px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }
    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .generator-controls {
        grid-template-columns: 1fr;
    }
    .ascii-control-row {
        grid-template-columns: 1fr;
    }
    .ascii-preview-container {
        grid-template-columns: 1fr;
    }
    .ascii-original-image,
    .ascii-output {
        height: 260px;
    }
}

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

.ac-header,
.vc-header,
.ae-header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

.ac-header h1,
.vc-header h1,
.ae-header h1 {
    font-size: 2.5rem;
    margin: 0 0 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.ac-header p,
.vc-header p,
.ae-header p {
    margin: 0;
    opacity: 0.92;
}

.ac-content,
.vc-content,
.ae-main-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.ac-upload-area,
.vc-upload-area,
.ae-upload-area {
    background: white;
    border: 3px dashed #cbd5e0;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.ac-upload-area:hover,
.vc-upload-area:hover,
.ae-upload-area:hover {
    border-color: #667eea;
    background: #f8f9ff;
    transform: scale(1.01);
}

.ac-upload-area.ac-dragover,
.vc-upload-area.vc-dragover,
.ae-upload-area.dragover {
    border-color: #667eea;
    background: #e6fffa;
    transform: scale(1.01);
}

.ac-upload-icon,
.vc-upload-icon,
.ae-upload-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.ac-conversion-panel,
.conversion-panel {
    margin-top: 20px;
}

.ac-audio-previews,
.vc-video-previews {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.ac-audio-item,
.vc-video-item {
    background: white;
    border-radius: 15px;
    padding: 15px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 12px;
    align-items: center;
}

.ac-audio-thumbnail,
.vc-video-thumbnail {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #edf2f7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex: none;
}

.ac-audio-details,
.vc-video-details {
    flex: 1;
    min-width: 0;
}

.ac-audio-name {
    font-weight: 950;
    color: #2d3748;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ac-audio-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.85rem;
    color: #718096;
    font-weight: 800;
}

.ac-audio-status,
.vc-video-status {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #48bb78;
    font-weight: 900;
}

.ac-bitrate-selector h3,
.ac-format-selector h3,
.vc-format-selector h3,
.vc-resolution-selector h3,
.vc-video-bitrate-selector h3 {
    margin: 0 0 12px;
    text-align: center;
    color: white;
}

.ac-bitrate-buttons,
.ac-format-buttons,
.vc-format-buttons,
.vc-resolution-buttons,
.vc-video-bitrate-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.ac-bitrate-btn,
.ac-format-btn,
.vc-format-btn,
.vc-resolution-btn,
.vc-video-bitrate-btn {
    padding: 10px 14px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
    color: white;
    cursor: pointer;
    font-weight: 950;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.ac-bitrate-btn:hover,
.ac-format-btn:hover,
.vc-format-btn:hover,
.vc-resolution-btn:hover,
.vc-video-bitrate-btn:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.6);
}

.ac-bitrate-btn.selected,
.ac-format-btn.selected,
.ac-format-btn.active,
.vc-format-btn.selected,
.vc-resolution-btn.selected,
.vc-video-bitrate-btn.selected {
    background: white;
    color: #2d3748;
    border-color: white;
}

.ac-action-buttons,
.vc-action-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.ac-loading-panel,
.vc-loading-panel {
    background: white;
    border-radius: 15px;
    padding: 22px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
    text-align: center;
}

.ac-result-panel,
.vc-result-panel {
    margin-top: 20px;
    background: rgba(72, 187, 120, 0.15);
    border: 1px solid rgba(72, 187, 120, 0.35);
    border-radius: 20px;
    padding: 25px;
}

.ac-result-content,
.vc-result-content {
    text-align: center;
    color: white;
}

.ac-success-icon,
.vc-success-icon {
    font-size: 3rem;
    margin-bottom: 8px;
}

.ac-result-actions,
.vc-result-actions {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.vc-batch-info {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.85);
    margin: 10px 0 18px;
    font-weight: 900;
}

.ae-editor-panel {
    display: none;
    margin-top: 20px;
}

.ae-audio-info {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 15px;
}

.ae-info-item {
    background: white;
    border-radius: 15px;
    padding: 14px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.ae-info-label {
    color: #718096;
    font-weight: 900;
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.ae-info-value {
    color: #2d3748;
    font-weight: 950;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ae-waveform-container {
    background: white;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 15px;
}

.ae-waveform {
    position: relative;
    height: 160px;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.ae-waveform-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.ae-playhead {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #667eea;
    left: 0;
    transform: translateX(0);
    pointer-events: none;
}

.ae-selection-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 0%;
    background: rgba(102, 126, 234, 0.18);
    pointer-events: none;
}

.ae-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 15px;
}

.ae-control-btn {
    padding: 10px 14px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: 950;
    background: white;
    color: #2d3748;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.ae-control-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

.ae-control-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.ae-time-display {
    background: #1a202c;
    color: #e2e8f0;
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 950;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.ae-editing-tools {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.ae-tool-section {
    background: white;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.ae-tool-title {
    margin: 0 0 12px;
    color: #2d3748;
}

.ae-slider-group,
.slider-group {
    margin-top: 12px;
}

.ae-slider-label {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: baseline;
    color: #2d3748;
    font-weight: 900;
    margin-bottom: 8px;
}

.ae-slider {
    width: 100%;
    accent-color: #667eea;
}

.ae-action-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.ae-action-btn {
    padding: 12px 18px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: 950;
    background: #667eea;
    color: white;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.ae-action-btn:hover {
    background: #5a67d8;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(102, 126, 234, 0.35);
}

.ae-action-btn.secondary {
    background: #2d3748;
}

.ae-action-btn.secondary:hover {
    background: #1a202c;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.ae-action-btn.danger {
    background: #f56565;
}

.ae-action-btn.danger:hover {
    background: #e53e3e;
}

.ae-progress-container {
    display: none;
    margin-top: 15px;
    background: white;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.ae-progress-bar {
    height: 10px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.ae-progress-fill {
    height: 100%;
    width: 0%;
    background: #667eea;
    transition: width 0.2s ease;
}

.ae-progress-text {
    margin-top: 10px;
    text-align: center;
    font-weight: 950;
    color: #2d3748;
}

.ae-result-section {
    display: none;
    margin-top: 20px;
    background: rgba(72, 187, 120, 0.15);
    border: 1px solid rgba(72, 187, 120, 0.35);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    color: white;
}

.ae-success-icon {
    font-size: 3rem;
    margin-bottom: 8px;
}

.ae-result-message {
    font-weight: 950;
    margin-bottom: 12px;
}

.ae-download-btn,
.ae-edit-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 950;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.ae-download-btn {
    background: #48bb78;
    color: white;
}

.ae-download-btn:hover {
    background: #38a169;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(72, 187, 120, 0.35);
}

.ae-edit-more-btn {
    background: #667eea;
    color: white;
}

.ae-edit-more-btn:hover {
    background: #5a67d8;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(102, 126, 234, 0.35);
}

@media (max-width: 768px) {
    .ac-content,
    .vc-content,
    .ae-main-content {
        padding: 20px;
    }

    .ac-audio-previews,
    .vc-video-previews {
        grid-template-columns: 1fr;
    }

    .ae-audio-info {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

.main-content-markdown {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.editor-section-markdown {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    min-width: 0;
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.toolbar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 900;
    color: #2d3748;
    background: #edf2f7;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    user-select: none;
}

.toolbar-btn:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.toolbar-btn:active {
    transform: translateY(0);
}

.editor-container-markdown {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.editor-panel {
    min-width: 0;
}

.panel-label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: 950;
    color: #2d3748;
}

.markdown-input {
    width: 100%;
    min-height: 420px;
    resize: vertical;
    padding: 14px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    outline: none;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.95rem;
    line-height: 1.5;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.markdown-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

.preview-panel {
    width: 100%;
    min-height: 420px;
    padding: 14px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    background: #fff;
    overflow: auto;
    color: #2d3748;
}

.preview-panel h1,
.preview-panel h2,
.preview-panel h3 {
    margin-top: 0.4em;
    margin-bottom: 0.4em;
    color: #2d3748;
}

.preview-panel h1 {
    border-bottom: 2px solid #667eea;
    padding-bottom: 8px;
}

.preview-panel code {
    background: #f8fafc;
    padding: 2px 6px;
    border-radius: 6px;
    color: #c53030;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.preview-panel pre {
    background: #1a202c;
    color: #e2e8f0;
    padding: 12px;
    border-radius: 12px;
    overflow: auto;
}

.preview-panel blockquote {
    border-left: 4px solid #667eea;
    padding-left: 12px;
    margin: 12px 0;
    color: #4a5568;
    background: #f8fafc;
    border-radius: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-right: 12px;
}

.preview-panel table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
}

.preview-panel th,
.preview-panel td {
    border: 1px solid #e2e8f0;
    padding: 8px 10px;
    text-align: left;
}

.controls-panel {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 0;
}

.control-group h3 {
    margin: 0 0 10px;
    color: #2d3748;
}

.file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.file-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 900;
    color: white;
    background: #2d3748;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    user-select: none;
    text-decoration: none;
}

.file-label:hover {
    background: #1a202c;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.control-btn-markdown {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 900;
    color: white;
    background: #667eea;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    user-select: none;
}

.control-btn-markdown:hover {
    background: #5a67d8;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(102, 126, 234, 0.35);
}

.control-btn-markdown:active {
    transform: translateY(0);
}

.syntax-guide {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    padding: 15px;
}

.syntax-guide h4 {
    margin: 0 0 12px;
    color: #2d3748;
}

.syntax-item {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid #e2e8f0;
    color: #2d3748;
    font-weight: 850;
}

.syntax-item:first-of-type {
    border-top: none;
}

.syntax-example {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    color: #4a5568;
    font-weight: 800;
}

.wc-page .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.wc-page .stat-card {
    background: white;
    border-radius: 15px;
    padding: 18px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.wc-page .stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(102, 126, 234, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    font-size: 1.25rem;
}

.wc-page .stat-value {
    font-size: 1.6rem;
    font-weight: 950;
    color: #2d3748;
    line-height: 1;
}

.wc-page .stat-label {
    font-weight: 900;
    color: #718096;
    font-size: 0.9rem;
}

.wc-page .analysis-section {
    margin-top: 25px;
}

.wc-page .analysis-title {
    margin: 0 0 15px;
    color: white;
    font-weight: 950;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 12px 14px;
    border-radius: 14px;
}

.wc-page .analysis-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.wc-page .analysis-card {
    background: white;
    border-radius: 15px;
    padding: 18px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    min-width: 0;
}

.wc-page .analysis-card h4 {
    margin: 0 0 12px;
    color: #2d3748;
}

.wc-page .word-list {
    max-height: 240px;
    overflow: auto;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    padding: 10px;
}

.wc-page .word-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: white;
    border: 1px solid #e2e8f0;
}

.wc-page .word-item + .word-item {
    margin-top: 8px;
}

.wc-page .word-text {
    font-weight: 950;
    color: #2d3748;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wc-page .word-count {
    min-width: 34px;
    text-align: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(102, 126, 234, 0.12);
    color: #667eea;
    font-weight: 950;
}

.wc-page .language-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.wc-page .language-stat {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px;
    text-align: center;
}

.wc-page .language-stat .value {
    font-weight: 950;
    color: #2d3748;
    font-size: 1.2rem;
}

.wc-page .language-stat .label {
    margin-top: 4px;
    font-weight: 900;
    color: #718096;
    font-size: 0.85rem;
}

.wc-page .reading-time {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px;
    text-align: center;
}

.wc-page .reading-time .time {
    font-weight: 950;
    color: #2d3748;
    font-size: 1.4rem;
}

.wc-page .reading-time .label {
    margin-top: 6px;
    font-weight: 850;
    color: #718096;
    font-size: 0.9rem;
}

.wc-page .export-section {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 22px;
}

.wc-page .export-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 950;
    border: none;
    cursor: pointer;
    color: white;
    background: #667eea;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.wc-page .export-btn:hover {
    background: #5a67d8;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(102, 126, 234, 0.35);
}

.wc-page .export-btn.secondary {
    background: #2d3748;
}

.wc-page .export-btn.secondary:hover {
    background: #1a202c;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

@media (max-width: 1024px) {
    .main-content-markdown {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .editor-container-markdown {
        grid-template-columns: 1fr;
    }
    .wc-page .analysis-grid {
        grid-template-columns: 1fr;
    }
}
