/* =============== Base Layout =============== */
.egg-sellers-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    font-family: "Segoe UI", Tahoma, sans-serif;
    background-color: rgb(230, 230, 230);
}

.egg-sellers-container h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #333;
}
 
/* =============== Search & Filter =============== */
.search-filter {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.filter-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    background: #fff;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 700px;
}

/* Grid area for inputs */
.filter-grid {
    display: flex;
    flex: 1;
    gap: 10px;
    flex-wrap: wrap;
}

/* Make Django form fields clean */
.filter-grid p {
    margin: 0;
    flex: 1;
}

.filter-grid input,
.filter-grid select {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border 0.2s;
}

.filter-grid input:focus,
.filter-grid select:focus {
    border-color: #007bff;
    outline: none;
}

/* Buttons */
.filter-buttons {
    display: flex;
    gap: 10px;
}

.filter-btn,
.clear-btn {
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
}

/* Find button (green like the screenshot) */
.filter-btn {
    background: #28a745;
    color: #fff;
}

.filter-btn:hover {
    background: #218838;
}

/* Cancel button (gray/neutral) */
.clear-btn {
    background: #6c757d;
    color: #fff;
}

.clear-btn:hover {
    background: #5a6268;
}

/* =============== Seller Cards =============== */
.seller-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.seller-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s ease;
}

.seller-card:hover {
    transform: translateY(-5px);
}

/* Logo / Placeholder */
.seller-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.seller-logo.placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f3f3f3;
    color: #888;
    font-size: 2rem;
}

/* Farm Info */
.seller-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.2rem;
    color: #222;
}

.username {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

/* Details */
.seller-card p {
    margin: 0.3rem 0;
    font-size: 0.95rem;
    color: #444;
    text-align: center;
}

.seller-card .description {
    margin-top: 0.6rem;
    font-style: italic;
    font-size: 0.9rem;
    color: #555;
}

/* Social Icons */
.social-icons {
    margin-top: 0.8rem;
}

.social-icons a {
    margin: 0 6px;
    font-size: 1.2rem;
    color: #555;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #007bff;
}
/* =============== For User =============== */
.user-links {
    display: flex;
    flex-direction: row;
    gap: 10px;
    z-index: 100000;
}

/* =============== Actions =============== */
.card-actions {
    margin-top: 1.2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

/* Buttons */
.order-btn,
.btn-edit,
.btn-delete,
.btn-success,
.btn-order {
    padding: 0.5rem 1.1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
    text-align: center;
}

/* Primary - Order Now */

.btn-success,
.btn-order {
    background: #007bff;
    color: white;
}
.order-btn {
    background: #007bff;
    color: white;
}

.order-btn:hover {
    background: #0056b3;
}

/* Edit */
.btn-edit {
    background: #ffc107;
    color: #222;
}

.btn-edit:hover {
    background: #e0a800;
}

/* Delete */
.btn-delete {
    background: #dc3545;
    color: white;
}

.btn-delete:hover {
    background: #b02a37;
}

/* =============== Modals =============== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    overflow: auto;
    padding-top: 60px;
}

.modal-content {
    background: #fff;
    margin: auto;
    padding: 1.5rem;
    border-radius: 10px;
    width: 95%;
    max-width: 500px;
    position: relative;
}

.modal h3 {
    margin-bottom: 1rem;
}

.modal .close,
.modal .close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.modal-actions {
    margin-top: 1.2rem;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Modal buttons */
.btn-danger {
    background: #dc3545;
    color: #fff;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    border: none;
}

.btn-secondary {
    background: #6c757d;
    color: #fff;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    border: none;
}

.submit-btn {
    background: #007bff;
    color: white;
    padding: 0.6rem 1.4rem;
    border-radius: 6px;
    border: none;
    margin-top: 0.8rem;
    cursor: pointer;
}

.submit-btn:hover {
    background: #0056b3;
}

/* =============== Notifications =============== */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 0.8rem 1.2rem;
    border-radius: 6px;
    font-size: 0.9rem;
    color: white;
    animation: fadeIn 0.3s ease;
    z-index: 2000;
}

.notification.success { background: #28a745; }
.notification.error { background: #dc3545; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
































.back-to-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background-color: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 10px;
    border: 1px solid #cfcfcf;
    transition: all 0.3s ease;
}

.back-to-home:hover {
    background-color: #f8bc6d;
    text-decoration: none;
    border: 1px solid #87dfeb;
    color: #007bff;
}