* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.sadrzaj {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.zaglavlje {
    background: #2c5045;
    color: #ecf0f1;
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

.zaglavlje h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.opis {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    color: #bdc3c7;
}

.izbornik {
    background-color: #203a32;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.izbornik ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 2rem;
}

.izbornik a {
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.izbornik a:hover {
    color: #487652;
}

.glavno {
    padding: 2rem 0;
}

.dio {
    margin-bottom: 3rem;
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.dio h2 {
    color: #3e6d5b;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #326452;
}

.lista {
    list-style-type: none;
    margin: 1.5rem 0;
}

.lista li {
    background-color: #f8f9fa;
    margin-bottom: 0.8rem;
    padding: 1rem;
    border-left: 4px solid #3a8765;
    border-radius: 0 4px 4px 0;
}

.kod {
    background-color: #f1f3f4;
    border-radius: 6px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    overflow-x: auto;
}

.kod h3 {
    margin-bottom: 1rem;
    color: #1c4d40;
}

pre {
    white-space: pre-wrap;
    word-wrap: break-word;
}

code {
    font-family: 'Courier New', Courier, monospace;
    color: #e74c3c;
}

.tipka {
    display: inline-block;
    background-color: #316949;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.tipka:hover {
    background-color: #33855e;
}

.linkovi {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.linkovi a {
    color: #2a7046;
    text-decoration: none;
    transition: color 0.3s;
}

.linkovi a:hover {
    color: #1f5b44;
    text-decoration: underline;
}

.podnozje {
    background: #2c5045;
    color: #ecf0f1;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .izbornik ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .zaglavlje h1 {
        font-size: 2rem;
    }
    
    .opis {
        font-size: 1rem;
    }
}