/* Ask Your Pharmacist - Frontend Styles */

:root {
    --ayp-dark-teal: #2f4f4f;
    --ayp-light-blue: #73c8e3;
    --ayp-white: #ffffff;
    --ayp-green: #7bcb9d;
    --ayp-orange: #f1a36a;
    --ayp-teal: #589ea8;
}

* {
    box-sizing: border-box;
}

.ayp-search-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: 'Fira Sans', sans-serif;
}

.ayp-search-header {
    text-align: center;
    margin-bottom: 40px;
}
/* Frontend Pharmacy Registration & Dashboard */
.ayp-frontend-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.ayp-frontend-header {
    text-align: center;
    margin-bottom: 30px;
}

.ayp-frontend-card {
    background: var(--ayp-white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(47, 79, 79, 0.1);
    margin-bottom: 20px;
}

.ayp-message {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 15px;
}

.ayp-message-info {
    background: rgba(115, 200, 227, 0.2);
    border-left: 4px solid var(--ayp-light-blue);
    color: var(--ayp-dark-teal);
}

.ayp-message a {
    color: var(--ayp-teal);
    font-weight: 600;
}

.ayp-dashboard-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--ayp-light-blue);
}

.ayp-tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--ayp-teal);
    font-family: 'Fira Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ayp-tab-btn:hover {
    color: var(--ayp-dark-teal);
}

.ayp-tab-btn.active {
    color: var(--ayp-dark-teal);
    border-bottom-color: var(--ayp-teal);
}

.ayp-tab-content {
    display: none;
}

.ayp-tab-content.active {
    display: block;
}

.ayp-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.ayp-card-header h3 {
    margin: 0;
    color: var(--ayp-dark-teal);
}

