/* Custom Styles for Mobikazi */

* {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #1E40AF;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1E3A8A;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* Worker Card Hover Effects */
.worker-card {
    transition: all 0.3s ease;
}

.worker-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Category Card */
.category-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    transform: scale(1.05);
}

/* Verified Badge */
.verified-badge {
    background: linear-gradient(135deg, #10B981, #059669);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

/* Rating Stars */
.rating-stars {
    color: #FCD34D;
}

/* Custom Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #1E40AF, #1E3A8A);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1E3A8A, #1E40AF);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(30, 64, 175, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #F97316, #EA580C);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #EA580C, #F97316);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(249, 115, 22, 0.3);
}

/* Contact Buttons */
.contact-btn {
    transition: all 0.3s ease;
}

.contact-btn:hover {
    transform: scale(1.05);
}

/* Search Bar Focus */
select:focus, input:focus, textarea:focus {
    outline: none;
    border-color: #1E40AF;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

/* Loading Spinner */
.spinner {
    border: 3px solid #f3f4f6;
    border-top: 3px solid #1E40AF;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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

/* Mobile Menu Animation */
#mobileMenu {
    transition: max-height 0.3s ease-in-out;
}

/* Profile Image Placeholder */
.profile-placeholder {
    background: linear-gradient(135deg, #1E40AF, #3B82F6);
}

/* Job Card */
.job-card {
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.job-card:hover {
    border-left-color: #1E40AF;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Admin Dashboard Cards */
.stat-card {
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Payment Modal */
.modal-overlay {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

/* Toast Notification */
.toast {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Filter Tags */
.filter-tag {
    transition: all 0.2s ease;
}

.filter-tag:hover {
    transform: scale(1.05);
}

/* Review Stars Interactive */
.star-rating input[type="radio"] {
    display: none;
}

.star-rating label {
    font-size: 2rem;
    color: #D1D5DB;
    cursor: pointer;
    transition: color 0.2s ease;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input[type="radio"]:checked ~ label {
    color: #FCD34D;
}

/* Responsive Table */
@media (max-width: 768px) {
    .responsive-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Print Styles */
@media print {
    nav, footer, .no-print {
        display: none;
    }
}

/* Custom Badge */
.badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-weight: 600;
}

.badge-success {
    background-color: #D1FAE5;
    color: #065F46;
}

.badge-warning {
    background-color: #FEF3C7;
    color: #92400E;
}

.badge-danger {
    background-color: #FEE2E2;
    color: #991B1B;
}

.badge-info {
    background-color: #DBEAFE;
    color: #1E40AF;
}

/* Pagination */
.pagination {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
}

.pagination button {
    padding: 0.5rem 1rem;
    border: 1px solid #E5E7EB;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.pagination button:hover:not(:disabled) {
    background-color: #1E40AF;
    color: white;
    border-color: #1E40AF;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination button.active {
    background-color: #1E40AF;
    color: white;
    border-color: #1E40AF;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state i {
    font-size: 4rem;
    color: #D1D5DB;
    margin-bottom: 1rem;
}

/* Form Validation */
input.error, select.error, textarea.error {
    border-color: #EF4444;
}

.error-message {
    color: #EF4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Success Message */
.success-message {
    background-color: #D1FAE5;
    color: #065F46;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid #10B981;
}

/* Image Upload Preview */
.image-preview {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 0.5rem;
    border: 2px solid #E5E7EB;
}

/* Worker Status Indicators */
.status-active {
    color: #10B981;
}

.status-pending {
    color: #F59E0B;
}

.status-inactive {
    color: #EF4444;
}

/* Tooltip */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #374151;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.75rem;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Mobile Optimizations */
@media (max-width: 640px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .worker-card {
        margin-bottom: 1rem;
    }
}

/* Accessibility */
a:focus, button:focus {
    outline: 2px solid #1E40AF;
    outline-offset: 2px;
}

/* Dark mode support (future) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here */
}