body{
    direction: ltr;
}

/* Dashboard Styles */
.pawcare-dashboard {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    min-height: 100vh;
    background: #f5f7fa;
    padding: 20px;
}

.dashboard-sidebar {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 20px;
    height: fit-content;
}

.dashboard-logo {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.logo-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.logo-icon i {
    font-size: 28px;
    color: white;
}

.dashboard-logo h2 {
    color: #2d3748;
    margin: 0 0 10px;
    font-size: 22px;
}

.user-info {
    text-align: center;
    margin-top: 20px;
}

.user-info img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #e2e8f0;
    margin-bottom: 15px;
}

.user-info h3 {
    margin: 0 0 5px;
    color: #2d3748;
    font-size: 18px;
}

.user-role {
    color: #718096;
    font-size: 14px;
    margin: 0 0 5px;
}

.user-email {
    color: #a0aec0;
    font-size: 13px;
    margin: 0;
}

.dashboard-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dashboard-menu li {
    margin-bottom: 8px;
}

.dashboard-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #4a5568;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.dashboard-menu a:hover,
.dashboard-menu a.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateX(5px);
}

.dashboard-menu a i {
    width: 20px;
    text-align: center;
}

.dashboard-main {
    flex: 1;
}

.dashboard-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.dashboard-header h1 {
    margin: 0;
    color: #2d3748;
    font-size: 28px;
    font-weight: 700;
}

.dashboard-actions {
    display: flex;
    gap: 12px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #f6f9ff 0%, #f0f4ff 100%);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.15);
    border-color: #667eea;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-card i {
    font-size: 32px;
    color: #667eea;
    margin-bottom: 15px;
}

.stat-card h3 {
    font-size: 32px;
    margin: 10px 0;
    color: #2d3748;
    font-weight: 700;
}

.stat-card p {
    color: #718096;
    margin: 0;
    font-size: 14px;
}

