/* --- Premium Telegram Admin Tools CSS --- */

.tools-glow-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.tools-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.12;
}
.tools-glow-1 {
    width: 500px;
    height: 500px;
    background: #00d4ff;
    top: 5%;
    left: -10%;
}
.tools-glow-2 {
    width: 450px;
    height: 450px;
    background: #20c997;
    bottom: 10%;
    right: -10%;
}

.tools-layout {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 20px 80px;
    position: relative;
    z-index: 1;
    color: white;
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
}

/* --- Sidebar Navigation --- */
.tool-sidebar {
    width: 280px;
    min-width: 280px;
    background: rgba(19, 19, 36, 0.45);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    height: fit-content;
    position: sticky;
    top: 100px;
    box-sizing: border-box;
}

.sidebar-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: white;
    margin: 0 0 15px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    gap: 8px;
}
.sidebar-title i {
    color: #00d4ff;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 14px;
    color: #a0aec0 !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.92rem;
    transition: all 0.3s;
}

.sidebar-item:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.03);
}

.sidebar-item.active {
    background: var(--grad-primary, linear-gradient(135deg, #0088cc, #20c997));
    color: white !important;
    box-shadow: 0 6px 15px rgba(0, 136, 204, 0.25);
}

.sidebar-item i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.sidebar-item.active i {
    color: white;
}

/* --- Workspace Area --- */
.tool-workspace {
    flex: 1;
    min-width: 0;
    background: rgba(19, 19, 36, 0.35);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
}

.tool-meta-header {
    margin-bottom: 35px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 20px;
}

.tool-meta-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 8px 0;
    color: white;
}

.tool-meta-header p {
    color: #a0aec0;
    font-size: 1rem;
    margin: 0;
    line-height: 1.5;
}

/* --- UI Controls & Forms --- */
.tool-group {
    margin-bottom: 24px;
}

.tool-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #64748b;
    margin-bottom: 8px;
}

.tool-input-text, .tool-textarea {
    width: 100%;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: white;
    font-size: 0.95rem;
    padding: 12px 16px;
    box-sizing: border-box;
    font-family: inherit;
    transition: all 0.3s;
}

.tool-input-text:focus, .tool-textarea:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
}

.tool-textarea {
    resize: vertical;
    min-height: 150px;
}

.tool-btn-primary {
    background: var(--grad-primary, linear-gradient(135deg, #0088cc, #20c997));
    color: white !important;
    border: none;
    border-radius: 12px;
    padding: 12px 28px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    box-shadow: 0 6px 15px rgba(0, 136, 204, 0.2);
}

.tool-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 136, 204, 0.35);
    filter: brightness(1.08);
}

.tool-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* --- Search Input Row --- */
.tool-search-row {
    display: flex;
    gap: 12px;
}
.tool-search-row .tool-input-text {
    flex: 1;
}

/* --- Result Cards --- */
.tool-result-panel {
    margin-top: 30px;
    animation: fadeIn 0.4s ease-out;
}

.tool-card-result {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    padding: 25px;
    box-sizing: border-box;
}

/* --- Spinner --- */
.tool-loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 40px;
    color: #a0aec0;
}
.tool-loading-spinner i {
    font-size: 2rem;
    color: #00d4ff;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Symmetrical Mobile responsive overrides --- */
@media (max-width: 992px) {
    .tools-layout {
        flex-direction: column;
        padding-top: 100px;
    }
    
    .tool-sidebar {
        width: 100%;
        min-width: 100%;
        position: static;
        flex-direction: row;
        overflow-x: auto;
        padding: 12px;
        border-radius: 16px;
    }
    
    .sidebar-title {
        display: none;
    }
    
    .sidebar-item {
        padding: 10px 14px;
        white-space: nowrap;
        border-radius: 10px;
        font-size: 0.85rem;
    }
    
    .tool-workspace {
        padding: 25px;
        border-radius: 16px;
    }
}

/* --- SEO Content & Expandable FAQ Accordion Styles --- */
.seo-content-section {
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 40px;
    font-family: 'Inter', sans-serif;
}

.seo-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.seo-text-p {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Cheatsheet Table */
.seo-table-wrapper {
    overflow-x: auto;
    margin-bottom: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.seo-cheatsheet-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(15, 23, 42, 0.3);
    color: #cbd5e1;
    font-size: 0.9rem;
    text-align: left;
}

.seo-cheatsheet-table th, .seo-cheatsheet-table td {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.seo-cheatsheet-table th {
    background: rgba(15, 23, 42, 0.6);
    color: white;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.seo-cheatsheet-table code {
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
    padding: 3px 8px;
    border-radius: 6px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
}

/* FAQ Accordion */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(0, 212, 255, 0.15);
    background: rgba(255, 255, 255, 0.03);
}

.faq-trigger {
    width: 100%;
    background: transparent;
    border: none;
    padding: 18px 22px;
    text-align: left;
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    outline: none;
}

.faq-trigger i {
    color: #00d4ff;
    transition: transform 0.3s ease;
    font-size: 0.85rem;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
    background: rgba(10, 10, 20, 0.2);
}

.faq-content-inner {
    padding: 0 22px 20px 22px;
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Active State Accordion */
.faq-item.active {
    border-color: rgba(0, 212, 255, 0.2);
    background: rgba(255, 255, 255, 0.03);
}

.faq-item.active .faq-trigger i {
    transform: rotate(180deg);
}

.faq-item.active .faq-content {
    max-height: 1000px;
    transition: max-height 0.3s cubic-bezier(1, 0, 1, 0);
}

