:root {
    --primary: #00AA44;
    --primary-dark: #008833;
    --stone-bg: linear-gradient(135deg, #e8e8e8 0%, #d4d4d4 100%);
    --card-bg: rgba(255, 255, 255, 0.95);
    --text-dark: #1a1a1a;
    --text-light: #666;
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.2);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--stone-bg);
    min-height: 100vh;
    color: var(--text-dark);
    line-height: 1.5;
    display: flex;
    flex-direction: column;
}

/* Header - kompakten z logotipom */
.header-main {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    box-shadow: var(--shadow);
    border-bottom: 3px solid var(--primary);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-header {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-header img {
    height: 40px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.nav-menu {
    display: flex;
    gap: 20px;
    list-style: none;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 5px 10px;
    border-radius: 20px;
    transition: all 0.3s;
}

.nav-menu a:hover {
    background: var(--primary);
    color: white;
}

/* Main container */
.main-container {
    flex: 1;
    max-width: 800px;
    width: 100%;
    margin: 20px auto;
    padding: 0 15px;
}

/* Kartice - enoten dizajn za vse strani */
.card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 25px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.card-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.card-header h1, .card-header h2 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.subtitle {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Gumbi */
.btn-primary {
    display: inline-block;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    text-align: center;
    margin: 5px 0;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 170, 68, 0.3);
}

.btn-secondary {
    display: inline-block;
    width: 100%;
    padding: 12px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    text-align: center;
    margin: 5px 0;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

/* Forme */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 170, 68, 0.1);
}

/* Sporočila */
.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    border-left: 4px solid #dc3545;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    border-left: 4px solid #28a745;
}

/* Index stran - hero */
.hero-simple {
    text-align: center;
    padding: 20px 0;
}

.hero-logo-lg {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.2));
}

.button-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

/* Tabela rezultatov */
.table-wrapper {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin: 15px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background: #f8f9fa;
    font-weight: 700;
    color: var(--text-dark);
    position: sticky;
    top: 0;
}

tr:hover {
    background: #f8f9fa;
}

.zmagal-yes {
    color: var(--primary);
    font-weight: 700;
}

.zmagal-no {
    color: #dc3545;
    font-weight: 700;
}

/* Footer */
.footer-main {
    background: var(--text-dark);
    color: #aaa;
    text-align: center;
    padding: 15px;
    font-size: 0.8rem;
    margin-top: auto;
}

/* Mobilne prilagoditve */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-menu {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-menu a {
        font-size: 0.8rem;
        padding: 5px 8px;
    }
    
    .logo-header img {
        height: 35px;
    }
    
    .card {
        padding: 20px;
    }
    
    .card-header h1, .card-header h2 {
        font-size: 1.3rem;
    }
    
    /* Tabela na mobilnih */
    .table-wrapper {
        overflow-x: auto;
    }
    
    table {
        min-width: 600px;
    }
    
    th, td {
        padding: 8px;
        font-size: 0.85rem;
    }
    
    /* Skrij manj pomembne stolpce na mobilnih */
    .hide-mobile {
        display: none;
    }
}