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

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: #f4f4f4;
}

#header {
    background-color: #7D7D7D;
    height: 80px;
    position: relative;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

#logo { position: absolute; left: 30px; }
#logo img { width: 100px; height: auto; }

#title h1 {
    margin: 0;
    color: #000000;
    font-size: 36px;
    font-weight: 700;
    text-align: center;
}

#menu-bar { background-color: #404041; padding: 0 20px; }
nav { display: flex; justify-content: center; }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; }
nav ul li { position: relative; margin: 0 15px; }
nav ul li a { color: white; text-decoration: none; padding: 10px 15px; display: block; font-size: 13px; font-weight: 500; }
nav ul li ul { display: none; position: absolute; top: 100%; left: 0; background-color: #404041; padding: 0; list-style: none; min-width: 200px; max-height: 300px; overflow-y: auto; z-index: 1000; }
nav ul li ul li a { padding: 10px; font-size: 12px; }
nav ul li:hover > ul { display: block; }
nav ul li ul li a:hover { background-color: #808285; }

section { max-width: 1200px; margin: 40px auto; padding: 0 20px; }

.top-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.top-section .top-text { flex: 1; min-width: 280px; }
.top-section .top-text h2 { color: #F38020; font-size: 32px; margin-bottom: 15px; }
.top-section .top-text p { color: #4A4F5C; font-size: 16px; margin-bottom: 10px; line-height: 1.6; }

.top-section .top-image { flex: 1; min-width: 280px; text-align: center; }
.top-section .top-image img { max-width: 100%; height: auto; }

.stats-row { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; margin-top: 40px; }
.stat-item { background: #ffffff; border-radius: 10px; padding: 20px; flex: 1; min-width: 200px; text-align: center; display: flex; flex-direction: column; justify-content: center; align-items: center; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.stat-item strong { display: block; font-size: 28px; color: #404041; margin-bottom: 8px; }
.stat-item span { font-size: 14px; color: #4A4F5C; line-height: 1.4; }

.categories-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.category-box {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}

.category-box h2 {
    color: #F38020;
    font-size: 24px;
    text-align: center;
    margin-bottom: 20px;
}

.product-card {
    background: #cfcfcf;
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.product-card h3 { margin: 0 0 5px 0; font-size: 16px; color: #404041; }
.product-card p { margin: 0; font-size: 16px; color: #4A4F5C; line-height: 1.6; }
.home-page .product-card p {font-size: 13px; color: #4A4F5C; line-height: 1.4; }

.code-block {
    display: flex;
    flex-wrap: wrap; 
    gap: 10px;
    margin-bottom: 15px;
    align-items: center;
}

.code-block pre {
    flex: 1 1 100%; 
    margin: 0;
    background: #404041;
    color: #ffffff;
    padding: 12px 15px;
    border-radius: 8px;
    line-height: normal;
    white-space: pre;
    overflow-x: auto;
    max-height: 500px;
}

.code-block button.copy-btn {
    flex: 0 1 auto; 
    padding: 8px 12px;
    border: 2px solid #404041;
    border-radius: 5px;
    background-color: white;
    cursor: pointer;
    align-self: flex-start;
}

button.send-btn { flex-shrink: 0; padding: 8px 12px; border: 2px solid #404041; border-radius: 5px; background-color: white; cursor: pointer; }
.category-box form select {width: 100%; padding: 12px 15px; font-size: 16px; border-radius: 6px; border: 1px solid #ccc; box-sizing: border-box; }

body:not(.home-page) .product-card p {font-size: 16px; line-height: 1.6; color: #4A4F5C; }

footer { text-align: center; padding: 20px 0; background-color: #404041; color: white; margin-top: 50px; font-size: 14px; }

@media (max-width: 1024px) { .categories-container { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
@media (max-width: 768px) { .top-section { flex-direction: column; text-align: center; } }

.tabbed-code {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #1e1e1e;
    color: #fff;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.tab-header {
    display: flex;
    border-bottom: 1px solid #333;
    margin-bottom: 8px;
}

.tab-header button {
    flex: 1;
    background: #2d2d2d;
    color: #fff;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: bold;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    transition: background 0.2s;
}

.tab-header button.active {
    background: #F38020;
}

.tab-content pre {
    margin: 0;
    overflow-x: auto;
    overflow-y: auto;
    white-space: pre;
    padding: 12px 15px 40px;
    border-radius: 6px;
    background: #2d2d2d;
    min-height: 30px;
    max-height: 100px;
}

.copy-btn {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    color: #555555;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    transition: background 0.2s;
}

.copy-btn:hover {
    background: #f5f5f5;
}

