:root {
    --bg-color: #f4f4f4;
    --text-color: #333;
    --primary: #006400;
    --primary-hover: #004d00;
    --success: #2ea043;
    --success-hover: #238636;
    --danger: #d32f2f;
    --danger-hover: #b71c1c;
    --panel-bg: rgba(233, 249, 233, 0.95);
    --panel-border: rgba(0, 100, 0, 0.1);
    --input-bg: #fff;
    --blob-1: rgba(0, 100, 0, 0.1);
    --blob-2: rgba(168, 240, 168, 0.6);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* Animacije ozadja */
.blob {
    position: absolute;
    filter: blur(80px);
    z-index: -1;
    border-radius: 50%;
    animation: float 10s infinite ease-in-out alternate;
    opacity: 0.4;
}

.blob-1 {
    width: 300px;
    height: 300px;
    background-color: var(--blob-1);
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background-color: var(--blob-2);
    bottom: 10%;
    right: 20%;
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-50px) scale(1.1); }
}

.container {
    max-width: 600px;
    width: 90%;
    text-align: center;
    position: relative;
    z-index: 10;
}

h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: #006400;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.subtitle {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2rem;
}

.glass-panel {
    background: var(--panel-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--panel-border);
    border-radius: 24px;
    padding: 3rem 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.screen {
    display: none;
    animation: fadeIn 0.4s ease-out forwards;
}

.screen.active {
    display: block;
}

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

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 500;
}

p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.highlight {
    color: var(--primary);
    font-weight: 700;
    padding: 0 0.2rem;
}

/* Gumbi */
.btn {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

.btn:active {
    transform: translateY(1px);
}

.primary { background-color: var(--primary); color: white; font-weight: 700;}
.primary:hover { background-color: var(--primary-hover); }

.success { background-color: var(--success); }
.success:hover { background-color: var(--success-hover); }

.danger { background-color: var(--danger); }
.danger:hover { background-color: var(--danger-hover); }

.btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

/* Vnosi */
.input-group {
    text-align: left;
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #333;
}

input[type="text"] {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--panel-border);
    background: var(--input-bg);
    color: #333;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

input[type="text"]:focus {
    border-color: var(--primary);
}

/* Logika manjših preklopnih gumbov */
.btn-group-sm {
    display: flex;
    background: var(--input-bg);
    border-radius: 12px;
    padding: 4px;
    border: 1px solid var(--panel-border);
    margin-top: 0.5rem;
}

.btn-sm {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-color);
    padding: 0.6rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-sm.active {
    background: var(--primary);
    color: white;
    font-weight: 700;
}

/* Nalagalnik */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.1);
    border-left-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.icon-pulse {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.back-link {
    display: inline-block;
    margin-top: 2rem;
    color: #555;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.signature {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.back-link:hover {
    color: var(--primary);
}

/* Prilagodljivost zaslonu */
@media (max-width: 480px) {
    h1 { font-size: 2.2rem; }
    .glass-panel { padding: 2rem 1.5rem; }
    h2 { font-size: 1.5rem; }
}
