/* CSS Minifier Specific Styles */

.tool-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.tool-header {
    text-align: center;
    margin-bottom: 30px;
}

.tool-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tool-header p {
    color: #6b7280;
    font-size: 1.1rem;
}

/* Stats Bar */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.stat-item {
    background: white;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.dark-mode .stat-item {
    background: #1f2937;
    border-color: #374151;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 600;
    color: #3b82f6;
}

/* Editor Card */
.editor-card {
    background: white;
    border-radius: 30px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.dark-mode .editor-card {
    background: #1f2937;
    border-color: #374151;
}

/* Editor Header */
.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    flex-wrap: wrap;
    gap: 10px;
}

.dark-mode .editor-header {
    background: #111827;
    border-bottom-color: #374151;
}

.editor-tabs {
    display: flex;
    gap: 5px;
}

.tab-btn {
    padding: 8px 20px;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 60px;
    color: #6b7280;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    color: #3b82f6;
}

.tab-btn.active {
    background: white;
    border-color: #e5e7eb;
    color: #3b82f6;
}

.dark-mode .tab-btn.active {
    background: #1f2937;
    border-color: #374151;
    color: #f9fafb;
}

.editor-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    width: 40px;
    height: 40px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 60px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.dark-mode .action-btn {
    background: #1f2937;
    border-color: #374151;
    color: #9ca3af;
}

.action-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    transform: translateY(-2px);
}

/* Editor Content */
.editor-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 20px;
    min-height: 400px;
}

.input-section,
.output-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.section-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #6b7280;
    padding: 0 5px;
}

.line-count {
    font-size: 0.85rem;
    color: #9ca3af;
}

/* CSS Input */
.css-input {
    width: 100%;
    height: 350px;
    padding: 20px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 20px;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #111827;
    resize: vertical;
    outline: none;
    transition: all 0.2s ease;
}

.dark-mode .css-input {
    background: #111827;
    border-color: #374151;
    color: #f9fafb;
}

.css-input:focus {
    border-color: #3b82f6;
}

/* CSS Output */
.output-view {
    display: none;
    height: 350px;
}

.output-view.active {
    display: block;
}

.css-output {
    width: 100%;
    height: 100%;
    padding: 20px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 20px;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #111827;
    overflow: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    resize: none;
}

.dark-mode .css-output {
    background: #111827;
    border-color: #374151;
    color: #f9fafb;
}

#minifiedCss {
    white-space: pre;
    overflow-x: auto;
}

/* Options Bar */
.options-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    flex-wrap: wrap;
    gap: 15px;
}

.dark-mode .options-bar {
    background: #111827;
    border-top-color: #374151;
}

.option-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 0.9rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #3b82f6;
}

.format-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

.format-options label {
    color: #6b7280;
    font-size: 0.9rem;
}

.format-options select {
    padding: 6px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 60px;
    background: white;
    color: #111827;
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
}

.dark-mode .format-options select {
    background: #1f2937;
    border-color: #374151;
    color: #f9fafb;
}

/* Info Section */
.info-section {
    background: #f9fafb;
    border-radius: 30px;
    padding: 30px;
    margin: 30px 0;
    border: 1px solid #e5e7eb;
}

.dark-mode .info-section {
    background: #111827;
    border-color: #374151;
}

.info-section h3 {
    font-size: 1.3rem;
    margin: 20px 0 15px;
    color: #111827;
}

.dark-mode .info-section h3 {
    color: #f9fafb;
}

.info-section h3:first-child {
    margin-top: 0;
}

.info-section p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 15px;
}

.dark-mode .info-section p {
    color: #9ca3af;
}

.info-section ul {
    list-style: none;
    padding: 0;
}

.info-section ul li {
    padding: 8px 0;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dark-mode .info-section ul li {
    color: #9ca3af;
}

.tip-box {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: #f0f9ff;
    border-radius: 20px;
    margin-top: 20px;
    border: 1px solid #bae6fd;
}

.dark-mode .tip-box {
    background: #1e3a5f;
    border-color: #2563eb;
}

.tip-box i {
    font-size: 1.5rem;
    color: #f59e0b;
    margin-top: 2px;
}

.tip-box div {
    color: #0369a1;
    font-size: 0.95rem;
    line-height: 1.5;
}

.dark-mode .tip-box div {
    color: #bae6fd;
}

.tip-box strong {
    color: #111827;
}

.dark-mode .tip-box strong {
    color: #f9fafb;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .tool-header h1 {
        font-size: 2rem;
    }
    
    .stats-bar {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .editor-content {
        grid-template-columns: 1fr;
    }
    
    .css-input,
    .output-view {
        height: 300px;
    }
    
    .editor-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .editor-actions {
        justify-content: center;
    }
    
    .options-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .option-group {
        flex-direction: column;
        gap: 10px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}