/* Vispārīgais pogu stils - pamata klase */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px; /* Minimālais platums */
    box-sizing: border-box;
}

/* Primārā poga (zilā) */
.btn-primary {
    background-color: #4a6fa5;
    color: white;
}

.btn-primary:hover {
    background-color: #3e5f8b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-primary:active {
    background-color: #2d4a6f;
    transform: translateY(0);
}

/* Sekundārā poga (pelēkā) */
.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-secondary:active {
    background-color: #545b62;
    transform: translateY(0);
}

/* Veiksmīga poga (zaļā) */
.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-success:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-success:active {
    background-color: #1e7e34;
    transform: translateY(0);
}

/* Bīstamības poga (sarkanā) */
.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-danger:active {
    background-color: #bd2130;
    transform: translateY(0);
}

/* Meklēšanas formas poga */
.search-form button {
    padding: 10px 20px;
    background-color: #4a6fa5;
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
    font-weight: 600;
}

.search-form button:hover {
    background-color: #3e5f8b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.search-form button:active {
    background-color: #2d4a6f;
    transform: translateY(0);
}

/* Pogu konteineri */
.form-actions,
.button-section,
.new-pass-btn,
.new-company-btn,
.actions,
form > div:last-child {
    display: flex;
    justify-content: flex-start;
    align-items: center; /* PIEVIENOTS - lai pogas būtu vienā līnijā */
    gap: 10px;
    margin-top: 20px;
}

/* Inline formas pogu konteinerā */
.actions .inline-block,
.actions form {
    margin: 0; /* PIEVIENOTS - noņem margin no formām */
    display: inline-block;
}

/* Universāls stils visām pogām - kreisā puse, bez atstarpēm */
button,
input[type="submit"],
input[type="button"],
.btn {
    margin-right: 0;
    margin-left: 0;
}

/* Pirmā poga grupā */
.form-actions > *:first-child,
.button-section > *:first-child {
    margin-left: 0;
}

/* Override jebkādām esošajām atstarpēm */
.btn + .btn,
button + button,
.btn + button,
button + .btn {
    margin-left: 0;
}
