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

body {
    font-family: Arial, sans-serif;
    background-color: #f0f4f8;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 480px;
    text-align: center;
}

h1 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 26px;
}

label {
    display: block;
    text-align: left;
    margin-bottom: 8px;
    color: #555;
    font-weight: bold;
}

input[type="number"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    margin-bottom: 18px;
    transition: border-color 0.3s;
}

input[type="number"]:focus {
    outline: none;
    border-color: #9b59b6;
}

button {
    width: 100%;
    padding: 12px;
    background-color: #9b59b6;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #8e44ad;
}

/* tablica.php stilovi */
.info {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
    text-align: left;
    color: #555;
    font-size: 16px;
}

.info span {
    font-weight: bold;
    color: #9b59b6;
}

.tablica {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 25px;
    border: 2px solid #e0e0e0;
}

.redak {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    font-size: 20px;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s;
}

.redak:last-child {
    border-bottom: none;
}

.redak:nth-child(even) {
    background-color: #f8f4fc;
}

.redak:hover {
    background-color: #ede0f7;
}

.clan {
    color: #2c3e50;
    font-weight: bold;
    min-width: 35px;
    text-align: center;
}

.operator {
    color: #9b59b6;
    font-weight: bold;
}

.rezultat {
    color: #27ae60;
    font-weight: bold;
    font-size: 22px;
    min-width: 45px;
    text-align: center;
}

.natrag {
    display: inline-block;
    padding: 12px 30px;
    background-color: #9b59b6;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
    transition: background-color 0.3s;
}

.natrag:hover {
    background-color: #8e44ad;
}

.greska {
    color: #e74c3c;
    font-size: 18px;
    margin-bottom: 20px;
}
