/* Developer Tools Styles - Professional & Minimal */

:root {
    --sidebar-width: 280px;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --bg-dark: #1e293b;
    --bg-darker: #0f172a;
    --border-color: #e5e7eb;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --success: #10b981;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-main);
    background: #ffffff;
    margin: 0;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    max-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: #ffffff;
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.sidebar-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    background: #f9fafb;
    position: sticky;
    top: 0;
    z-index: 10;
    flex-shrink: 0;
}

.brand-icon {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: white;
}

.brand-title {
    font-weight: 700;
    font-size: 0.875rem;
    color: #111827;
    line-height: 1.2;
}

.brand-subtitle {
    font-size: 0.6875rem;
    color: var(--text-muted);
}

.sidebar-nav {
    padding: 0.5rem 0;
    flex: 1;
    overflow-y: auto;
}

.sidebar-section-label {
    padding: 0.5rem 1rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: 5;
}

.sidebar .nav-link {
    color: var(--text-main);
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    border-radius: 0;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0.5rem;
    border-radius: 6px;
}

.sidebar .nav-link:hover {
    background: #f3f4f6;
    color: #111827;
}

.sidebar .nav-link.active {
    background: #eff6ff;
    color: var(--primary);
    font-weight: 600;
}

.sidebar .nav-link i {
    width: 18px;
    text-align: center;
    font-size: 0.875rem;
}

.sidebar .badge {
    font-size: 0.625rem;
    padding: 0.125rem 0.375rem;
    font-weight: 600;
    margin-left: auto;
}

.sidebar-footer {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border-color);
    background: #f9fafb;
    font-size: 0.75rem;
    color: var(--text-muted);
    position: sticky;
    bottom: 0;
    flex-shrink: 0;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    width: calc(100% - var(--sidebar-width));
    background: #ffffff;
}

/* ===== PAGE HEADER ===== */
.tool-page-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
}

.tool-page-header h1 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: #111827;
}

.tool-page-header .subtitle {
    font-size: 0.8125rem;
    margin-top: 0.25rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* ===== CARDS ===== */
.card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
}

.card-header {
    background: #f9fafb;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 0.8125rem;
    padding: 0.75rem 1rem;
    color: #374151;
}

.card-body {
    padding: 1rem;
}

/* ===== FORMS ===== */
.form-control,
.form-select {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    transition: border-color 0.15s ease;
    background: #ffffff;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.05);
    background: #ffffff;
}

.form-control::placeholder {
    color: #9ca3af;
}

label,
.form-label {
    font-weight: 500;
    font-size: 0.75rem;
    color: #374151;
    margin-bottom: 0.25rem;
}

/* ===== BUTTONS ===== */
.btn-tool {
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    transition: all 0.15s ease;
    border: 1px solid transparent;
}

.btn-tool-primary {
    background: var(--primary);
    color: white;
}

.btn-tool-primary:hover {
    background: var(--primary-hover);
    color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-tool-outline {
    background: white;
    border: 1px solid #d1d5db;
    color: #374151;
}

.btn-tool-outline:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: #111827;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* ===== OUTPUT AREAS ===== */
.tool-output {
    background: #1e293b;
    color: #e2e8f0;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.75rem;
    font-family: 'JetBrains Mono', 'SF Mono', 'Consolas', monospace;
    font-size: 0.75rem;
    line-height: 1.5;
    overflow: auto;
}

.tool-output pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* ===== TOOL CARDS (INDEX) ===== */
.tool-card {
    height: 100%;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.2s ease;
    background: #ffffff;
}

.tool-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
}

.tool-icon {
    width: 36px;
    height: 36px;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    color: var(--primary);
}

/* ===== BADGES ===== */
.badge-popular {
    background: var(--warning);
    color: white;
    font-size: 0.625rem;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-weight: 600;
}

.badge-category {
    background: #f3f4f6;
    color: #6b7280;
    font-size: 0.6875rem;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

/* ===== FEATURE ITEMS ===== */
.feature-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    background: #f9fafb;
    border: 1px solid var(--border-color);
}

.feature-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

/* ===== TABS ===== */
.nav-tabs {
    border-bottom: 1px solid var(--border-color);
}

.nav-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.15s ease;
}

.nav-tabs .nav-link:hover {
    color: var(--primary);
}

.nav-tabs .nav-link.active {
    color: var(--primary);
    background: transparent;
    border-bottom-color: var(--primary);
}

