/* Batch Tools (Image Resizer & Image Compressor) - CSS Estilos Prontos */

:root {
    --amg-transition: all 0.3s ease;
    --amg-border-radius: 10px;
    --amg-border-radius-lg: 20px;
    --amg-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --amg-shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* ============================================
   HEADER SECTION
============================================ */
.tools-header {
    background: linear-gradient(135deg, #2563eb 0%, var(--color-secundary, #1e40af) 100%);
    color: #ffffff;
    padding: 3.5rem 0 2rem;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
    width: 100%;
    float: left;
}

.tools-header nav {
    width: 100%;
    float: left;
}

.tools-header nav ol.breadcrumb {
    width: 100%;
    float: left;
    display: flex;
    flex-wrap: nowrap;
    overflow: hidden;
    overflow-y: auto;
    margin-bottom: 0;
    padding: 0;
    list-style: none;
}

.tools-header nav ol.breadcrumb .breadcrumb-item {
    width: auto;
    float: left;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    white-space: nowrap;
}

.tools-header nav ol.breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.tools-header nav ol.breadcrumb .breadcrumb-item a:hover {
    color: #ffffff;
}

.tools-header nav ol.breadcrumb .breadcrumb-item.active {
    color: #ffffff;
}

.tools-header nav ol.breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.6);
    content: "/";
    padding: 0 0.5rem;
}

.tools-title {
    font-size: 2.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: #ffffff;
}

.tools-subtitle {
    font-size: 1.05rem;
    opacity: 0.9;
    font-weight: 300;
    color: #ffffff;
    max-width: 800px;
    margin: 0 auto 1.2rem auto;
}

/* ============================================
   QUOTA BADGE
============================================ */
.tools-quota-bar {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    padding: 6px 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    backdrop-filter: blur(8px);
}

.tools-quota-bar i {
    color: #38bdf8;
}

/* ============================================
   MAIN CONTAINER
============================================ */
.tools-main {
    width: 100%;
    float: left;
    padding: 40px 0 60px;
    background-color: #f8fafc;
}

