@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input {
    font-family: inherit;
    outline: none;
}

/* Layout Wrapper */
.app-container {
    display: flex;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: var(--container-padding);
    padding-bottom: calc(var(--container-padding) + 70px);
    transition: margin-left var(--transition-normal);
}

/* Typography Utility */
.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }
.font-bold { font-weight: 600; }

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: var(--color-primary);
}

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

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0);   opacity: 0.4; }
    30%            { transform: translateY(-5px); opacity: 1;   }
}

/* Tool Results Styling */
.tool-result-card {
    background: rgba(30, 34, 42, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 16px;
    padding: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.tool-result-card:hover {
    border-color: rgba(0, 194, 146, 0.2) !important;
    background: rgba(30, 34, 42, 0.8) !important;
    transform: translateY(-2px);
}

.tool-textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 12px;
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.6;
    padding: 12px;
    resize: none;
    outline: none;
    font-family: 'Inter', monospace;
}

.tool-textarea:focus {
    border-color: rgba(0, 194, 146, 0.3) !important;
}

/* ── Extension Page ─────────────────────────────────── */
.ext-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
    animation: fadeIn 0.35s ease-out;
}

.ext-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 32px 36px;
}

.ext-hero-icon {
    width: 80px;
    height: 80px;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #009970 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 36px rgba(0, 194, 146, 0.4);
    margin-bottom: 22px;
}

.ext-hero-title {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px;
}

.ext-hero-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 0 28px;
}

.ext-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--color-primary);
    color: #000;
    font-size: 15px;
    font-weight: 800;
    padding: 14px 34px;
    border-radius: 14px;
    text-decoration: none;
    box-shadow: 0 8px 28px rgba(0, 194, 146, 0.35);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
    margin-bottom: 18px;
}

.ext-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(0, 194, 146, 0.5);
    filter: brightness(1.06);
}

.ext-browsers {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--text-muted);
}

.ext-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 800px) {
    .ext-grid { grid-template-columns: 1fr; }
}

.ext-steps {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ext-step {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.ext-step-num {
    min-width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 194, 146, 0.12);
    border: 1px solid rgba(0, 194, 146, 0.3);
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.ext-step-body {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.65;
}

.ext-step-body b {
    color: #fff;
    font-weight: 700;
}

.ext-code {
    color: var(--color-primary);
    background: rgba(0, 194, 146, 0.1);
    padding: 2px 7px;
    border-radius: 5px;
    font-family: monospace;
    font-size: 12px;
}

.ext-steps-card,
.ext-key-card {
    height: fit-content;
}