/* Form Error & Success Messages */
.ayp-form-error {
    background: #fee;
    border-left: 4px solid #e74c3c;
    color: #c0392b;
    padding: 14px 18px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

.ayp-form-success {
    background: rgba(123, 203, 157, 0.15);
    border-left: 4px solid var(--ayp-green);
    color: var(--ayp-dark-teal);
    padding: 14px 18px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

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

/* Improved Frontend Form Styling */
.ayp-frontend-container {
    max-width: 650px;
    margin: 40px auto;
    padding: 0 20px;
}

.ayp-frontend-header {
    text-align: center;
    margin-bottom: 35px;
}

.ayp-frontend-header h2 {
    color: var(--ayp-dark-teal);
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.ayp-frontend-header p {
    color: var(--ayp-teal);
    font-size: 15px;
    margin: 0;
}

.ayp-frontend-card {
    background: var(--ayp-white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(47, 79, 79, 0.08);
}

.ayp-frontend-card h3 {
    color: var(--ayp-dark-teal);
    font-size: 20px;
    font-weight: 600;
    margin: 30px 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--ayp-light-blue);
}

.ayp-frontend-card h3:first-child {
    margin-top: 0;
}

.ayp-form-group label {
    color: var(--ayp-dark-teal);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.ayp-form-group input,
.ayp-form-group select {
    padding: 13px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Fira Sans', sans-serif;
    font-size: 15px;
    color: var(--ayp-dark-teal);
    transition: all 0.2s ease;
    background: #fafafa;
}

.ayp-form-group input:focus,
.ayp-form-group select:focus {
    outline: none;
    border-color: var(--ayp-teal);
    background: var(--ayp-white);
    box-shadow: 0 0 0 4px rgba(88, 158, 168, 0.1);
}

.ayp-help-text {
    display: block;
    color: #888;
    font-size: 13px;
    margin-top: 6px;
    font-style: italic;
}

.ayp-btn {
    padding: 14px 32px;
    border: none;
    border-radius: 10px;
    font-family: 'Fira Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.ayp-btn-primary {
    background: linear-gradient(135deg, var(--ayp-teal) 0%, var(--ayp-dark-teal) 100%);
    color: var(--ayp-white);
    box-shadow: 0 4px 12px rgba(88, 158, 168, 0.3);
}

.ayp-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(88, 158, 168, 0.4);
}

.ayp-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.ayp-info-box {
    background: rgba(115, 200, 227, 0.08);
    border-left: 4px solid var(--ayp-light-blue);
    padding: 16px 20px;
    margin: 24px 0;
    border-radius: 6px;
}

.ayp-info-box p {
    color: var(--ayp-dark-teal);
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
}

/* Login/Signup Links */
.ayp-frontend-card p a {
    color: var(--ayp-teal);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.ayp-frontend-card p a:hover {
    color: var(--ayp-dark-teal);
    text-decoration: underline;
}

/* Dashboard Tabs Improvement */
.ayp-dashboard-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
    background: #f8f8f8;
    border-radius: 10px 10px 0 0;
    padding: 0;
}

.ayp-tab-btn {
    padding: 16px 28px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #888;
    font-family: 'Fira Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.ayp-tab-btn:hover {
    color: var(--ayp-dark-teal);
    background: rgba(88, 158, 168, 0.05);
}

.ayp-tab-btn.active {
    color: var(--ayp-dark-teal);
    background: var(--ayp-white);
    border-bottom-color: var(--ayp-teal);
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .ayp-frontend-card {
        padding: 25px 20px;
    }
    
    .ayp-frontend-header h2 {
        font-size: 24px;
    }
    
    .ayp-form-row-2 {
        grid-template-columns: 1fr;
    }
    
    .ayp-btn {
        width: 100%;
        padding: 16px;
    }
}
```

---

## 📋 **NEW SHORTCODES TO USE:**

1. **For Pharmacy Registration:**
```
   [ayp_pharmacy_register]
```
   Add this to a page for pharmacies to register and manage their profiles from the frontend.

2. **For Customer Search (already existing):**
```
   [ayp_search]
.ayp-search-header h2 {
    color: var(--ayp-dark-teal);
    font-size: 32px;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.ayp-search-header p {
    color: var(--ayp-teal);
    font-size: 16px;
    margin: 0;
}

.ayp-search-form {
    background: var(--ayp-white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(47, 79, 79, 0.1);
    margin-bottom: 30px;
}

.ayp-search-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.ayp-search-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.ayp-search-field {
    flex: 1;
}

.ayp-search-field-full {
    width: 100%;
}

.ayp-search-field label {
    display: block;
    color: var(--ayp-dark-teal);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.ayp-search-field input,
.ayp-search-field select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--ayp-light-blue);
    border-radius: 8px;
    font-family: 'Fira Sans', sans-serif;
    font-size: 15px;
    color: var(--ayp-dark-teal);
    transition: all 0.3s ease;
}

.ayp-search-field input:focus,
.ayp-search-field select:focus {
    outline: none;
    border-color: var(--ayp-teal);
    box-shadow: 0 0 0 3px rgba(115, 200, 227, 0.2);
}

.ayp-location-option {
    margin-bottom: 20px;
}

.ayp-location-option label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ayp-dark-teal);
    font-size: 14px;
    cursor: pointer;
}

.ayp-location-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.ayp-search-actions {
    text-align: center;
}

.ayp-search-btn {
    background: var(--ayp-teal);
    color: var(--ayp-white);
    border: none;
    padding: 14px 40px;
    border-radius: 8px;
    font-family: 'Fira Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ayp-search-btn:hover {
    background: var(--ayp-dark-teal);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(88, 158, 168, 0.3);
}

.ayp-search-results {
    margin-top: 30px;
}

.ayp-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.ayp-results-header h3 {
    color: var(--ayp-dark-teal);
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.ayp-sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ayp-sort-options label {
    color: var(--ayp-dark-teal);
    font-size: 14px;
    font-weight: 500;
}

.ayp-sort-options select {
    padding: 8px 12px;
    border: 2px solid var(--ayp-light-blue);
    border-radius: 6px;
    font-family: 'Fira Sans', sans-serif;
    font-size: 14px;
    color: var(--ayp-dark-teal);
}

.ayp-results-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ayp-result-card {
    background: var(--ayp-white);
    border: 2px solid var(--ayp-light-blue);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
}

.ayp-result-card:hover {
    border-color: var(--ayp-teal);
    box-shadow: 0 4px 16px rgba(88, 158, 168, 0.15);
    transform: translateY(-2px);
}

.ayp-result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 12px;
}

.ayp-pharmacy-info h4 {
    color: var(--ayp-dark-teal);
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 6px 0;
}

.ayp-pharmacy-location {
    color: var(--ayp-teal);
    font-size: 14px;
    margin: 0;
}

.ayp-distance {
    color: var(--ayp-dark-teal);
    font-weight: 500;
}

.ayp-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.ayp-badge-premium {
    background: var(--ayp-orange);
    color: var(--ayp-white);
}

.ayp-badge-verified {
    background: var(--ayp-green);
    color: var(--ayp-white);
}

.ayp-result-body {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    padding: 16px 0;
    border-top: 1px solid var(--ayp-light-blue);
    border-bottom: 1px solid var(--ayp-light-blue);
}

.ayp-drug-info h5 {
    color: var(--ayp-dark-teal);
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 6px 0;
}

.ayp-generic-name {
    color: var(--ayp-teal);
    font-size: 14px;
    font-style: italic;
    margin: 0 0 8px 0;
}

.ayp-drug-details {
    color: var(--ayp-dark-teal);
    font-size: 14px;
    margin: 0;
}

.ayp-price-info {
    text-align: right;
}

.ayp-price {
    color: var(--ayp-dark-teal);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.ayp-coupon {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ayp-coupon label {
    color: var(--ayp-teal);
    font-size: 12px;
    font-weight: 500;
}

.ayp-coupon-code {
    background: var(--ayp-light-blue);
    color: var(--ayp-dark-teal);
    padding: 6px 12px;
    border-radius: 6px;
    font-family: 'Fira Sans', monospace;
    font-size: 14px;
    font-weight: 600;
}

.ayp-result-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    gap: 12px;
}

.ayp-contact-info {
    color: var(--ayp-dark-teal);
    font-size: 14px;
}

.ayp-contact-info strong {
    font-weight: 600;
}

.ayp-contact-link {
    color: var(--ayp-teal);
    text-decoration: none;
    font-weight: 500;
}

.ayp-contact-link:hover {
    color: var(--ayp-dark-teal);
    text-decoration: underline;
}

.ayp-valid-until {
    color: var(--ayp-teal);
    font-size: 13px;
}

.ayp-results-footer {
    text-align: center;
    margin-top: 20px;
    padding: 16px;
    background: var(--ayp-light-blue);
    border-radius: 8px;
}

.ayp-results-footer p {
    color: var(--ayp-dark-teal);
    font-size: 14px;
    margin: 0;
}

.ayp-no-results {
    text-align: center;
    padding: 60px 20px;
    background: var(--ayp-white);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(47, 79, 79, 0.1);
}

.ayp-no-results h3 {
    color: var(--ayp-dark-teal);
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.ayp-no-results p {
    color: var(--ayp-teal);
    font-size: 16px;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ayp-search-row-3 {
        grid-template-columns: 1fr;
    }
    
    .ayp-result-body {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .ayp-price-info {
        text-align: left;
    }
    
    .ayp-result-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .ayp-results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* Loading State */
.ayp-loading {
    text-align: center;
    padding: 40px;
}

.ayp-loading::after {
    content: '';
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid var(--ayp-light-blue);
    border-top-color: var(--ayp-teal);
    border-radius: 50%;
    animation: ayp-spin 1s linear infinite;
}

@keyframes ayp-spin {
    to { transform: rotate(360deg); }
}

/* Password Toggle Styling */
.ayp-password-field {
    position: relative;
    display: flex;
    align-items: center;
}

.ayp-password-field input {
    flex: 1;
    padding-right: 85px !important;
}

.ayp-toggle-password {
    position: absolute;
    right: 10px;
    background: rgba(88, 158, 168, 0.1);
    border: none;
    color: var(--ayp-teal);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.ayp-toggle-password:hover {
    background: var(--ayp-teal);
    color: var(--ayp-white);
}

.ayp-toggle-password:focus {
    outline: 2px solid var(--ayp-teal);
    outline-offset: 2px;
}

/* Deal Cards for Dashboard */
.ayp-deals-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.ayp-deal-card {
    background: var(--ayp-white);
    border: 2px solid var(--ayp-light-blue);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.ayp-deal-card:hover {
    border-color: var(--ayp-teal);
    box-shadow: 0 4px 12px rgba(88, 158, 168, 0.2);
    transform: translateY(-2px);
}

.ayp-deal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--ayp-light-blue);
}

.ayp-deal-header h4 {
    margin: 0;
    color: var(--ayp-dark-teal);
    font-size: 18px;
    font-weight: 600;
}

.ayp-deal-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ayp-deal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.ayp-deal-label {
    color: var(--ayp-teal);
    font-size: 13px;
    font-weight: 600;
}

.ayp-deal-row span {
    color: var(--ayp-dark-teal);
    font-size: 14px;
}

.ayp-deal-price {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: var(--ayp-green) !important;
}

.ayp-deal-row code {
    background: rgba(115, 200, 227, 0.2);
    padding: 6px 12px;
    border-radius: 6px;
    font-family: 'Fira Sans', monospace;
    font-size: 14px;
    color: var(--ayp-dark-teal);
    cursor: pointer;
    transition: all 0.2s ease;
}

.ayp-deal-row code:hover {
    background: var(--ayp-teal);
    color: var(--ayp-white);
}

@media (max-width: 768px) {
    .ayp-deals-list {
        grid-template-columns: 1fr;
    }
    
    .ayp-deal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Deal Actions */
.ayp-deal-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px solid var(--ayp-light-blue);
}

.ayp-deal-actions .ayp-btn {
    flex: 1;
    text-align: center;
}

@media (max-width: 768px) {
    .ayp-deals-list {
        grid-template-columns: 1fr;
    }
    
    .ayp-deal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .ayp-deal-actions {
        flex-direction: column;
    }
}