.tools-card-wrapper {
    background: #ffffff;
    border-radius: var(--amg-border-radius-lg);
    padding: 35px;
    box-shadow: var(--amg-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e2e8f0;
    margin-bottom: 25px;
}

.tools-card-wrapper:hover {
    box-shadow: var(--amg-shadow-hover);
}

/* ============================================
   SECTION TITLES
============================================ */
.tools-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tools-section-title i {
    color: var(--color-primary, #2563eb);
    font-size: 1.1rem;
}

/* ============================================
   DROP ZONE MULTIPLE
============================================ */
.tools-drop-zone {
    border: 3px dashed #94a3b8;
    border-radius: var(--amg-border-radius-lg);
    padding: 35px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--amg-transition);
    background: #f8fafc;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    user-select: none;
    margin-bottom: 25px;
}

.tools-drop-zone:hover,
.tools-drop-zone.drag-over {
    border-color: var(--color-primary, #2563eb);
    background: rgba(37, 99, 235, 0.05);
    transform: translateY(-2px);
}

.tools-drop-zone.drag-over {
    border-style: solid;
}

.tools-drop-zone-icon {
    font-size: 2.5rem;
    color: #64748b;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.tools-drop-zone:hover .tools-drop-zone-icon {
    color: var(--color-primary, #2563eb);
}

.tools-drop-zone-text {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.5;
}

.tools-drop-zone-text strong {
    color: var(--color-primary, #2563eb);
}

/* ============================================
   FILES PREVIEW GRID
============================================ */
.tools-files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
    max-height: 380px;
    overflow-y: auto;
    padding: 10px;
    background: #f1f5f9;
    border-radius: 12px;
}

.tools-file-item {
    background: #ffffff;
    border-radius: 10px;
    padding: 8px;
    border: 1px solid #cbd5e1;
    position: relative;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s ease;
}

.tools-file-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.tools-file-thumb {
    width: 100%;
    height: 80px;
    border-radius: 6px;
    object-fit: cover;
    background: #e2e8f0;
    margin-bottom: 6px;
}

.tools-file-info {
    width: 100%;
    text-align: center;
}

.tools-file-name {
    font-size: 11px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.tools-file-size {
    font-size: 10px;
    color: #64748b;
}

.tools-file-remove {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    background: #ef4444;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 10px;
    transition: background 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.tools-file-remove:hover {
    background: #dc2626;
}

/* ============================================
   PROGRESS BAR & STEPS
============================================ */
.tools-progress-container {
    display: none;
    background: #ffffff;
    border-radius: 14px;
    padding: 25px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-top: 20px;
}

.tools-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.tools-progress-label {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tools-progress-percentage {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-primary, #2563eb);
}

.tools-progress-bar-wrap {
    height: 14px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    margin-bottom: 10px;
}

.tools-progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--color-primary, #2563eb), #38bdf8);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.tools-progress-subtext {
    font-size: 12px;
    color: #64748b;
    text-align: center;
}

/* ============================================
   COMPRESSION LEVEL SELECTOR
============================================ */
.compression-level-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
    margin-top: 15px;
    margin-bottom: 25px;
}

.compression-level-card {
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px 18px 20px;
    cursor: pointer;
    transition: all 0.25s ease;
    background: #ffffff;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.compression-level-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.compression-level-card.selected {
    border-color: #0284c7;
    background: #f0f9ff;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15), 0 6px 18px rgba(2, 132, 199, 0.12);
}

.compression-badge {
    position: absolute;
    top: -11px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 12px;
    border-radius: 20px;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.compression-badge.badge-rec {
    background: #0284c7;
}
.compression-badge.badge-high {
    background: #e11d48;
}
.compression-badge.badge-light {
    background: #0d9488;
}

.compression-level-card .card-icon {
    font-size: 28px;
    margin-top: 4px;
    margin-bottom: 10px;
    transition: transform 0.2s ease;
}

.compression-level-card[data-level="recommended"] .card-icon {
    color: #d97706;
}
.compression-level-card[data-level="high"] .card-icon {
    color: #e11d48;
}
.compression-level-card[data-level="light"] .card-icon {
    color: #0d9488;
}

.compression-level-card:hover .card-icon {
    transform: scale(1.1);
}

.compression-level-card .card-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
    transition: color 0.2s ease;
}

.compression-level-card.selected .card-title {
    color: #0284c7;
}

.compression-level-card .card-desc {
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.45;
}


/* ============================================
   STATISTICS CARD (AFTER COMPRESSION)
============================================ */
.tools-stats-card {
    display: none;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 2px solid #10b981;
    border-radius: 14px;
    padding: 20px;
    margin-top: 20px;
    text-align: center;
}

.tools-stats-title {
    font-size: 16px;
    font-weight: 700;
    color: #065f46;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tools-stats-badge {
    font-size: 28px;
    font-weight: 800;
    color: #059669;
    margin-bottom: 6px;
}

.tools-stats-details {
    font-size: 13px;
    color: #047857;
}

/* ============================================
   BUTTONS
============================================ */
.tools-btn-action {
    background: linear-gradient(135deg, var(--color-primary, #2563eb), var(--color-primary-hover, #1d4ed8));
    color: #ffffff;
    border: none;
    border-radius: var(--amg-border-radius);
    padding: 16px 35px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--amg-transition);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
    width: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.tools-btn-action:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.45);
    color: #ffffff;
}

.tools-btn-action:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.tools-btn-download-again {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 12px 25px;
    font-size: 14px;
    font-weight: 700;
    transition: var(--amg-transition);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    width: 100%;
}

.tools-btn-download-again:hover {
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    color: #ffffff;
}

/* ============================================
   SIDEBAR INFO
============================================ */
.tools-sidebar-card {
    background: #ffffff;
    border-radius: var(--amg-border-radius-lg);
    padding: 25px;
    box-shadow: var(--amg-shadow);
    border: 1px solid #e2e8f0;
    margin-bottom: 25px;
}

.tools-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tools-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 13px;
    color: #475569;
}

.tools-feature-item i {
    color: #10b981;
    font-size: 16px;
    margin-top: 2px;
}

@media (max-width: 768px) {
    .tools-title {
        font-size: 1.8rem;
    }
    .tools-card-wrapper {
        padding: 22px 16px;
    }
}

/* ============================================
   PRIVACY NOTICE CARD (BILINGUAL PT/EN)
============================================ */
.tools-privacy-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #10b981;
    border-radius: 12px;
    padding: 20px 24px;
    margin-top: 25px;
}

.tools-privacy-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #ecfdf5;
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.tools-privacy-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
}

.tools-privacy-badge-lang {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tools-privacy-desc {
    font-size: 13px;
    line-height: 1.6;
    color: #475569;
}

.tools-privacy-desc strong {
    color: #0f172a;
}

@media (min-width: 768px) {
    .border-end-md {
        border-right: 1px solid #e2e8f0;
        padding-right: 20px;
    }
}

/* ============================================
   IMAGE CONVERTER OPTION CARDS
============================================ */
.tools-option-card {
    display: block;
    cursor: pointer;
    position: relative;
    height: 100%;
}

.tools-option-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.tools-option-card-inner {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    background: #ffffff;
    transition: all 0.25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.tools-option-card:hover .tools-option-card-inner {
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.tools-option-card input[type="radio"]:checked + .tools-option-card-inner {
    border-color: #2563eb;
    background: #f8faff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.tools-option-badge {
    position: absolute;
    top: -10px;
    background: #2563eb;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 20px;
}

.tools-option-icon {
    font-size: 28px;
    margin-top: 5px;
    margin-bottom: 10px;
}

.tools-option-title {
    font-size: 15px;
    color: #0f172a;
    margin-bottom: 6px;
    display: block;
}

.tools-option-desc {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 0;
    line-height: 1.4;
}

/* ============================================
   CODE & JSON FORMATTER STYLES
============================================ */
.tools-tabs-nav {
    gap: 8px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 12px;
}

.tools-tabs-nav .nav-link {
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #475569;
    padding: 8px 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.tools-tabs-nav .nav-link:hover {
    color: #1e293b;
    background: #f1f5f9;
}

.tools-tabs-nav .nav-link.active {
    background: #2563eb;
    color: #ffffff !important;
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.tools-code-toolbar {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0;
}

.tools-code-editor {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 13px;
    line-height: 1.5;
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 12px 14px;
    tab-size: 2;
    white-space: pre;
    resize: vertical;
}

.tools-code-editor:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.tools-code-output {
    background: #f8fafc;
    color: #1e293b;
}

/* ============================================
   DARK MODE SUPPORT (body.theme-dark & .theme-dark)
============================================ */
body.theme-dark .tools-main,
.theme-dark .tools-main {
    background-color: #111419 !important;
}

body.theme-dark .tools-header,
.theme-dark .tools-header {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
    border-bottom: 1px solid #232936 !important;
}

body.theme-dark .tools-title,
.theme-dark .tools-title {
    color: #f8fafc !important;
}

body.theme-dark .tools-subtitle,
.theme-dark .tools-subtitle {
    color: #cbd5e1 !important;
}

body.theme-dark .tools-quota-bar,
.theme-dark .tools-quota-bar {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #e2e8f0 !important;
}

body.theme-dark .tools-card-wrapper,
.theme-dark .tools-card-wrapper {
    background: #181c24 !important;
    border-color: #232936 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

body.theme-dark .tools-section-title,
.theme-dark .tools-section-title {
    color: #f1f5f9 !important;
    border-bottom-color: #232936 !important;
}

body.theme-dark .tools-drop-zone,
.theme-dark .tools-drop-zone {
    background: #111419 !important;
    border-color: #334155 !important;
}

body.theme-dark .tools-drop-zone:hover,
body.theme-dark .tools-drop-zone.drag-over,
.theme-dark .tools-drop-zone:hover,
.theme-dark .tools-drop-zone.drag-over {
    background: rgba(56, 189, 248, 0.08) !important;
    border-color: #38bdf8 !important;
}

body.theme-dark .tools-drop-zone-icon,
.theme-dark .tools-drop-zone-icon {
    color: #64748b !important;
}

body.theme-dark .tools-drop-zone:hover .tools-drop-zone-icon,
.theme-dark .tools-drop-zone:hover .tools-drop-zone-icon {
    color: #38bdf8 !important;
}

body.theme-dark .tools-drop-zone-text,
.theme-dark .tools-drop-zone-text {
    color: #94a3b8 !important;
}

body.theme-dark .tools-drop-zone-text strong,
.theme-dark .tools-drop-zone-text strong {
    color: #38bdf8 !important;
}

body.theme-dark .tools-files-grid,
.theme-dark .tools-files-grid {
    background: #111419 !important;
    border: 1px solid #232936 !important;
}

body.theme-dark .tools-file-item,
.theme-dark .tools-file-item {
    background: #181c24 !important;
    border-color: #2e3440 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

body.theme-dark .tools-file-name,
.theme-dark .tools-file-name {
    color: #f1f5f9 !important;
}

body.theme-dark .tools-file-size,
.theme-dark .tools-file-size {
    color: #94a3b8 !important;
}

body.theme-dark .tools-file-thumb,
.theme-dark .tools-file-thumb {
    background: #232936 !important;
}

body.theme-dark .tools-progress-container,
.theme-dark .tools-progress-container {
    background: #181c24 !important;
    border-color: #232936 !important;
}

body.theme-dark .tools-progress-container .progress,
.theme-dark .tools-progress-container .progress {
    background-color: #111419 !important;
    border: 1px solid #2e3440 !important;
}

body.theme-dark .tools-progress-status,
body.theme-dark .tools-progress-step,
.theme-dark .tools-progress-status,
.theme-dark .tools-progress-step {
    color: #cbd5e1 !important;
}

body.theme-dark .tools-privacy-card,
.theme-dark .tools-privacy-card {
    background: #181c24 !important;
    border-color: #232936 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25) !important;
}

body.theme-dark .tools-privacy-title,
.theme-dark .tools-privacy-title {
    color: #f1f5f9 !important;
}

body.theme-dark .tools-privacy-desc,
.theme-dark .tools-privacy-desc {
    color: #94a3b8 !important;
}

body.theme-dark .tools-privacy-desc strong,
.theme-dark .tools-privacy-desc strong {
    color: #f8fafc !important;
}

body.theme-dark .tools-privacy-badge-lang,
.theme-dark .tools-privacy-badge-lang {
    color: #64748b !important;
}

body.theme-dark .tools-privacy-icon,
.theme-dark .tools-privacy-icon {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #34d399 !important;
}

@media (min-width: 768px) {
    body.theme-dark .border-end-md,
    .theme-dark .border-end-md {
        border-right-color: #232936 !important;
    }
}

body.theme-dark .tools-option-card-inner,
.theme-dark .tools-option-card-inner {
    background: #181c24 !important;
    border-color: #2e3440 !important;
}

body.theme-dark .tools-option-title,
.theme-dark .tools-option-title {
    color: #f1f5f9 !important;
}

body.theme-dark .tools-option-desc,
.theme-dark .tools-option-desc {
    color: #94a3b8 !important;
}

body.theme-dark .tools-option-card:hover .tools-option-card-inner,
.theme-dark .tools-option-card:hover .tools-option-card-inner {
    border-color: #475569 !important;
    background: #1c212b !important;
}

body.theme-dark .tools-option-card input[type="radio"]:checked + .tools-option-card-inner,
.theme-dark .tools-option-card input[type="radio"]:checked + .tools-option-card-inner {
    border-color: #38bdf8 !important;
    background: rgba(14, 165, 233, 0.1) !important;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25) !important;
}

body.theme-dark .tools-option-card input[type="radio"]:checked + .tools-option-card-inner .tools-option-title,
.theme-dark .tools-option-card input[type="radio"]:checked + .tools-option-card-inner .tools-option-title {
    color: #38bdf8 !important;
}

body.theme-dark .tools-tabs-nav,
.theme-dark .tools-tabs-nav {
    border-bottom-color: #232936 !important;
}

body.theme-dark .tools-tabs-nav .nav-link,
.theme-dark .tools-tabs-nav .nav-link {
    background: #111419 !important;
    color: #94a3b8 !important;
    border-color: #232936 !important;
}

body.theme-dark .tools-tabs-nav .nav-link:hover,
.theme-dark .tools-tabs-nav .nav-link:hover {
    color: #f8fafc !important;
    background: #181c24 !important;
}

body.theme-dark .tools-tabs-nav .nav-link.active,
.theme-dark .tools-tabs-nav .nav-link.active {
    background: #0284c7 !important;
    color: #ffffff !important;
    border-color: #0284c7 !important;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3) !important;
}

body.theme-dark .tools-code-toolbar,
.theme-dark .tools-code-toolbar {
    background: #111419 !important;
    border-color: #232936 !important;
}

body.theme-dark .tools-code-editor,
.theme-dark .tools-code-editor {
    background: #0f1117 !important;
    color: #e2e8f0 !important;
    border-color: #232936 !important;
}

body.theme-dark .tools-code-editor:focus,
.theme-dark .tools-code-editor:focus {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2) !important;
}

body.theme-dark .tools-code-output,
.theme-dark .tools-code-output {
    background: #0d1117 !important;
    color: #e2e8f0 !important;
    border-color: #232936 !important;
}

body.theme-dark .tools-card-wrapper .form-control,
body.theme-dark .tools-card-wrapper .form-select,
.theme-dark .tools-card-wrapper .form-control,
.theme-dark .tools-card-wrapper .form-select {
    background-color: #111419 !important;
    border-color: #2e3440 !important;
    color: #f8fafc !important;
}

body.theme-dark .tools-card-wrapper .form-label,
.theme-dark .tools-card-wrapper .form-label {
    color: #cbd5e1 !important;
}

/* ==========================================================
   GRID DE FERRAMENTAS & STRIP (HUB & HOME)
   ========================================================== */
.tools-features-strip {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tools-features-strip:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}
.tools-home-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 28px 24px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    text-decoration: none !important;
    color: inherit;
    display: flex;
    flex-direction: column;
}
.tools-home-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 35px -10px rgba(15, 23, 42, 0.12);
    border-color: #cbd5e1;
    color: inherit;
}
.tools-home-card:hover .tools-home-card-title {
    color: var(--color-primary, #0284c7);
}
.tools-home-card:hover .transition-arrow {
    transform: translateX(5px);
}
.transition-arrow {
    transition: transform 0.25s ease;
}
.tools-home-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
    transition: transform 0.3s ease;
}
.tools-home-card:hover .tools-home-icon {
    transform: scale(1.08) rotate(3deg);
}
.tools-home-icon.theme-cyan { background: #e0f2fe; color: #0284c7; }
.tools-home-icon.theme-emerald { background: #d1fae5; color: #059669; }
.tools-home-icon.theme-amber { background: #fef3c7; color: #d97706; }
.tools-home-icon.theme-purple { background: #ede9fe; color: #7c3aed; }
.tools-home-icon.theme-rose { background: #ffe4e6; color: #e11d48; }

.tools-home-card-badge {
    font-size: 0.76rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 30px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.badge-pwa { background: #f0f9ff; color: #0284c7; border: 1px solid #bae6fd; }
.badge-resize { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.badge-compress { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.badge-convert { background: #f5f3ff; color: #6d28d9; border: 1px solid #ddd6fe; }
.badge-code { background: #fff1f2; color: #be123c; border: 1px solid #fecdd3; }

.tools-home-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    transition: color 0.2s ease;
}
.tools-home-card-desc {
    color: #64748b;
    font-size: 0.93rem;
    line-height: 1.55;
}
.tools-home-card-footer {
    border-top: 1px solid #f1f5f9;
}
.tools-home-card-cta {
    color: var(--color-primary, #0284c7);
    font-size: 0.95rem;
}
.tools-home-free-tag {
    font-size: 0.82rem;
    font-weight: 600;
    color: #15803d;
    background: #f0fdf4;
    padding: 3px 9px;
    border-radius: 12px;
}

body.theme-dark .tools-features-strip,
.theme-dark .tools-features-strip {
    background: #181c24 !important;
    border-color: #232936 !important;
}
body.theme-dark .tools-features-strip h5,
.theme-dark .tools-features-strip h5 {
    color: #f1f5f9 !important;
}
body.theme-dark .tools-home-card,
.theme-dark .tools-home-card {
    background: #181c24 !important;
    border-color: #232936 !important;
}
body.theme-dark .tools-home-card-title,
.theme-dark .tools-home-card-title {
    color: #f1f5f9 !important;
}
body.theme-dark .tools-home-card-desc,
.theme-dark .tools-home-card-desc {
    color: #94a3b8 !important;
}
body.theme-dark .tools-home-card-footer,
.theme-dark .tools-home-card-footer {
    border-color: #232936 !important;
}
body.theme-dark .tools-home-free-tag,
.theme-dark .tools-home-free-tag {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #34d399 !important;
}

.tools-filter-btn {
    transition: all 0.2s ease-in-out;
    font-weight: 500;
    cursor: pointer;
}
.tools-filter-btn.active {
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}
body.theme-dark .tools-filter-btn.btn-outline-secondary,
.theme-dark .tools-filter-btn.btn-outline-secondary {
    color: #cbd5e1 !important;
    border-color: #334155 !important;
    background-color: #1e293b !important;
}
body.theme-dark .tools-filter-btn.btn-outline-secondary:hover,
.theme-dark .tools-filter-btn.btn-outline-secondary:hover {
    color: #ffffff !important;
    background-color: #334155 !important;
    border-color: #475569 !important;
}

.tools-quota-bar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    padding: 7px 20px;
    border-radius: 50px;
    font-size: 0.875rem;
    white-space: nowrap;
    max-width: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.tools-quota-bar i,
.tools-quota-bar svg {
    color: #38bdf8;
}
.tools-quota-bar strong {
    color: #ffffff;
    font-weight: 700;
}

/* ============================================
   BADGES DE CATEGORIA DAS FERRAMENTAS
============================================ */
.badge-pwa {
    background: #f0f9ff;
    color: #0284c7;
    border: 1px solid #bae6fd;
}
.badge-resize {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}
.badge-compress {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}
.badge-convert {
    background: #f5f3ff;
    color: #6d28d9;
    border: 1px solid #ddd6fe;
}
.badge-code {
    background: #fff1f2;
    color: #be123c;
    border: 1px solid #fecdd3;
}

body.theme-dark .badge-pwa,
.theme-dark .badge-pwa {
    background: rgba(14, 165, 233, 0.18) !important;
    color: #38bdf8 !important;
    border: 1px solid rgba(14, 165, 233, 0.35) !important;
}
body.theme-dark .badge-resize,
.theme-dark .badge-resize {
    background: rgba(16, 185, 129, 0.18) !important;
    color: #34d399 !important;
    border: 1px solid rgba(16, 185, 129, 0.35) !important;
}
body.theme-dark .badge-compress,
.theme-dark .badge-compress {
    background: rgba(245, 158, 11, 0.18) !important;
    color: #fbbf24 !important;
    border: 1px solid rgba(245, 158, 11, 0.35) !important;
}
body.theme-dark .badge-convert,
.theme-dark .badge-convert {
    background: rgba(139, 92, 246, 0.18) !important;
    color: #a78bfa !important;
    border: 1px solid rgba(139, 92, 246, 0.35) !important;
}
body.theme-dark .badge-code,
.theme-dark .badge-code {
    background: rgba(244, 63, 94, 0.18) !important;
    color: #fb7185 !important;
    border: 1px solid rgba(244, 63, 94, 0.35) !important;
}

/* ============================================
   DARK THEME: TOOLS SIDEBAR CARD
============================================ */
body.theme-dark .tools-sidebar-card,
.theme-dark .tools-sidebar-card {
    background: #181c24 !important;
    border-color: #232936 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}
body.theme-dark .tools-sidebar-card h4,
body.theme-dark .tools-sidebar-card .tools-sidebar-title,
.theme-dark .tools-sidebar-card h4,
.theme-dark .tools-sidebar-card .tools-sidebar-title {
    color: #f1f5f9 !important;
}
body.theme-dark .tools-sidebar-card hr,
.theme-dark .tools-sidebar-card hr {
    border-color: #232936 !important;
    opacity: 0.8 !important;
}
body.theme-dark .tools-feature-item,
.theme-dark .tools-feature-item {
    color: #cbd5e1 !important;
}
body.theme-dark .tools-feature-item strong,
.theme-dark .tools-feature-item strong {
    color: #f8fafc !important;
}
body.theme-dark .tools-feature-item i,
.theme-dark .tools-feature-item i {
    color: #34d399 !important;
}

/* ============================================
   DARK THEME: COMPRESSION LEVEL CARDS
============================================ */
body.theme-dark .compression-level-card,
.theme-dark .compression-level-card {
    background: #181c24 !important;
    border: 2px solid #2e3440 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
}

body.theme-dark .compression-level-card .card-title,
.theme-dark .compression-level-card .card-title {
    color: #f1f5f9 !important;
}

body.theme-dark .compression-level-card .card-desc,
.theme-dark .compression-level-card .card-desc {
    color: #94a3b8 !important;
}

body.theme-dark .compression-level-card:hover,
.theme-dark .compression-level-card:hover {
    border-color: #475569 !important;
    background: #1c212b !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4) !important;
}

body.theme-dark .compression-level-card.selected,
.theme-dark .compression-level-card.selected {
    border-color: #38bdf8 !important;
    background: rgba(14, 165, 233, 0.12) !important;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25), 0 8px 24px rgba(0, 0, 0, 0.4) !important;
}

body.theme-dark .compression-level-card.selected .card-title,
.theme-dark .compression-level-card.selected .card-title {
    color: #38bdf8 !important;
}

body.theme-dark .compression-level-card.selected .card-desc,
.theme-dark .compression-level-card.selected .card-desc {
    color: #e2e8f0 !important;
}

body.theme-dark .compression-badge.badge-rec,
.theme-dark .compression-badge.badge-rec {
    background: #0284c7 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.4) !important;
}

body.theme-dark .compression-badge.badge-high,
.theme-dark .compression-badge.badge-high {
    background: #e11d48 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(225, 29, 72, 0.4) !important;
}

body.theme-dark .compression-badge.badge-light,
.theme-dark .compression-badge.badge-light {
    background: #0d9488 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.4) !important;
}

body.theme-dark .compression-level-card[data-level="recommended"] .card-icon,
.theme-dark .compression-level-card[data-level="recommended"] .card-icon {
    color: #fbbf24 !important;
}

body.theme-dark .compression-level-card[data-level="high"] .card-icon,
.theme-dark .compression-level-card[data-level="high"] .card-icon {
    color: #fb7185 !important;
}

body.theme-dark .compression-level-card[data-level="light"] .card-icon,
.theme-dark .compression-level-card[data-level="light"] .card-icon {
    color: #2dd4bf !important;
}




