@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css');

/* Global Styles */
.hola-wrap {
    font-family: 'Poppins', sans-serif;
    background-color: #f0f2f5;
    padding: 20px;
    position: relative;
}
.hola-wrap h2 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Card and Section Styles */
.hola-card-container {
    display: block;
}
.hola-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 25px;
    margin-bottom: 20px;
}
.hola-card h3 {
    margin-top: 0;
    color: #34495e;
    font-weight: 600;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 15px;
    margin-bottom: 20px;
}
.hola-card h3 i {
    color: #3498db;
    margin-right: 10px;
}
.hola-actions-row {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* Form Styles */
#hola-vendor-form input,
#hola-vendor-form textarea,
#hola-edit-form input,
#hola-edit-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #bdc3c7;
    border-radius: 8px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}
#hola-vendor-form input:focus,
#hola-vendor-form textarea:focus,
#hola-edit-form input:focus,
#hola-edit-form textarea:focus {
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
    outline: none;
}
.hola-btn-primary {
    background-color: #2c3e50;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 100%;
}
.hola-btn-primary:hover {
    background-color: #34495e;
    transform: translateY(-2px);
}
.hola-btn-primary i {
    margin-right: 5px;
}
.hola-btn-secondary {
    background-color: #95a5a6;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
}
.hola-btn-secondary:hover {
    background-color: #7f8c8d;
    transform: translateY(-2px);
}
.hola-btn-secondary i {
    margin-right: 5px;
}
.hola-btn-danger {
    background-color: #e74c3c;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.hola-btn-danger:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
}

/* Vendor List Styles */
#vendor-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
#vendor-list .list-header {
    font-weight: 600;
    color: #555;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    margin-bottom: 10px;
}
#vendor-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #ecf0f1;
    transition: background-color 0.3s ease;
}
#vendor-list li:last-child {
    border-bottom: none;
}
#vendor-list li:hover {
    background-color: #f9fafb;
}

.vendor-info, .vendor-info-header {
    display: flex;
    flex: 1;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}
.vendor-info-header {
    align-items: flex-end;
}
.vendor-info-header h4 {
    margin-bottom: 0;
}
.vendor-info-header h4.vendor-name-header, .vendor-info h4.vendor-name {
    flex: 1 1 20%;
    min-width: 100px;
    margin: 0;
    font-size: 14px;
    color: #34495e;
}
.vendor-info-header h4, .vendor-info p {
    flex: 1 1 20%;
    min-width: 100px;
    margin: 0;
    font-size: 14px;
    color: #34495e;
}
.vendor-info p {
    color: #7f8c8d;
    word-break: break-all;
}
.vendor-actions, .vendor-actions-header {
    flex: 0 0 auto;
    width: 80px;
    text-align: right;
}
.vendor-actions-header {
    padding-right: 20px;
}
.vendor-actions button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    margin-left: 10px;
    padding: 5px;
    transition: color 0.3s ease;
}
.vendor-actions .edit-vendor-btn {
    color: #2980b9;
}
.vendor-actions .edit-vendor-btn:hover {
    color: #3498db;
}
.vendor-actions .delete-vendor-btn {
    color: #e74c3c;
}
.vendor-actions .delete-vendor-btn:hover {
    color: #c0392b;
}
.hola-bulk-actions {
    margin-top: 10px;
    text-align: right;
}
#bulk-delete-btn {
    opacity: 0.5;
    cursor: not-allowed;
}
#bulk-delete-btn.active {
    opacity: 1;
    cursor: pointer;
}

/* Modal Styles */
.hola-modal-overlay {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    transition: opacity 0.3s ease;
}
.hola-modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    position: relative;
    animation: modal-open 0.4s;
}
.hola-modal-content h3 {
    border-bottom: none;
}
.hola-modal-close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 20px;
}
.hola-modal-close-btn:hover,
.hola-modal-close-btn:focus {
    color: #000;
    text-decoration: none;
}
.hola-modal-actions {
    text-align: right;
    margin-top: 20px;
}
.hola-modal-actions button {
    margin-left: 10px;
}
@keyframes modal-open {
    from {top: -50px; opacity: 0}
    to {top: 0; opacity: 1}
}

/* Custom Message Box */
.hola-message {
    position: fixed;
    top: 40px; /* Adjusted for admin bar */
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 99999; /* Increased z-index */
    min-width: 250px;
    text-align: center;
    display: none;
    font-size: 14px;
    font-weight: 600;
}
.hola-message.success {
    background-color: #f39c12;
    color: #2c3e50;
}
.hola-message.error {
    background-color: #e74c3c;
    color: #fff;
}

/* Media Queries */
@media (max-width: 992px) {
    .vendor-info, .vendor-info-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .vendor-info-header {
        align-items: flex-end;
    }
    .vendor-info-header h4, .vendor-info p, .vendor-info-header h4 {
        flex: 1 1 100%;
        margin-bottom: 5px;
    }
    .vendor-info-header h4:first-child, .vendor-info h4:first-child {
        margin-top: 5px;
    }
    .vendor-actions, .vendor-actions-header {
        width: 100%;
        text-align: left;
        margin-top: 10px;
    }
    #vendor-list .list-header {
        display: none;
    }
    .hola-actions-row {
        flex-direction: column;
    }
    #hola-import-form {
        width: 100%;
    }
    #hola-import-form label {
        width: 100%;
        text-align: center;
    }
}
@media (max-width: 576px) {
    .hola-card h3 {
        font-size: 18px;
    }
    .hola-btn-primary {
        width: 100%;
        margin-bottom: 10px;
    }
.vendor-info {
    padding-left: 30px;
    position: relative;
    gap: 10px;
}

.vendor-info input.vendor-select-checkbox {
    position: absolute;
    left: 0;
    top: 0;
}

.vendor-info-header h4, .vendor-info p, .vendor-info-header h4 {
    margin-bottom: 0;
}

.vendor-actions {width: auto;margin: 0;display: flex;flex-direction: column;justify-content: center;align-items: center;text-align: center;gap: 12px;height: 100%;}

.vendor-actions button {margin: 0;border: 1px solid currentColor;padding: 4px;border-radius: 2px;min-width: 36px;min-height: 36px;}

#vendor-list li {
    box-shadow: 0px 6px 12px -6px rgba(0,0,0,0.1);
}    
}