/* ===== UTILITIES ===== */
code {
    font-family: 'JetBrains Mono', 'SF Mono', 'Consolas', monospace;
    font-size: 0.8em;
    padding: 0.125rem 0.25rem;
    background: #f3f4f6;
    border-radius: 3px;
    color: #374151;
}

pre code {
    padding: 0;
    background: transparent;
    color: inherit;
}

.word-break {
    word-break: break-all;
}

.text-small {
    font-size: 0.8125rem;
}

/* ===== ALERTS ===== */
.alert {
    border-radius: 6px;
    font-size: 0.8125rem;
    border: none;
}

.alert-danger {
    background: #fef2f2;
    color: #991b1b;
}

.alert-success {
    background: #f0fdf4;
    color: #166534;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.2s ease-out;
}

/* ===== ADVERTISEMENT SLOTS ===== */
.ad-slot {
    background: #f9fafb;
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    margin: 1rem 0;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-slot-top {
    width: 100%;
    max-width: 728px;
    height: 90px;
    margin: 0 auto 1.5rem;
}

.ad-slot-sidebar {
    width: 100%;
    max-width: 300px;
    min-height: 250px;
    margin: 1rem auto;
}

.ad-slot-content {
    width: 100%;
    max-width: 728px;
    height: 90px;
    margin: 2rem auto;
}

.ad-slot-below {
    width: 100%;
    max-width: 728px;
    height: 90px;
    margin: 2rem auto 0;
}

.ad-label {
    font-size: 0.625rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

/* ===== SEO CONTENT SECTIONS ===== */
.seo-content {
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
}

.seo-content h2 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #111827;
}

.seo-content h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #374151;
}

.seo-content p {
    font-size: 0.875rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    color: #4b5563;
}

.seo-content ul,
.seo-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.seo-content li {
    font-size: 0.875rem;
    line-height: 1.7;
    margin-bottom: 0.5rem;
    color: #4b5563;
}

.seo-content code {
    background: #f3f4f6;
    padding: 0.125rem 0.375rem;
    border-radius: 3px;
    font-size: 0.8125rem;
}

.seo-content pre {
    background: #f9fafb;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1rem;
    overflow-x: auto;
    margin: 1rem 0;
}

.seo-content pre code {
    background: transparent;
    padding: 0;
}

/* ===== FAQ SECTION ===== */
.faq-section {
    background: #f9fafb;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.faq-section h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #111827;
}

.faq-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-question {
    font-weight: 600;
    font-size: 0.875rem;
    color: #374151;
    margin-bottom: 0.5rem;
}

.faq-answer {
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.6;
}

/* ===== RELATED TOOLS ===== */
.related-tools {
    margin-top: 2rem;
}

.related-tools h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #111827;
}

.related-tool-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    margin-bottom: 0.5rem;
    transition: all 0.15s ease;
    text-decoration: none;
    color: inherit;
}

.related-tool-item:hover {
    background: #f9fafb;
    border-color: var(--primary);
}

.related-tool-icon {
    width: 32px;
    height: 32px;
    background: #eff6ff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    color: var(--primary);
}

.related-tool-info h4 {
    font-size: 0.8125rem;
    font-weight: 600;
    margin: 0;
    color: #111827;
}

.related-tool-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
}

.breadcrumb-item a {
    color: var(--text-muted);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--primary);
}

.breadcrumb-item.active {
    color: var(--text-muted);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--text-muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        position: relative;
        height: auto;
        max-height: none;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .tool-page-header {
        padding: 0.75rem 1rem;
    }

    .tool-page-header h1 {
        font-size: 1.125rem;
    }

    .ad-slot-top,
    .ad-slot-content,
    .ad-slot-below {
        max-width: 320px;
        height: 50px;
    }

    .ad-slot-sidebar {
        display: none;
    }
}

/* ===== CONTAINER ===== */
.container-fluid {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* ===== INPUT GROUP ===== */
.input-group-text {
    background: #f9fafb;
    border: 1px solid #d1d5db;
    color: #6b7280;
    font-size: 0.8125rem;
}

/* ===== TEXTAREA ===== */
textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

/* ===== CODE HIGHLIGHT ===== */
.text-success {
    color: #10b981 !important;
}

.text-primary {
    color: var(--primary) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* ===== CUSTOM SCROLLBAR FOR MAIN CONTENT ===== */
.main-content::-webkit-scrollbar {
    width: 6px;
}

.main-content::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.main-content::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.main-content::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}
