/**
 * Marketplace Hyperlocal System Module
 * Frontend Styles
 */

/* Header Location Display */
.kb-hyperlocal-nav {
    display: inline-block;
}

.kb-hyperlocal-location-link {
    display: flex;
    align-items: center;
    color: #232323;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.kb-hyperlocal-location-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: #232323;
}

.kb-hyperlocal-location-link i {
    margin-right: 5px;
    color: #25b9d7;
    font-size: 18px;
}

.kb-hyperlocal-address {
    font-size: 13px;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Location Modal */
#kb-hyperlocal-modal .modal-header {
    background-color: #25b9d7;
    color: #fff;
}

#kb-hyperlocal-modal .modal-title {
    font-weight: 600;
}

#kb-hyperlocal-modal .close {
    color: #fff;
    opacity: 0.8;
}

#kb-hyperlocal-modal .close:hover {
    opacity: 1;
}

#kb-hyperlocal-modal .form-control {
    padding: 12px 15px;
    font-size: 14px;
    border-radius: 4px;
}

#kb-hyperlocal-modal .btn-primary {
    background-color: #25b9d7;
    border-color: #25b9d7;
}

#kb-hyperlocal-modal .btn-primary:hover {
    background-color: #1a9ab8;
    border-color: #1a9ab8;
}

/* Cart Warning */
#kb-hyperlocal-cart-warning {
    display: flex;
    align-items: center;
    margin-top: 15px;
}

#kb-hyperlocal-cart-warning i {
    margin-right: 10px;
}

/* Seller Dashboard Styles */
.kb-hyperlocal-seller {
    padding: 20px 0;
}

.kb-hyperlocal-seller h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #232323;
}

.kb-hyperlocal-seller .nav-tabs {
    margin-bottom: 20px;
    border-bottom: 2px solid #e5e5e5;
}

.kb-hyperlocal-seller .nav-tabs .nav-item {
    margin-bottom: -2px;
}

.kb-hyperlocal-seller .nav-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    padding: 10px 20px;
    color: #7a7a7a;
    font-weight: 500;
    transition: all 0.3s;
}

.kb-hyperlocal-seller .nav-tabs .nav-item.active .nav-link,
.kb-hyperlocal-seller .nav-tabs .nav-link:hover {
    border-bottom-color: #25b9d7;
    color: #25b9d7;
    background: transparent;
}

.kb-hyperlocal-seller .card {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.kb-hyperlocal-seller .card-header {
    background-color: #25b9d7;
    color: #fff;
    font-weight: 600;
    border-radius: 8px 8px 0 0;
}

.kb-hyperlocal-seller .card-footer {
    background-color: #f8f9fa;
    border-radius: 0 0 8px 8px;
}

.kb-hyperlocal-seller .btn-primary {
    background-color: #25b9d7;
    border-color: #25b9d7;
}

.kb-hyperlocal-seller .btn-primary:hover {
    background-color: #1a9ab8;
    border-color: #1a9ab8;
}

.kb-hyperlocal-seller .btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.kb-hyperlocal-seller .table {
    margin-bottom: 0;
}

.kb-hyperlocal-seller .badge {
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 4px;
}

.kb-hyperlocal-seller .badge-warning {
    background-color: #ffc107;
    color: #212529;
}

.kb-hyperlocal-seller .badge-success {
    background-color: #28a745;
    color: #fff;
}

.kb-hyperlocal-seller .badge-danger {
    background-color: #dc3545;
    color: #fff;
}

/* Seller Menu Item */
.kb-seller-menu-item a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: #232323;
    text-decoration: none;
    transition: background-color 0.3s;
}

.kb-seller-menu-item a:hover {
    background-color: rgba(37, 185, 215, 0.1);
    color: #25b9d7;
}

.kb-seller-menu-item i {
    margin-right: 10px;
    font-size: 18px;
}

/* Ship Rate Actions */
.ship-area-actions,
.ship-rate-actions {
    margin-bottom: 20px;
}

.ship-area-actions .btn,
.ship-rate-actions .btn {
    margin-right: 10px;
}

/* Default Price Form */
#default_price_form {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Google Places autocomplete dropdown fix */
.pac-container {
    z-index: 10000 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .kb-hyperlocal-address {
        max-width: 120px;
    }

    .kb-hyperlocal-seller .nav-tabs .nav-link {
        padding: 8px 12px;
        font-size: 14px;
    }
}
