/**
 * Tools Ninja - Common Styles
 * This file contains all shared styles for consistent appearance across all pages
 */

/* Reset and Base */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f7fa;
    color: #2d3748;
    line-height: 1.6;
    min-height: 100vh;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

header {
    background: #ffffff;
    border-bottom: 2px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo svg {
    stroke: #667eea;
}

/* Navigation Menu */
nav {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    padding: 0;
    margin: 0;
}

.menu > li {
    position: relative;
}

.menu > li > a {
    display: block;
    padding: 1rem 1.5rem;
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.menu > li > a:hover {
    color: #667eea;
    background: #edf2f7;
    border-bottom-color: #667eea;
}

/* Dropdown Menu */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 250px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    border: 1px solid #e2e8f0;
    z-index: 1000;
}

.menu > li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #4a5568;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.dropdown a:hover {
    background: #f7fafc;
    color: #667eea;
    padding-left: 2rem;
}

/* ============================================
   MAIN CONTAINER & SECTIONS
   ============================================ */

.container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.header-section {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem 0;
}

.header-section h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.header-section p {
    color: #718096;
    font-size: 1.1rem;
}

/* ============================================
   CARDS & TOOL SECTIONS
   ============================================ */

.tool-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
}

.card-badge {
    padding: 0.25rem 0.75rem;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.url-input, .text-input, input[type="text"], input[type="url"], input[type="email"], input[type="number"] {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    transition: all 0.3s;
    color: #2d3748;
}

.url-input:focus, .text-input:focus, input[type="text"]:focus, input[type="url"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

textarea {
    width: 100%;
    min-height: 200px;
    padding: 1rem;
    font-size: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    font-family: 'Courier New', monospace;
    resize: vertical;
    color: #2d3748;
}

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

select {
    padding: 0.75rem 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    color: #2d3748;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
}

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

.format-hint {
    font-size: 0.85rem;
    color: #718096;
    margin-top: 0.5rem;
}

/* Options Group */
.options-group {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

/* ============================================
   BUTTONS
   ============================================ */

.button-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #667eea;
    border-radius: 8px;
    background: #ffffff;
    color: #667eea;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

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

.btn-primary {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

.btn-secondary {
    padding: 0.75rem 1.5rem;
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

.copy-btn {
    padding: 0.5rem 1rem;
    background: white;
    border: 2px solid #667eea;
    border-radius: 8px;
    color: #667eea;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

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

/* ============================================
   EXAMPLES & CHIPS
   ============================================ */

.examples {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.example-chip {
    padding: 0.5rem 1rem;
    background: #edf2f7;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s;
}

.example-chip:hover {
    background: #667eea;
    color: white;
}

/* ============================================
   LOADING & SPINNERS
   ============================================ */

.loading {
    display: none;
    text-align: center;
    padding: 2rem;
}

.loading.active {
    display: block;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   RESULTS & DISPLAY
   ============================================ */

.result-card {
    display: none;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.result-card.active {
    display: block;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.result-header-left {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.result-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.result-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #718096;
}

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

/* ============================================
   TABS
   ============================================ */

.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

.tab, .tab-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #718096;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.tab:hover, .tab.active, .tab-btn:hover, .tab-btn.active {
    background: #667eea;
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ============================================
   TABLES
   ============================================ */

.headers-table, table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.headers-table th, .headers-table td, table th, table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.headers-table th, table th {
    background: #f7fafc;
    font-weight: 600;
    color: #2d3748;
}

.headers-table td, table td {
    font-family: monospace;
    font-size: 0.9rem;
    word-break: break-all;
}

/* ============================================
   GRIDS
   ============================================ */

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

.security-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
}

.security-item.present {
    border-left: 4px solid #48bb78;
}

.security-item.missing {
    border-left: 4px solid #f56565;
}

/* ============================================
   ERROR & STATUS MESSAGES
   ============================================ */

.error-message {
    display: none;
    background: #fed7d7;
    border: 1px solid #fc8181;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    color: #c53030;
}

.error-message.active {
    display: block;
}

.success-message {
    background: #c6f6d5;
    border: 1px solid #68d391;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    color: #276749;
}

.warning-message {
    background: #fefcbf;
    border: 1px solid #f6e05e;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    color: #975a16;
}

/* ============================================
   INFO SECTION
   ============================================ */

.info-section {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
}

.info-section h2 {
    color: #667eea;
    margin-bottom: 1rem;
}

.info-section p {
    color: #4a5568;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.info-section ul {
    margin-left: 1.5rem;
    color: #4a5568;
}

.info-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* ============================================
   CODE BLOCKS
   ============================================ */

.code-section {
    margin-bottom: 1.5rem;
}

.code-label {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.code-block {
    position: relative;
    background: #1a202c;
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
}

.code-block pre {
    color: #e2e8f0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.code-block .copy-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* ============================================
   ADVERTISEMENTS
   ============================================ */

.ad-container {
    background: #ffffff;
    padding: 1rem;
    text-align: center;
    border-radius: 8px;
    margin: 1.5rem 0;
    border: 1px solid #e2e8f0;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background: #2d3748;
    color: white;
    padding: 2rem;
    margin-top: 3rem;
    text-align: center;
}

footer a {
    color: #a0aec0;
    text-decoration: none;
    margin: 0 1rem;
}

footer a:hover {
    color: #667eea;
}

/* ============================================
   TOOLBAR
   ============================================ */

.toolbar {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* ============================================
   EDITOR SECTIONS
   ============================================ */

.editor-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.editor-section {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.section-title {
    color: #667eea;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

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

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

    .menu {
        flex-direction: column;
    }

    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        display: none;
        border: none;
        border-top: 1px solid #e2e8f0;
    }

    .menu > li:hover .dropdown {
        display: block;
    }

    .header-section h1 {
        font-size: 1.8rem;
    }

    .toolbar {
        flex-direction: column;
    }

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

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

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.hidden { display: none; }
.visible { display: block; }

/* ============================================
   TOOLBAR ROW (botones en horizontal)
   ============================================ */

.toolbar-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.divider {
    width: 1px;
    height: 30px;
    background: #e2e8f0;
    margin: 0 0.5rem;
}

/* ============================================
   EDITOR LAYOUT (2 columnas con sidebar)
   ============================================ */

.editor-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 1024px) {
    .editor-layout {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   LINE NUMBERS & EDITOR
   ============================================ */

.line-numbers {
    padding: 1rem 0.75rem;
    background: #edf2f7;
    color: #a0aec0;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    text-align: right;
    user-select: none;
    border-right: 1px solid #e2e8f0;
    min-width: 40px;
    white-space: pre-line;
    overflow: hidden;
}

.editor {
    flex: 1;
    min-height: 400px;
    padding: 1rem;
    border: none;
    background: transparent;
    color: #2d3748;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    outline: none;
}

.editor.success {
    background: rgba(72, 187, 120, 0.1);
}

.editor.error {
    background: rgba(245, 101, 101, 0.1);
}

/* ============================================
   STATS BAR
   ============================================ */

.stats-bar {
    display: flex;
    gap: 1.5rem;
    padding: 0.75rem 1rem;
    background: #f7fafc;
    border-top: 1px solid #e2e8f0;
    font-size: 0.85rem;
    color: #718096;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-value {
    font-weight: 600;
    color: #4a5568;
}

/* ============================================
   VALIDATION SECTION
   ============================================ */

.validation-section {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    display: none;
}

.validation-section.show {
    display: block;
}

.validation-section.success {
    background: #f0fff4;
    border-color: #68d391;
}

.validation-section.error {
    background: #fff5f5;
    border-color: #fc8181;
}

.validation-header {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.validation-section.success .validation-header {
    color: #276749;
}

.validation-section.error .validation-header {
    color: #c53030;
}

.validation-message {
    font-size: 0.9rem;
    white-space: pre-wrap;
    color: #4a5568;
}

/* ============================================
   SIDEBAR & INFO BOXES
   ============================================ */

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-box {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
}

.info-box h3 {
    color: #667eea;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.info-box p {
    color: #4a5568;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

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

.info-list li {
    padding: 0.5rem 0;
    color: #4a5568;
    font-size: 0.9rem;
    border-bottom: 1px solid #f0f0f0;
}

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

/* ============================================
   BUTTON VARIANTS
   ============================================ */

.btn-warning {
    background: #f6e05e;
    border-color: #ecc94b;
    color: #744210;
}

.btn-warning:hover {
    background: #ecc94b;
    color: #744210;
}

.btn-danger {
    background: #fff;
    border-color: #fc8181;
    color: #c53030;
}

.btn-danger:hover {
    background: #fc8181;
    color: #fff;
}

.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 6px;
    background: #667eea;
    color: white;
    border: none;
    cursor: pointer;
    margin-right: 0.5rem;
    margin-top: 0.5rem;
}

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

/* ============================================
   TREE VIEW
   ============================================ */

.tree-view {
    background: #1a202c;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    overflow-x: auto;
    white-space: pre;
}

.tree-key { color: #90cdf4; }
.tree-string { color: #68d391; }
.tree-number { color: #f6ad55; }
.tree-boolean { color: #fc8181; }
.tree-null { color: #a0aec0; }

/* ============================================
   ERROR DISPLAY
   ============================================ */

.error-location {
    background: #2d3748;
    color: #fc8181;
    padding: 0.75rem;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    white-space: pre;
    overflow-x: auto;
}

.error-actions {
    margin-top: 0.75rem;
}

/* ============================================
   RESULT ITEMS (para mostrar resultados)
   ============================================ */

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

.result-label {
    font-weight: 500;
    color: #4a5568;
}

.result-value {
    font-weight: 600;
    color: #2d3748;
    font-family: monospace;
}

.result-box {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

/* ============================================
   STAT CARDS (tarjetas de estadísticas)
   ============================================ */

.stat-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.stat-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.85rem;
    color: #718096;
    margin-top: 0.25rem;
}

/* ============================================
   INFO ITEMS (elementos de información)
   ============================================ */

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 500;
    color: #4a5568;
}

.info-value {
    font-weight: 600;
    color: #2d3748;
}

/* ============================================
   DETAIL ROWS (filas de detalle)
   ============================================ */

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.detail-label {
    color: #718096;
    font-size: 0.9rem;
}

.detail-value {
    font-weight: 600;
    color: #2d3748;
}

/* ============================================
   TAB BUTTONS
   ============================================ */

.tab-button {
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #718096;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-button:hover, .tab-button.active {
    background: #667eea;
    color: white;
}

/* ============================================
   FORM GROUPS
   ============================================ */

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

.form-group label {
    display: block;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

/* ============================================
   TOOL SECTION
   ============================================ */

.tool-section {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* ============================================
   DROPDOWN ITEMS (para menús dropdown)
   ============================================ */

.dropdown-item {
    display: block;
    padding: 0.5rem 1rem;
    color: #4a5568;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
    cursor: pointer;
}

.dropdown-item:hover {
    background: #f7fafc;
    color: #667eea;
}

.dropdown-section {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.dropdown-section:last-child {
    border-bottom: none;
}

.dropdown-section-title {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   NO RESULTS
   ============================================ */

.no-results {
    text-align: center;
    padding: 2rem;
    color: #718096;
}

/* ============================================
   TOOLBAR BUTTONS
   ============================================ */

.toolbar-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    color: #4a5568;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.toolbar-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.toolbar-btn.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

/* ============================================
   PORT/TAG CHIPS
   ============================================ */

.port-chip {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #edf2f7;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #4a5568;
    margin: 0.25rem;
    cursor: pointer;
    transition: all 0.3s;
}

.port-chip:hover {
    background: #667eea;
    color: white;
}

.port-chip.active {
    background: #667eea;
    color: white;
}

/* ============================================
   STATS GRID
   ============================================ */

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

/* ============================================
   OPTIONS GRID
   ============================================ */

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.option-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.option-item label {
    font-weight: 600;
    color: #4a5568;
    font-size: 0.9rem;
}

/* ============================================
   QUICK TARGETS / CHIPS
   ============================================ */

.quick-targets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.quick-target {
    padding: 0.5rem 1rem;
    background: #edf2f7;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s;
}

.quick-target:hover {
    background: #667eea;
    color: white;
}

/* ============================================
   INPUT SECTION
   ============================================ */

.input-section {
    margin-bottom: 1.5rem;
}

.input-field {
    flex: 1;
    min-width: 250px;
    padding: 1rem 1.25rem;
    font-size: 1.1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    transition: all 0.3s;
}

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

/* ============================================
   PING/RESULTS LIST
   ============================================ */

.pings-list {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
}

.pings-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.ping-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    font-family: monospace;
    font-size: 0.9rem;
}

.ping-item.timeout {
    border-left: 3px solid #f56565;
    color: #c53030;
}

.ping-info {
    display: flex;
    gap: 1rem;
}

.ping-seq {
    color: #667eea;
    font-weight: 600;
}

.ping-time {
    color: #718096;
}

.ping-latency {
    font-weight: 600;
    color: #667eea;
}

.ping-latency.timeout {
    color: #f56565;
}

/* ============================================
   CHART CONTAINER
   ============================================ */

.chart-container {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.chart-title {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
}

.chart-canvas {
    width: 100%;
    max-height: 300px;
}

/* ============================================
   CLEAR BUTTON
   ============================================ */

.clear-btn {
    padding: 0.5rem 1rem;
    background: #edf2f7;
    border: none;
    border-radius: 6px;
    color: #4a5568;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
}

.clear-btn:hover {
    background: #e2e8f0;
}

/* ============================================
   SECTION HEADER
   ============================================ */

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

/* ============================================
   PRIMARY BUTTON (ping, action buttons)
   ============================================ */

.ping-button {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.ping-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.ping-button.running, .ping-button.stop {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
}

/* ============================================
   RESULTS SECTION
   ============================================ */

.results-section {
    margin-top: 2rem;
}
