/* load-manager.css (Jūsų nauji stiliai) */
/* Kad komentarų mygtukas būtų atskiras elementas, gerai atskirtas nuo pavadinimo */
.load-info {
    display: flex; /* Naudojame flexbox, kad eilutės elementai būtų vienoje linijoje */
    align-items: center;
    gap: 15px; /* Tarpas tarp elemento pavadinimo ir komentarų mygtuko */
}

/* Stilizacija bendra su kitais mygtukais, bet su specifinėmis spalvomis */
.load-comment-count-button {
    /* Perima bendrą .button stilių, pridedame specifikos */
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1; /* Kompaktiškesnis aukštis */
    white-space: nowrap; /* Kad tekstas nepersikeltų į kitą eilutę */
    
    /* Standartinė išvaizda (pvz., pilkas fonas, jei nėra laukiančių) */
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ccc;
    transition: background-color 0.2s;
}

.load-comment-count-button:hover {
    background-color: #e0e0e0;
}

/* Stilius, jei yra laukiančių patvirtinimo komentarų */
.load-comment-count-button:has(.load-moderated-count) {
    background-color: #ffeb3b; /* Geltona / Oranžinė spalva dėmesiui atkreipti */
    color: #333;
    border-color: #ff9800;
}

/* Jei komentarų visai nėra */
.load-comment-count-button.empty-comments {
    background-color: #f0f0f0;
    color: #999;
    cursor: default;
}
/* Pranešimai */
.form-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    border-left: 5px solid;
    font-weight: bold;
}
.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}
.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.shipper-loads-container {
    max-width: 900px;
    margin: 30px auto;
    padding: 25px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    font-family: Arial, sans-serif;
}

.shipper-loads-container h2 {
    text-align: center;
    color: #0073aa;
    margin-bottom: 25px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.shipper-loads-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    border-left: 5px solid;
    font-weight: bold;
}
.shipper-loads-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}
.shipper-loads-message.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}

.shipper-loads-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.load-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.load-item:last-child {
    border-bottom: none;
}

.load-info {
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.load-title {
    font-size: 1.1em;
    font-weight: bold;
    color: #0073aa;
    text-decoration: none;
    margin-right: 10px;
}

.load-title:hover {
    text-decoration: underline;
}

.load-status {
    font-size: 0.9em;
    font-weight: 600;
}

.load-actions {
    display: flex;
    gap: 8px; /* Atstumas tarp mygtukų */
}

/* Bendras mygtukų stilius */
.button {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: bold;
    transition: background-color 0.2s ease, transform 0.1s ease;
    text-decoration: none; /* Kad nuorodos atrodytų kaip mygtukai */
    display: inline-block; /* Kad nuorodos gerai atrodytų */
    white-space: nowrap; /* Kad mygtuko tekstas nelūžtų */
}

/* Redaguoti mygtukas */
.load-edit-button {
    background-color: #007bff; /* Mėlyna spalva */
    color: white;
}
.load-edit-button:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}

/* Pakeisti į juodraštį / Paskelbti mygtukas */
.load-change-status-button[data-new-status="draft"] {
    background-color: #ffc107; /* Geltona spalva */
    color: #333;
}
.load-change-status-button[data-new-status="draft"]:hover {
    background-color: #e0a800;
    transform: translateY(-1px);
}
.load-change-status-button[data-new-status="publish"] {
    background-color: #28a745; /* Žalia spalva */
    color: white;
}
.load-change-status-button[data-new-status="publish"]:hover {
    background-color: #218838;
    transform: translateY(-1px);
}


/* Ištrinti mygtukas */
.load-delete-button {
    background-color: #dc3545; /* Raudona spalva */
    color: white;
}
.load-delete-button:hover {
    background-color: #c82333;
    transform: translateY(-1px);
}

/* Spineris */
.nominatim-spinner {
    display: none; /* Pagal nutylėjimą paslėptas */
    border: 3px solid #f3f3f3; /* Light grey */
    border-top: 3px solid #0073aa; /* WordPress mėlyna */
    border-radius: 50%;
    width: 24px; /* Padidinau spinnerį, kad būtų geriau matomas */
    height: 24px;
    animation: spin 1s linear infinite;
    margin: 10px auto; /* Centruoti, jei naudojamas atskirai */
    position: relative; /* Jei naudojamas atskirai, kad nebūtų absolute */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsyvumas */
@media (max-width: 768px) {
    .load-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .load-actions {
        margin-top: 10px;
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap; /* Mygtukai pereina į kitą eilutę, jei netelpa */
    }
    .load-info {
        margin-bottom: 10px;
    }
    .button {
        flex: 1 1 auto; /* Leidžia mygtukams užimti daugiau vietos */
        text-align: center;
    }
}