/* ========= CONTAINER & HEADER ========= */


.tool-content {
    padding: 0%;
}

/* ========= ONGLET (TABS) ========= */
.tabs {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-bottom: 18px;
}
.tab {
    background: linear-gradient(45deg, #ecf0f1, #dfe6e9);
    color: #2c3e50;
    border: none;
    border-radius: 8px 8px 0 0;
    padding: 10px 32px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1.06em;
    transition: all 0.18s;
    outline: none;
    border-bottom: 2px solid transparent;
}
.tab.active {
    background: linear-gradient(90deg, #3498db 70%, #2980b9 100%);
    color: #fff;
    border-bottom: 2.5px solid #2980b9;
    box-shadow: 0 3px 20px rgba(44,62,80,0.08);
}

/* ========= CONTENT & PANELS ========= */
.content {
    background: #f8f9fa;
    border-radius: 0 0 18px 18px;
    padding: 28px 26px 34px 26px;
    box-shadow: 0 7px 30px rgba(44,62,80,0.09);
}

/* ====== File Upload ====== */
.file-upload {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
}
.file-input {
    display: none;
}
.file-label {
    background: linear-gradient(45deg, #27ae60, #229954);
    color: #fff;
    padding: 9px 20px;
    border-radius: 7px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s;
    font-size: 1em;
}
.file-label:hover {
    background: linear-gradient(45deg, #229954, #27ae60);
}

/* ====== Options Panel ====== */
.options-panel {
    background: #fff;
    border: 1.5px solid #e9ecef;
    border-radius: 13px;
    padding: 18px 19px 10px 19px;
    margin-bottom: 20px;
}
.options-title {
    font-size: 1.12em;
    font-weight: 600;
    color: #2980b9;
    margin-bottom: 11px;
}
.option-group .option-title {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 10px;
}
.checkbox-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
}
.checkbox-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 1em;
    background: #f4f5f7;
    border-radius: 7px;
    padding: 7px 12px;
    border: 1.5px solid #e9ecef;
    cursor: pointer;
    transition: all 0.15s;
}
.checkbox-item:hover {
    border-color: #2980b9;
}
.checkbox-item input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: #27ae60;
}

/* ========= EDITORS ========= */
.editor-section {
    display: flex;
    gap: 24px;
    margin: 26px 0 0 0;
    flex-wrap: wrap;
}
.editor-panel {
    flex: 1 1 350px;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1.5px solid #e9ecef;
    border-radius: 12px;
    padding: 0;
    min-width: 310px;
}
.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f7f8fb;
    border-radius: 12px 12px 0 0;
    padding: 13px 18px 11px 18px;
    border-bottom: 1.5px solid #e9ecef;
}
.editor-title {
    font-weight: 700;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 1.05em;
}
.editor-stats {
    font-size: 0.98em;
    color: #8395a7;
}
.editor-textarea {
    resize: vertical;
    min-height: 170px;
    font-family: 'Fira Mono', 'Consolas', 'Menlo', monospace;
    font-size: 1em;
    border: none;
    border-radius: 0 0 12px 12px;
    padding: 18px 14px;
    background: #f8f9fa;
    color: #2c3e50;
    outline: none;
    width: 100%;
    margin: 0;
    transition: background .19s;
}
.editor-textarea:focus {
    background: #edf6fa;
}

