/* Import Fira Sans font */
@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap');

/* Apply Fira Sans to all plugin elements */
.renew-rx-form-container,
.renew-rx-form-container *,
.renew-rx-listings,
.renew-rx-listings *,
.renew-rx-dashboard,
.renew-rx-dashboard * {
    font-family: 'Fira Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

/* Frontend Styles */
.renew-rx-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.renew-rx-form h3 {
    color: #0f3c5d;
    margin-bottom: 20px;
    border-bottom: 2px solid #eeeee9;
    padding-bottom: 10px;
}

.form-section {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #eeeee9;
    border-radius: 5px;
    background: #eeeee9;
}

.form-section h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 16px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.form-group {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.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 input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #3ba081;
    outline: none;
    box-shadow: 0 0 5px rgba(59, 160, 129, 0.2);
}

.submit-btn {
    background: #0f3c5d;
    color: #eeeee9;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #3ba081;
}

.form-message {
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Listings Styles */
.renew-rx-listings {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.listings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-buttons {
    display: flex;
    gap: 10px;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
    background: #0f3c5d;
    color: #eeeee9;
    border-color: #0f3c5d;
}

.products-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: -10px;
}

.product-card {
    flex: 1 1 350px;
    margin: 10px;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 20px;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card {
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 20px;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.product-header h4 {
    color: #0f3c5d;
    margin: 0;
    font-size: 18px;
}

.listing-type {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.listing-type.sale {
    background: rgba(59, 160, 129, 0.2);
    color: #0f3c5d;
}

.listing-type.exchange {
    background: rgba(15, 60, 93, 0.2);
    color: #0f3c5d;
}

.product-details {
    margin-bottom: 15px;
}

.product-details p {
    margin: 5px 0;
    color: #666;
}

.product-details .price {
    color: #28a745;
    font-size: 16px;
}

.pharmacy-info {
    background: #eeeee9;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.pharmacy-info p {
    margin: 3px 0;
    font-size: 14px;
}

.pharmacy-info a {
    color: #3ba081;
    text-decoration: none;
}

.pharmacy-info a:hover {
    text-decoration: underline;
}

.product-description {
    border-top: 1px solid #e1e1e1;
    padding-top: 10px;
    font-style: italic;
    color: #666;
}

.no-products {
    text-align: center;
    color: #666;
    font-style: italic;
    grid-column: 1 / -1;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Admin Styles */
.renew-rx-dashboard {
    margin-top: 20px;
}

.dashboard-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.stat-box {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
    min-width: 150px;
}

.stat-box h3 {
    font-size: 32px;
    margin: 0 0 10px 0;
    color: #2c5aa0;
}

.stat-box p {
    margin: 0;
    color: #666;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .listings-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .products-grid {
        flex-direction: column;
    }
    
    .product-card {
        flex: 1 1 auto;
    }
    
    .dashboard-stats {
        flex-direction: column;
    }
}