/* Quick Lost & Found Pets Frontend Styles */
.qlfp-container {
    margin: 0 auto;
    padding: 20px;
}

.qlfp-header {
    text-align: center;
    margin-bottom: 40px;
}

.qlfp-header h1 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1em!important;
	line-height:1.4;
}

.qlfp-header p {
    color: #7f8c8d;
    font-size: 16px;
    margin-bottom: 30px;
}

.qlfp-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.qlfp-stat-card {
    background: #f8f9fa;
    padding: 20px;
	border: 1px solid #2957a3;
    border-radius: 4px;
    text-align: center;
}

.qlfp-stat-card h3 {
    margin: 0 0 10px 0;
    color: #7f8c8d;
    font-size: 14px;
    text-transform: uppercase;
}

.qlfp-stat-number {
    font-size: 2em;
    font-weight: bold;
    color: #2c3e50;
}

.qlfp-stat-card .qlfp-missing { color: #e74c3c; }
.qlfp-stat-card .qlfp-found { color: #27ae60; }

.qlfp-search-container {
    position: relative;
    margin-bottom: 30px;
}

.qlfp-search-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.qlfp-search-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.qlfp-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

.qlfp-alert {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-weight: 500;
}

.qlfp-alert.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.qlfp-alert.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Tabs */
.qlfp-tabs {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 2px solid #e9ecef;
    gap: 5px;
}

.qlfp-tab-button {
    padding: 12px 24px;
    background: #f8f9fa;
    border: none;
    border-radius: 8px 8px 0 0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6c757d;
    border-bottom: 2px solid transparent;
}

.qlfp-tab-button:hover {
    background: #e9ecef;
    color: #495057;
}

.qlfp-tab-button.active {
    background: #2957a3;
    color: white;
    border-bottom-color: #2957a3;
}

.qlfp-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.qlfp-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.qlfp-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.qlfp-card.qlfp-reunited {
    opacity: 0.6;
    filter: grayscale(100%);
    order: 1;
}

.qlfp-card.qlfp-pending {
    opacity: 0.7;
    filter: blur(1px);
    background: #fff3cd;
}

#qlfp-edit-content p {
	padding:1rem;
	margin:0px;
}

.qlfp-card-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.qlfp-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.qlfp-card:hover .qlfp-card-image img {
    transform: scale(1.05);
}

.qlfp-case-type {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    border-radius: 4px;
    color: white;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 2;
}

.qlfp-case-type.qlfp-missing { background: #f70d28ff; }
.qlfp-case-type.qlfp-found { background: #27ae60; }

.qlfp-share-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    z-index: 2;
}

.qlfp-share-btn:hover {
    background: rgba(0,0,0,0.9);
}

.qlfp-card-content {
    padding: 15px;
}

.qlfp-card-field {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.qlfp-card-field strong {
    color: #2c3e50;
    min-width: 80px;
    font-size: 13px;
}

.qlfp-card-field span {
    color: #7f8c8d;
    text-align: right;
    flex: 1;
    margin-left: 10px;
    font-size: 13px;
}

.qlfp-whatsapp-link {
    color: #25D366;
    text-decoration: none;
    font-weight: 600;
}

.qlfp-whatsapp-link:hover {
    color: #128C7E;
    text-decoration: underline;
}

.qlfp-edit-btn {
    width: 100%;
    padding: 10px;
    background: #47b2e4;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 10px;
}

.qlfp-edit-btn:hover {
    background: #2980b9;
}

.qlfp-pending-badge {
    width: 100%;
    padding: 10px;
    background: #ffc107;
    color: #856404;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    margin-top: 10px;
}

/* Load More */
.qlfp-load-more-container {
    text-align: center;
    margin: 30px 0;
}

.qlfp-load-more-btn {
    padding: 12px 30px;
    background: #2957a3;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.qlfp-load-more-btn:hover {
    background: #1e4a8d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(41, 87, 163, 0.3);
}

.qlfp-floating-bar {
    position: fixed;
    bottom: 30px;
    right: 40%;
    z-index: 1000;
}

.qlfp-add-case-btn {
    padding: 12px 24px;
    background: #f70d28ff;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(247, 13, 40, 0.3);
}

.qlfp-add-case-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

/* Modal Styles */
.qlfp-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.qlfp-modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    position: relative;
    animation: qlfpModalSlideIn 0.3s ease;
}

@keyframes qlfpModalSlideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.qlfp-close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #7f8c8d;
    z-index: 1;
}

.qlfp-close:hover {
    color: #2c3e50;
}

.qlfp-modal-content h2 {
    padding: 15px;
    margin: 0;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    color: #2c3e50;
}

.qlfp-form-group {
    padding: 15px 30px;
    border-bottom: 1px solid #f1f2f6;
}

.qlfp-form-group:last-of-type {
    border-bottom: none;
}

.qlfp-form-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    color: #2c3e50;
}

.qlfp-form-group input,
.qlfp-form-group select {
    width: 100%;
    padding: 10px;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.qlfp-form-group input:focus,
.qlfp-form-group select:focus {
    outline: none;
    border-color: #3498db;
}

.qlfp-form-group small {
    display: block;
    margin-top: 5px;
    color: #7f8c8d;
    font-size: 12px;
}

.qlfp-form-actions {
    padding: 20px 30px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.qlfp-form-actions button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.qlfp-form-actions button[type="button"] {
    background: #95a5a6;
    color: white;
}

.qlfp-form-actions button[type="button"]:hover {
    background: #7f8c8d;
}

.qlfp-form-actions button[type="submit"],
.qlfp-form-actions button[type="button"]:last-child {
    background: #2957a3;
    color: white;
}

.qlfp-form-actions button[type="submit"]:hover,
.qlfp-form-actions button[type="button"]:last-child:hover {
    background: #2980b9;
}

/* Paste area styles */
.qlfp-paste-area {
    border: 2px dashed #ccc;
    border-radius: 4px;
    padding: 20px;
    text-align: center;
    margin-bottom: 15px;
    background: #f9f9f9;
    cursor: pointer;
    transition: all 0.3s ease;
}

.qlfp-paste-area:hover {
    border-color: #3498db;
    background: #f0f8ff;
}

.qlfp-paste-area.dragover {
    border-color: #2980b9;
    background: #e3f2fd;
}

.qlfp-paste-text {
    color: #7f8c8d;
    font-size: 14px;
}

.qlfp-paste-text strong {
    color: #3498db;
}

/* Update the file input style */
#qlfp-media {
    width: 100%;
    padding: 8px;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    background: white;
}

/* Loading Overlay */
.qlfp-loading {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.9);
    z-index: 10001;
    backdrop-filter: blur(5px);
}

.qlfp-loading-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.qlfp-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: qlfpSpin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes qlfpSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.qlfp-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
    font-size: 18px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .qlfp-container {
        padding: 15px;
    }
    
    .qlfp-stats {
        grid-template-columns: 1fr;
    }
    
    .qlfp-cards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .qlfp-card-image {
        height: 150px;
    }
    
    .qlfp-modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .qlfp-floating-bar {
        bottom: 80px;
        right: 30%;
    }
    
    .qlfp-add-case-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .qlfp-tabs {
        flex-wrap: wrap;
    }
    
    .qlfp-tab-button {
        flex: 1;
        min-width: 100px;
        padding: 10px 15px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .qlfp-cards-container {
        grid-template-columns: 1fr;
    }
    
    .qlfp-floating-bar {
        bottom: 80px;
        right: 20%;
    }
    
    .qlfp-add-case-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}