/* ========= CONTROLS ========= */
.controls {
    display: flex;
    gap: 16px;
    margin: 28px 0 20px 0;
    flex-wrap: wrap;
    justify-content: flex-start;
}
.btn {
    padding: 11px 22px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 1.06em;
}
.btn-primary {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
}
.btn-success {
    background: linear-gradient(45deg, #27ae60, #229954);
    color: white;
}
.btn-info {
    background: linear-gradient(45deg, #16a085, #117864);
    color: white;
}
.btn-secondary {
    background: linear-gradient(45deg, #f39c12, #e67e22);
    color: white;
}
.btn:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 3px 14px rgba(52, 152, 219, 0.12);
}

/* ========= STATS ========= */
.stats-panel {
    margin-top: 7px;
    margin-bottom: 15px;
}
.stats-grid {
    display: flex;
    gap: 22px;
    justify-content: flex-start;
    flex-wrap: wrap;
}
.stat-item {
    background: #f8f9fa;
    border: 1.5px solid #e9ecef;
    border-radius: 9px;
    padding: 14px 24px 11px 24px;
    min-width: 120px;
    text-align: center;
}
.stat-value {
    font-size: 1.15em;
    font-weight: 700;
    color: #229954;
}
.stat-label {
    color: #7b8bad;
    font-size: 0.97em;
    margin-top: 2px;
}

/* ========= EXEMPLES ========= */
.examples {
    margin-top: 30px;
    background: linear-gradient(45deg, #3498db, #2980b9);
    border-radius: 14px;
    padding: 22px 22px 16px 22px;
    color: #fff;
}
.examples-title {
    font-weight: 700;
    font-size: 1.13em;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.example-buttons {
    display: flex;
    gap: 13px;
    flex-wrap: wrap;
}
.example-btn {
    background: #fff;
    color: #2980b9;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 8px 17px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.16s;
}
.example-btn:hover {
    background: #ecf0f1;
    color: #1761a0;
}

/* ========= TOAST NOTIF ========= */
.toast {
    position: fixed;
    top: 24px;
    right: 28px;
    background: #27ae60;
    color: white;
    padding: 16px 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    transform: translateX(500px);
    transition: all 0.35s;
    z-index: 9999;
    font-size: 1.06em;
    font-weight: 600;
}
.toast.error {
    background: #e74c3c;
}
.toast.show {
    transform: translateX(0);
}

/* ========= CTA BOTTOM ========= */
.cta-security {
  margin: 50px 0 0 0;
  background: linear-gradient(90deg, #23c6fa 10%, #23315a 100%);
  color: #fff;
  box-shadow: 0 10px 32px rgba(35,49,90,0.09);
  padding: 0;
}
.cta-security-inner {
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 38px 36px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.cta-security-content {
  flex: 2;
}
.cta-security-content h2 {
  margin: 0 0 8px 0;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.cta-security-content p {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.5;
}
.cta-security-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.cta-btn.btn-accent {
  background: linear-gradient(90deg, #fd746c, #ff9068);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 18px 30px;
  box-shadow: 0 4px 16px rgba(253,116,108,0.12);
  text-decoration: none;
  transition: background .18s, box-shadow .18s, transform .14s;
  margin-left: 24px;
}
.cta-btn.btn-accent:hover {
  background: linear-gradient(90deg, #ff9068, #fd746c);
  color: #fff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 7px 24px rgba(253,116,108,0.23);
}

@media (max-width: 900px) {
    .editor-section { flex-direction: column; gap: 18px; }
    .examples { padding: 15px 9px 11px 9px; }
    .content { padding: 13px 6px 18px 6px; }
    .cta-security-inner { flex-direction: column; gap: 20px; text-align: center; }
    .cta-security-content h2 { font-size: 1.5rem; }
    .cta-security-content { width: 100%; }
    .cta-btn.btn-accent { margin: 18px 0 0 0; }
}
@media (max-width: 600px) {
    .page-header-content h1 { font-size: 1.3rem; }
    .controls { flex-direction: column; gap: 11px; }
    .editor-header, .editor-textarea { padding-left: 9px; padding-right: 9px; }
    .options-panel { padding: 10px 7px 8px 7px; }
    .stat-item { min-width: 80px; padding: 9px 10px; }
}

.tips-section {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    padding: 30px;
    margin-top: 30px;
    border-radius: 15px;
}

.tips-title {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tips-list {
    list-style: none;
}

.tips-list li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.tips-list li:before {
    content: "💡";
    position: absolute;
    left: 0;
}


