/* ===== Global Styles ===== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: #f4f6f8;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

a:hover {
    color: #00c6ff;
}

/* ===== Header / Navigation ===== */
header {
    background: linear-gradient(90deg, #159957, #155799);
    padding: 15px 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

header nav a {
    color: white;
    font-weight: 500;
    padding: 5px 0;
}

header nav a:hover {
    text-decoration: underline;
}

/* ===== Main Content ===== */
.main-content {
    max-width: 1200px;
    margin: 20px auto;
    padding: 25px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 8px;
}

h1, h2, h3 {
    color: #222;
    margin-top: 1.5em;
}

p {
    line-height: 1.6;
    margin: 0.8em 0;
}

/* ===== Code & Preformatted Blocks ===== */
code, pre {
    background: #f1f1f1;
    color: #111;
    font-family: 'Courier New', Courier, monospace;
    padding: 3px 5px;
    border-radius: 4px;
    font-size: 0.95rem;
}

pre {
    padding: 10px;
    overflow-x: auto;
}

/* ===== Tables ===== */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
}

th, td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

th {
    background: #159957;
    color: white;
}

tr:nth-child(even) {
    background: #f9f9f9;
}

/* ===== Buttons (Optional for Docs) ===== */
button {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    background: #159957;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

button:hover {
    background: #155799;
    transform: translateY(-1px);
}

/* ===== Images ===== */
img {
    max-width: 100%;
    border-radius: 6px;
    margin: 10px 0;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    header nav {
        flex-direction: column;
        gap: 10px;
    }

    .main-content {
        margin: 15px;
        padding: 20px;
    }
}
