/* Vendor Directory Styles */
.vendor-directory {
    padding: 100px 0;
    background-color: #f9f9f9;
}

.vendor-directory h1 {
    text-align: center;
    margin-bottom: 10px;
    color: #ff6b6b;
}

.vendor-directory > .container > p {
    text-align: center;
    margin-bottom: 40px;
    color: #666;
}

.vendor-dashboard {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

/* Sidebar Styles */
.vendor-sidebar {
    flex: 0 0 250px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.vendor-categories h3,
.vendor-favorites h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.vendor-categories ul {
    list-style: none;
    padding: 0;
}

.vendor-categories li {
    margin-bottom: 10px;
}

.vendor-categories a {
    color: #666;
    text-decoration: none;
    display: block;
    padding: 8px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.vendor-categories a:hover,
.vendor-categories li.active a {
    background-color: #ff6b6b;
    color: white;
}

.vendor-favorites {
    margin-top: 30px;
}

.empty-favorites {
    color: #999;
    font-style: italic;
    font-size: 14px;
}

.vendor-export {
    margin-top: 30px;
}

.vendor-export .btn {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    text-align: center;
}

.export-btn {
    background-color: #4caf50;
}

.print-btn {
    background-color: #2196f3;
}

/* Content Styles */
.vendor-content {
    flex: 1;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.vendor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.vendor-search {
    position: relative;
    flex: 1;
    max-width: 300px;
}

.vendor-search input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.vendor-search button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
}

.vendor-filter select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
}

.add-vendor-btn {
    background-color: #ff6b6b;
}

/* Vendor List Styles */
.vendor-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.vendor-item {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.vendor-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.vendor-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.vendor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.vendor-item:hover .vendor-image img {
    transform: scale(1.05);
}

.vendor-favorite {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vendor-favorite:hover {
    background-color: #ff6b6b;
    color: white;
}

.vendor-favorite .fa-heart.fas {
    color: #ff6b6b;
}

.vendor-details {
    padding: 15px;
}

.vendor-name {
    margin: 0 0 10px;
    font-size: 18px;
    color: #333;
}

.vendor-rating {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.stars {
    color: #ffc107;
    margin-right: 5px;
}

.rating-value {
    color: #666;
    font-weight: 500;
}

.vendor-category,
.vendor-price,
.vendor-location {
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
    background-color: #f5f5f5;
    padding: 3px 8px;
    border-radius: 4px;
}

.vendor-description {
    margin: 10px 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.vendor-contact {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.vendor-contact a {
    flex: 1;
    text-align: center;
    padding: 8px;
    border-radius: 4px;
    font-size: 13px;
    text-decoration: none;
    color: white;
    transition: opacity 0.3s ease;
}

.vendor-contact a:hover {
    opacity: 0.9;
}

.contact-phone {
    background-color: #4caf50;
}

.contact-email {
    background-color: #2196f3;
}

.contact-website {
    background-color: #9c27b0;
}

.vendor-actions {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 5px;
}

.vendor-actions button {
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.edit-vendor:hover {
    background-color: #2196f3;
    color: white;
}

.delete-vendor:hover {
    background-color: #f44336;
    color: white;
}

/* Modal Styles */
.vendor-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

.vendor-modal-content {
    background-color: white;
    margin: 50px auto;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    position: relative;
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #333;
}

.vendor-modal h2 {
    margin-bottom: 20px;
    color: #ff6b6b;
    text-align: center;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #666;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group textarea {
    resize: vertical;
}

.vendor-modal .btn {
    width: 100%;
    margin-top: 20px;
    background-color: #ff6b6b;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .vendor-dashboard {
        flex-direction: column;
    }
    
    .vendor-sidebar {
        flex: 0 0 auto;
        width: 100%;
    }
    
    .vendor-header {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .vendor-search {
        order: 1;
        max-width: 100%;
        width: 100%;
    }
    
    .vendor-filter {
        order: 3;
        width: 100%;
    }
    
    .vendor-filter select {
        width: 100%;
    }
    
    .vendor-add {
        order: 2;
    }
}

@media (max-width: 768px) {
    .vendor-list {
        grid-template-columns: 1fr;
    }
    
    .vendor-modal-content {
        margin: 20px;
        padding: 20px;
    }
}
