/* Reset i osnovni stilovi */
* {
    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: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header stilovi */
.main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.main-header h1 {
    color: #2c3e50;
    font-size: 1.8rem;
}

/* Navigacija - Flexbox */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex-wrap: wrap;
}

.main-nav a {
    text-decoration: none;
    color: #34495e;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.main-nav a:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
}

/* Main content */
.main-content {
    flex: 1;
    padding: 2rem 0;
}

/* Hero sekcija */
.hero-section {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.hero-section h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.2rem;
    color: #7f8c8d;
    max-width: 800px;
    margin: 0 auto;
}

/* Features grid - Flexbox */
.features-grid {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.feature-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.feature-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-card p {
    color: #7f8c8d;
    margin-bottom: 1.5rem;
}

/* Gumbovi */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}

.btn-primary {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
}

/* Page header */
.page-header {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.page-header h2 {
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.page-header p {
    color: #7f8c8d;
    font-size: 1.1rem;
}

/* Calculator sekcija */
.calculator-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* Forma - Flexbox */
.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select {
    padding: 12px 15px;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
}

.checkbox-group {
    flex-direction: row !important;
    align-items: center;
}

.checkbox-group label {
    margin-bottom: 0;
    margin-left: 0.5rem;
    cursor: pointer;
}

/* Results sekcija */
.results-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #ecf0f1;
}

.results-section h3 {
    color: #2c3e50;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.5rem;
}

.results-category {
    margin-bottom: 2rem;
}

.results-category h4 {
    color: #34495e;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* Results grid - Flexbox */
.results-grid {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.result-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    border-left: 4px solid #95a5a6;
    transition: transform 0.2s ease;
    flex: 1;
    min-width: 200px;
}

.result-card:hover {
    transform: translateY(-2px);
}

.result-card h4,
.result-card h5 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.amount {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.result-card.positive {
    border-left-color: #27ae60;
    background: #d5f4e6;
}

.result-card.positive .amount {
    color: #27ae60;
}

.result-card.negative {
    border-left-color: #e74c3c;
    background: #faddd7;
}

.result-card.negative .amount {
    color: #e74c3c;
}

.result-card.large {
    flex-basis: 100%;
}

.result-card.large .amount {
    font-size: 2.5rem;
}

.result-card small {
    color: #7f8c8d;
    font-size: 0.8rem;
}

/* Info box */
.info-box {
    background: #e8f4f8;
    border: 1px solid #d6eaf8;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.info-box.positive {
    background: #d5f4e6;
    border-color: #a9dfbf;
}

.info-box h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.info-box ul {
    margin-left: 1.5rem;
}

.info-box li {
    margin-bottom: 0.5rem;
    color: #34495e;
}

/* Footer */
.main-footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-info h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.footer-info p,
.footer-author p {
    color: #7f8c8d;
}

/* Responsive dizajn */
@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-nav ul {
        justify-content: center;
        gap: 1rem;
    }
    
    .hero-section {
        padding: 2rem 1rem;
    }
    
    .hero-section h2 {
        font-size: 2rem;
    }
    
    .features-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .feature-card {
        max-width: 100%;
    }
    
    .results-grid {
        flex-direction: column;
    }
    
    .result-card {
        min-width: auto;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .calculator-form {
        padding: 1rem;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .hero-section h2 {
        font-size: 1.5rem;
    }
    
    .page-header h2 {
        font-size: 1.8rem;
    }
    
    .amount {
        font-size: 1.2rem;
    }
    
    .result-card.large .amount {
        font-size: 2rem;
    }
}

/* Animacije */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.results-section {
    animation: fadeIn 0.5s ease-out;
}

/* Dodatne utility klase */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
