/* Pet Reminder Plugin Styles */

#pet-reminder-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Tab Navigation */
.pet-reminder-tabs {
    display: flex;
    border-bottom: 2px solid #e1e5e9;
    margin-bottom: 30px;
    gap: 0;
}

.tab-button {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-bottom: none;
    padding: 12px 24px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #495057;
    transition: all 0.3s ease;
    border-radius: 8px 8px 0 0;
    margin-right: 4px;
}

.tab-button:hover {
    background: #e9ecef;
    color: #343a40;
}

.tab-button.active {
    background: #ffffff;
    color: #007cba;
    border-color: #007cba;
    border-bottom: 2px solid #ffffff;
    margin-bottom: -2px;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

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

.tab-content h3 {
    color: #343a40;
    margin-bottom: 25px;
    font-size: 24px;
    font-weight: 600;
}

/* Pet Cards */
.pet-card {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pet-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.pet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.pet-header h4 {
    margin: 0;
    color: #343a40;
    font-size: 20px;
    font-weight: 600;
}

.pet-type {
    background: #007cba;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.pet-details p {
    margin: 8px 0;
    color: #6c757d;
    line-height: 1.5;
}

.pet-details strong {
    color: #343a40;
    font-weight: 600;
}

.pet-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

/* Reminder Cards */
.reminder-card {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-left: 4px solid #28a745;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.reminder-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.reminder-card.overdue {
    border-left-color: #dc3545;
    background: #fff5f5;
}

.reminder-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.reminder-header h4 {
    margin: 0;
    color: #343a40;
    font-size: 18px;
    font-weight: 600;
}

.reminder-type {
    background: #6f42c1;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: capitalize;
}

.reminder-details p {
    margin: 8px 0;
    color: #6c757d;
    line-height: 1.5;
}

.reminder-details strong {
    color: #343a40;
    font-weight: 600;
}

.reminder-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #343a40;
    font-weight: 600;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Buttons */
button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: none;
    line-height: 1.5;
}

.btn-primary,
button[type="submit"],
.add-reminder-btn {
    background: #007cba;
    color: white;
}

.btn-primary:hover,
button[type="submit"]:hover,
.add-reminder-btn:hover {
    background: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 124, 186, 0.3);
}

.btn-danger,
.delete-reminder {
    background: #dc3545;
    color: white;
}

.btn-danger:hover,
.delete-reminder:hover {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

/* Modal */
.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(4px);
}

.modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 30px;
    border: none;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease;
}

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

.modal-content h3 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #343a40;
    font-size: 22px;
    font-weight: 600;
}

.close {
    color: #adb5bd;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    margin-top: -10px;
}

.close:hover {
    color: #6c757d;
    transform: scale(1.1);
}

/* Empty States */
.no-pets,
.no-reminders {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

/* Responsive Design */
@media (max-width: 768px) {
    #pet-reminder-dashboard {
        padding: 15px;
    }
    
    .pet-reminder-tabs {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .tab-button {
        flex: 1;
        min-width: 120px;
        margin-right: 0;
        margin-bottom: 8px;
    }
    
    .pet-header,
    .reminder-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .pet-type,
    .reminder-type {
        align-self: flex-start;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 20px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
    }
    
    button {
        padding: 10px 20px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .tab-content h3 {
        font-size: 20px;
    }
    
    .pet-card,
    .reminder-card {
        padding: 15px;
    }
    
    .pet-header h4,
    .reminder-header h4 {
        font-size: 16px;
    }
    
    .modal-content {
        margin: 15% auto;
        padding: 15px;
    }
}

/* Loading States */
.loading {
    text-align: center;
    padding: 20px;
    color: #6c757d;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Admin Styles */
.pet-reminder-admin {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.pet-reminder-admin h2 {
    color: #343a40;
    margin-bottom: 15px;
    font-size: 18px;
}

.pet-reminder-admin p {
    margin: 10px 0;
    line-height: 1.6;
}

.pet-reminder-admin code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 13px;
    color: #e83e8c;
}