.dashboard-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.chart-container {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.chart-container h3 {
    margin: 0 0 20px;
    color: #2d3748;
    font-size: 18px;
}

.recent-orders {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.recent-orders h3 {
    margin: 0 0 20px;
    color: #2d3748;
    font-size: 18px;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.order-item:hover {
    background: #edf2f7;
    transform: translateX(5px);
}

.order-info h4 {
    margin: 0 0 5px;
    color: #2d3748;
    font-size: 16px;
}

.order-info p {
    margin: 0;
    color: #718096;
    font-size: 14px;
}

.order-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-pending { background: #fed7d7; color: #c53030; }
.status-accepted { background: #c6f6d5; color: #276749; }
.status-in_progress { background: #bee3f8; color: #2c5282; }
.status-completed { background: #c6f6d5; color: #276749; }
.status-cancelled { background: #e2e8f0; color: #4a5568; }

.upcoming-services {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.upcoming-services h3 {
    margin: 0 0 20px;
    color: #2d3748;
    font-size: 18px;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.service-card {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.service-card:hover {
    background: #edf2f7;
    transform: translateY(-3px);
}

.service-card h4 {
    margin: 0 0 10px;
    color: #2d3748;
}

.service-card p {
    margin: 0 0 10px;
    color: #718096;
    font-size: 14px;
}

.service-card .service-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #a0aec0;
}

/* Forms in Dashboard */
.pawcare-form .form-group {
    margin-bottom: 20px;
}

.pawcare-form label {
    display: block;
    margin-bottom: 8px;
    color: #4a5568;
    font-weight: 500;
}

.pawcare-form input,
.pawcare-form select,
.pawcare-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.pawcare-form input:focus,
.pawcare-form select:focus,
.pawcare-form textarea:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.email-not-verified {
    color: #e53e3e;
    font-size: 13px;
    margin: 8px 0 0;
}

.email-not-verified i {
    margin-right: 5px;
}

.email-verified {
    color: #38a169;
    font-size: 13px;
    margin: 8px 0 0;
}

.email-verified i {
    margin-right: 5px;
}

.change-password {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
}

.change-password h3 {
    margin: 0 0 20px;
    color: #2d3748;
}

.password-input {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #a0aec0;
    cursor: pointer;
    padding: 5px;
}

.toggle-password:hover {
    color: #667eea;
}

/* Pets Grid */
.pets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.pet-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.pet-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.15);
}

.pet-photo {
    height: 180px;
    overflow: hidden;
}

.pet-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.pet-card:hover .pet-photo img {
    transform: scale(1.05);
}

.pet-info {
    padding: 20px;
}

.pet-name {
    margin: 0 0 10px;
    color: #2d3748;
    font-size: 18px;
}

.pet-details {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.pet-detail {
    background: #f8fafc;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    color: #4a5568;
}

.pet-actions {
    display: flex;
    gap: 10px;
}

.pet-btn {
    flex: 1;
    padding: 8px 16px;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 6px;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.pet-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.pet-btn.delete:hover {
    background: #e53e3e;
    border-color: #e53e3e;
}

/* Orders Table */
.orders-table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.orders-table thead {
    background: #f8fafc;
}

.orders-table th {
    padding: 16px;
    text-align: left;
    color: #4a5568;
    font-weight: 600;
    border-bottom: 2px solid #e2e8f0;
}

.orders-table td {
    padding: 16px;
    border-bottom: 1px solid #e2e8f0;
    color: #4a5568;
}

.orders-table tbody tr:hover {
    background: #f8fafc;
}

.order-actions {
    display: flex;
    gap: 8px;
}

.order-btn {
    padding: 6px 12px;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 4px;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
}

.order-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.order-btn.view {
    background: #4299e1;
    color: white;
    border-color: #4299e1;
}

.order-btn.cancel {
    background: #fed7d7;
    color: #c53030;
    border-color: #fed7d7;
}

.order-btn.cancel:hover {
    background: #e53e3e;
    color: white;
    border-color: #e53e3e;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
}

.page-btn {
    padding: 8px 16px;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 6px;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.page-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Modal Styles */
.pawcare-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pawcare-modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
}

.modal-header h3 {
    margin: 0;
    color: #2d3748;
    font-size: 20px;
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    color: #a0aec0;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.close-modal:hover {
    color: #4a5568;
}

.modal-body {
    padding: 24px;
}

.photo-preview {
    margin-top: 10px;
}

.photo-preview img {
    max-width: 100px;
    max-height: 100px;
    border-radius: 8px;
    object-fit: cover;
}

/* Booking Steps */
.booking-step {
    display: none;
}

.booking-step.active {
    display: block;
}

.pets-selection {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.pet-select {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.pet-select:hover {
    border-color: #667eea;
}

.pet-select.selected {
    border-color: #667eea;
    background: #f0f4ff;
}

.pet-select img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 8px;
}

.pet-select h5 {
    margin: 0;
    font-size: 14px;
    color: #2d3748;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.time-slot {
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.time-slot:hover {
    border-color: #667eea;
}

.time-slot.selected {
    border-color: #667eea;
    background: #f0f4ff;
}

.time-slot.booked {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8fafc;
}

.time-slot.booked:hover {
    border-color: #e2e8f0;
}

.step-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.order-summary {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.summary-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.summary-item.total {
    font-weight: 600;
    color: #2d3748;
    font-size: 18px;
}

.booking-success {
    text-align: center;
    padding: 30px 0;
}

.success-icon {
    font-size: 64px;
    color: #38a169;
    margin-bottom: 20px;
}

.booking-success h4 {
    margin: 0 0 10px;
    color: #2d3748;
    font-size: 24px;
}

.booking-success p {
    color: #718096;
    margin-bottom: 30px;
}

.success-details {
    background: #f0fff4;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: left;
}

.success-details p {
    margin: 0 0 10px;
    color: #2d3748;
}

.success-details p:last-child {
    margin-bottom: 0;
}

.success-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .pawcare-dashboard {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        position: static;
        margin-bottom: 20px;
    }

    .dashboard-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .dashboard-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .pets-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        margin: 20px;
        max-height: 80vh;
    }
}

@media (max-width: 480px) {
    .dashboard-sidebar,
    .dashboard-content {
        padding: 20px;
    }

    .step-actions {
        flex-direction: column;
        gap: 10px;
    }

    .step-actions button {
        width: 100%;
    }

    .success-actions {
        flex-direction: column;
    }

    .success-actions .pawcare-btn {
        width: 100%;
    }
}