/* ========================================
   Kalkulatori Srbija - Main Stylesheet
   Matching exact design from provided screenshots
======================================== */

:root {
    /* Primary Colors - Green theme from screenshots */
    --primary-green: #2E7D32;
    --primary-green-light: #4CAF50;
    --primary-green-dark: #1B5E20;
    
    /* Accent Colors - Pink & Blue from pregnancy calculator */
    --accent-pink: #FFB6C1;
    --accent-pink-light: #FFE4E9;
    --accent-blue: #B3D9FF;
    --accent-blue-light: #E3F2FD;
    
    /* Background Colors */
    --bg-cream: #FFF8F0;
    --bg-white: #FFFFFF;
    --bg-light-pink: #FFF0F5;
    --bg-light-blue: #F0F8FF;
    
    /* Text Colors */
    --text-dark: #1A1A1A;
    --text-medium: #4A4A4A;
    --text-light: #757575;
    
    /* UI Elements */
    --border-color: #E0E0E0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --border-radius: 12px;
    --border-radius-lg: 20px;
    
    /* Footer */
    --footer-bg: #1a1a1a;
    --footer-text: #cccccc;
}

/* ========================================
   Reset & Base Styles
======================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--bg-light-pink) 0%, var(--bg-light-blue) 100%);
    min-height: 100vh;
}

body.pregnancy-page {
    background: linear-gradient(135deg, #FFE4E9 0%, #E3F2FD 100%);
}

body.vehicle-page {
    background: linear-gradient(135deg, #F0F8FF 0%, #E8F5E9 100%);
}

body.vat-page {
    background: linear-gradient(135deg, #FFF8F0 0%, #E3F2FD 100%);
}

body.zodiac-page {
    background: linear-gradient(135deg, #FFF8E1 0%, #E8EAF6 100%);
}

/* ========================================
   Typography
======================================== */

h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    margin-bottom: 1rem;
    font-weight: 600;
}

h1 {
    font-size: 2.5rem;
    color: var(--text-dark);
}

h2 {
    font-size: 2rem;
    color: var(--text-dark);
}

h3 {
    font-size: 1.5rem;
    color: var(--primary-green-dark);
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-green);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-green-dark);
}

/* ========================================
   Header & Navigation
======================================== */

.header {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: white;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.nav-link {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: white;
}

.nav-link.active {
    background: white;
    color: var(--primary-green);
    font-weight: 600;
}

.lang-switch {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
    margin-left: 1rem;
}

.lang-switch:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ========================================
   Main Container
======================================== */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.container-small {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* ========================================
   Hero Section
======================================== */

.hero {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInUp 0.6s ease;
}

.hero h1 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero .subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ========================================
   Card Components
======================================== */

.card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease;
}

.card h2 {
    color: var(--text-dark);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.card h3 {
    color: var(--primary-green);
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.card-header {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

/* ========================================
   Form Elements
======================================== */

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--bg-white);
    color: var(--text-dark);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.1);
}

.form-control::placeholder {
    color: #aaa;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* ========================================
   Tabs
======================================== */

.tab-buttons {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: var(--text-medium);
    font-size: 1rem;
    position: relative;
    bottom: -2px;
}

.tab-btn:hover {
    color: var(--primary-green);
}

.tab-btn.active {
    color: var(--primary-green);
    border-bottom-color: var(--primary-green);
    font-weight: 600;
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

/* ========================================
   Buttons
======================================== */

.btn {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #4169E1 0%, #1E3A8A 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(65, 105, 225, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(65, 105, 225, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* ========================================
   Results Display
======================================== */

.result-card {
    background: linear-gradient(135deg, var(--accent-pink-light) 0%, var(--accent-blue-light) 100%);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    margin-top: 2rem;
    display: none;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.result-card.show {
    display: block;
    animation: slideInUp 0.5s ease;
}

.result-card h3 {
    color: var(--primary-green-dark);
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--border-radius);
    margin-bottom: 0.75rem;
    backdrop-filter: blur(10px);
}

.result-label {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 1rem;
}

.result-value {
    font-weight: 700;
    color: var(--primary-green-dark);
    font-size: 1.2rem;
}

/* Progress Bar */
.progress-bar-container {
    width: 100%;
    margin: 1.5rem 0;
}

.progress-bar {
    width: 100%;
    height: 30px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
    transition: width 0.8s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 1rem;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
}

/* ========================================
   Tables
======================================== */

.table-responsive {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

thead {
    background: var(--primary-green);
    color: white;
}

th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

tbody tr:hover {
    background: var(--accent-blue-light);
}

tbody tr:last-child td {
    border-bottom: none;
}

/* ========================================
   Info Sections
======================================== */

.info-section {
    background: #F0F7F0;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    margin: 2rem 0;
    border-left: 4px solid var(--primary-green);
}

.info-section h3 {
    color: var(--primary-green-dark);
    margin-top: 0;
}

.info-section ul {
    list-style: none;
    padding-left: 0;
}

.info-section li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    line-height: 1.6;
}

.info-section li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-green);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Alert Messages */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin: 1rem 0;
    border-left: 4px solid;
}

.alert-info {
    background: #E3F2FD;
    border-color: #2196F3;
    color: #0D47A1;
}

.alert-warning {
    background: #FFF3E0;
    border-color: #FF9800;
    color: #E65100;
}

.alert-success {
    background: #E8F5E9;
    border-color: #4CAF50;
    color: #1B5E20;
}

/* ========================================
   Content Sections (SEO)
======================================== */

.content-section {
    margin: 3rem 0;
}

.content-section h2 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary-green);
    display: inline-block;
}

.content-section h3 {
    color: var(--primary-green);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-section p {
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.content-section ul, .content-section ol {
    color: var(--text-medium);
    line-height: 1.8;
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

/* ========================================
   Footer
======================================== */

.footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 3rem 2rem 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-section h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-green-light);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: var(--footer-text);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-section a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-about p {
    line-height: 1.8;
    margin-bottom: 1rem;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #999;
}

/* ========================================
   Animations
======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Responsive Design
======================================== */

@media (max-width: 1024px) {
    .container {
        padding: 2rem 1.5rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .main-nav {
        display: none;
        width: 100%;
        flex-direction: column;
    }
    
    .main-nav.active {
        display: flex;
    }
    
    .nav-link {
        width: 100%;
        text-align: center;
    }
    
    .mobile-menu-toggle {
        display: block;
        position: absolute;
        right: 2rem;
        top: 1.5rem;
    }
    
    .lang-switch {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero .subtitle {
        font-size: 1rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .result-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .card h2 {
        font-size: 1.5rem;
    }
    
    table {
        font-size: 0.9rem;
    }
    
    th, td {
        padding: 0.75rem 0.5rem;
    }
}

/* ========================================
   Utility Classes
======================================== */

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden {
    display: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}