﻿
.dodadi-vodokorisnik-btn {
    background-color: #1575cc;
    border-color: #1575cc;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: white;
}

.dodadi-vodokorisnik-btn:hover {
    background-color: #1575cc;
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 10px 20px rgba(21, 117, 204, 0.3), 0 20px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
}


.vodokorisnik-card {
    background: #fff;
    border-radius: 1.25rem;
    padding: 2.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.vodokorisnik-header {
    background: linear-gradient(135deg, #13688e, #1f93fe);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(13, 110, 253, 0.2);
}

.vodokorisnik-header i {
        font-size: 1.4rem;
        margin-right: 0.6rem;
        color: white;
}



.tab-header {
    padding: 0.6rem 1rem;
    cursor: pointer;
    background-color: #f1f3f5; 
    color: #495057; 
    border-radius: 0.5rem 0.5rem 0 0;
    margin-right: 0.3rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: all 0.3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

    .tab-header i {
        color: #495057; 
    }

    .tab-header.active {
        background-color: #4dabf7; 
        color: white;
        box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    }

        .tab-header.active i {
            color: white;
        }


    .tab-header:not(.active):hover {
        background-color: #e9ecef;
    }

.vodokorisnik-header-inverse {
    background: linear-gradient(135deg, #1f93fe, #13688e);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(13, 110, 253, 0.2);
}

.vodokorisnik-header-inverse i {
    font-size: 1.4rem;
    margin-right: 0.6rem;
    color: white;
}

.form-section {
    background-color: #f8f9fb;
    border: 1px solid #dee2e6;
    border-left: 6px solid #13688e;
    border-radius: 1rem;
    padding: 1.8rem;
    margin-bottom: 2rem;
}

    .form-section h5 {
        font-size: 1.25rem;
        font-weight: 600;
        color: #13688e;
        margin-bottom: 1.5rem;
    }

.form-label {
    font-size: 1rem;
    margin-bottom: 0.35rem;
    font-weight: 600;
}

.form-control {
    padding: 0.6rem 0.9rem;
    font-size: 1rem;
    border-radius: 0.5rem;
}

    .form-control:focus {
        box-shadow: none;
        border-color: #13688e;
    }

.form-text {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.btn-primary,
.btn-outline-secondary {
    border-radius: 0.5rem;
    padding: 0.6rem 2rem;
    font-size: 1rem;
}

.btn-outline-secondary {
    border-color: #ced4da;
}



.vodokorisnici-popup-title-info .dx-popup-title {
    background: linear-gradient(135deg, #13688e, #1f93fe);
    color: white;
    padding: 1rem 1.5rem;
    
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center !important;
    font-size: 1.4rem;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(13, 110, 253, 0.2);
}

.vodokorisnici-popup-title-red .dx-popup-title {
    background: linear-gradient(135deg, #b91c1c, #ef4444); 
    color: white;
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.3); 
}

/* -------------------------------------------------
   lista na vodokorisnici
-------------------------------------------------- */




.section-block {
    background-color: #f8f9fb;
    border: 1px solid #dee2e6;
    border-left: 6px solid #13688e;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


    .section-block h5 {
        font-size: 1.2rem;
        font-weight: 600;
        color: #1575cc;
        display: flex;
        align-items: center;
    }

        .section-block h5 i {
            font-size: 1.3rem;
            margin-right: 0.5rem;
            color: #1575cc;
        }

/* повеќе/помалку за ниви */

.mesta-wrapper {
    padding-left: 10px;
    font-size: 0.95rem;
    min-height: 70px; /* Adjust as needed */
}

.mesto-item {
    padding: 0.6rem 1rem;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #eef3fb, #dce8f7);
    border-left: 5px solid #4a90e2;
    font-size: 1rem;
    color: #2b2b2b;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
    transition: background 0.3s, transform 0.2s;
}

    .mesto-item:hover {
        background: linear-gradient(135deg, #e0eaf8, #c4dbf0);
        transform: translateY(-2px);
        cursor: pointer;
    }

.extra-mesto {
    transition: all 0.3s ease;

}
.inline-toggle {
    color: #1575cc;
    font-weight: 500;
    font-size: 0.95rem;
    margin-left: 0.5rem;
    cursor: pointer;
    display: inline;
    transition: color 0.3s ease;
    white-space: nowrap;
}

    .inline-toggle:hover {
        color: #0d5fbf;
    }


.no-users-section {
    padding: 40px 20px;
    background: #f8f9fa;
    border: 2px dashed #d4d4d4;
    border-radius: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.no-users-message {
    font-size: 1.25rem;
    color: #555;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-access-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.error-box {
    max-width: 500px;
    background-color: #fff3f3;
    border: 1px solid #f5c2c7;
    border-radius: 12px;
}


/*.vidi-poveke-btn {
    background-color: #e0ecff;
    color: #1575cc;
    border: 1px solid #1575cc;
    padding: 4px 12px;
    border-radius: 5px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .vidi-poveke-btn:hover:not(:disabled) {
        background-color: #e0ecff;
        transform: translateY(-8px) scale(1.03);
        box-shadow: 0 10px 20px rgba(21, 117, 204, 0.3), 0 20px 40px rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(4px);
    }

    .vidi-poveke-btn:disabled {
        background-color: #f0f0f0;
        color: #999;
        border-color: #ccc;
        cursor: not-allowed;
    }

    .vidi-poveke-btn i {
        margin-left: 4px;
        transition: transform 0.3s;
    }

    .vidi-poveke-btn.rotate i {
        transform: rotate(180deg);
    }*/

/* General responsiveness for the button */
.vidi-poveke-btn {
    background-color: #e0ecff;
    color: #1575cc;
    border: 1px solid #1575cc;
    padding: 6px 14px;
    border-radius: 5px;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    transition: background-color 0.2s, color 0.2s, transform 0.3s ease, box-shadow 0.3s ease;
}

    /* Ensure icon rotates and is centered properly */
    .vidi-poveke-btn i {
        font-size: 1rem;
        transition: transform 0.3s;
    }

    /* Hover effect remains the same */
    .vidi-poveke-btn:hover:not(:disabled) {
        background-color: #e0ecff;
        transform: translateY(-4px) scale(1.03);
        box-shadow: 0 8px 16px rgba(21, 117, 204, 0.25), 0 16px 32px rgba(0, 0, 0, 0.2);
    }

    /* Disabled state */
    .vidi-poveke-btn:disabled {
        background-color: #f0f0f0;
        color: #999;
        border-color: #ccc;
        cursor: not-allowed;
    }

/* Responsive tweaks */
@media (max-width: 576px) {
    .vidi-poveke-btn {
        font-size: 0.8rem;
        padding: 5px 10px;
        justify-content: center;
        width: 100%;
    }

        .vidi-poveke-btn i {
            font-size: 0.9rem;
        }
}

 .mesto-label-wrapper {
        background: linear-gradient(to right, #e9f2fb, #f5f9ff);
        border-left: 4px solid #1575cc;
        padding: 0.75rem 1rem;
        border-radius: 0.5rem;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }

    .mesto-label-text {
        margin: 0;
        font-size: 0.9rem;
        color: #495057;
        font-weight: 500;
        display: flex;
        align-items: center;
    }

    .mesto-label-text i {
        font-size: 1rem;
    }

/* -------------------------------------------------
 brisenje na vodokorisnici
-------------------------------------------------- */
.action-buttons {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    /*  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2); */
    padding: 20px;
    transition: all 0.3s ease-in-out;
}

.action-btn {
    width: 100%;
    padding: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-cancel {
    background-color: #f2f2f2;
    color: #333;
}

    .btn-cancel:hover {
        background-color: #ddd;
        transform: translateY(-2px);
    }

.btn-delete {
    background: linear-gradient(135deg, #ff3c3c, #cc0000);
    color: white;
}

    .btn-delete:hover {
        background: linear-gradient(135deg, #e62e2e, #b30000);
        transform: translateY(-2px);
    }


@media (max-width: 767.98px) {
    .vodokorisnik-card {
        padding: 1.5rem;
    }

    .form-section {
        padding: 1.2rem;
    }

    .vodokorisnik-header,
    .vodokorisnik-header-inverse {
        font-size: 1.2rem;
        padding: 0.75rem 1.2rem;
    }

    .form-section h5 {
        font-size: 1.1rem;
    }

    .btn {
        width: 100%;
        margin-top: 0.5rem;
    }

    .d-flex.justify-content-end {
        flex-direction: column;
        align-items: stretch;
    }

    .me-3 {
        margin-right: 0 !important;
        margin-bottom: 0.5rem;
    }
}