/* TaskRunner by AMO - Modern Professional Styles */

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #06b6d4;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
    --border-color: #e2e8f0;
    --text-color: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.7;
    background-color: #ffffff;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Modern Navigation */
.navbar {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 24px;
    position: relative;
    gap: 1rem;
}

/* Nav auth buttons container - shown on mobile, hidden on desktop */
.nav-auth-buttons {
    display: none;
    gap: 0.5rem;
    align-items: center;
    flex-shrink: 0;
}

.nav-auth-buttons .btn {
    white-space: nowrap;
    min-height: 36px;
}

/* Desktop: Show auth buttons in menu, hide nav-auth-buttons */
@media (min-width: 769px) {
    .nav-auth-buttons {
        display: none !important;
    }
    
    .nav-menu-auth-desktop {
        display: list-item;
    }
    
    /* Desktop nav menu - always visible and horizontal */
    .nav-menu {
        display: flex !important;
        position: static !important;
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: all !important;
        flex-direction: row !important;
        gap: 0 !important;
        overflow: visible !important;
        list-style: none !important;
        margin: 0 !important;
        align-items: center !important;
    }
}

/* Ensure Sign Up button text is white in nav menu */
.nav-menu .btn-primary {
    color: white !important;
}

.nav-menu .btn-primary:hover {
    color: white !important;
}

/* Ensure Sign Up button text is white in nav-auth-buttons (mobile) */
.nav-auth-buttons .btn-primary {
    color: white !important;
    background: var(--gradient-primary) !important;
}

.nav-auth-buttons .btn-primary:hover {
    color: white !important;
}

.nav-brand a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--primary-color);
}

.nav-brand .brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-brand .brand-tagline {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-top: -2px;
}

/* Base nav menu styles - desktop only (mobile styles are in @media query below) */

/* Hide mobile menu toggle on desktop */
/* Base mobile menu toggle - hidden by default, shown on mobile */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1002;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
    position: relative;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.75rem 1rem;
    display: block;
    transition: var(--transition);
    font-weight: 500;
    border-radius: 8px;
    margin: 0 0.25rem;
    background-color: #f8fafc;
}

.nav-menu > li > a:hover {
    color: var(--primary-color);
    background-color: #e2e8f0;
}

.dropdown {
    position: relative;
}

/* Add invisible padding area to prevent hover gap */
.dropdown::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 0.5rem;
    z-index: 1001;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: var(--transition);
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    list-style: none;
    min-width: 220px;
    padding: 0.5rem;
    animation: fadeInDown 0.2s ease-out;
    z-index: 1002;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    font-size: 0.95rem;
}

.dropdown-menu a:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
}

.page-header {
    margin-bottom: 3rem;
    padding: 2rem 0;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -24px;
    right: -24px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 0 0 4px 4px;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.page-header p {
    color: var(--text-muted);
    font-size: 1.125rem;
}

/* Hero Section */
.hero {
    background: var(--gradient-hero);
    color: white;
    padding: 5rem 0;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.1"><circle cx="30" cy="30" r="2"/></g></svg>');
    opacity: 0.5;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.hero .lead {
    font-size: 1.375rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Browse Tasks button - light blue background */
.hero .hero-buttons .btn-outline {
    background-color: #e0f2fe;
    border: 2px solid #0ea5e9;
    color: #0369a1;
}

.hero .hero-buttons .btn-outline:hover {
    background-color: #bae6fd;
    border-color: #0284c7;
    color: #0c4a6e;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.hero-section.about-hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
}

.hero-content {
    text-align: center;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    font-weight: 300;
    margin-top: 0.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
    line-height: 1.5;
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    box-shadow: none;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-success:hover {
    background-color: #059669;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Forms */
.form-container {
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background-color: #ffffff;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input[type="file"] {
    padding: 0.5rem;
    border: 2px dashed var(--border-color);
    border-radius: 10px;
    background-color: var(--light-color);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
}

.form-group input[type="file"]:hover {
    border-color: var(--primary-color);
    background-color: #f1f5f9;
}

.form-group input[type="file"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.photo-preview {
    display: inline-block;
    text-align: center;
}

.photo-preview img {
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.photo-preview img:hover {
    box-shadow: var(--shadow-lg);
    transform: scale(1.02);
}

.profile-photo {
    transition: var(--transition);
}

.profile-photo:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg) !important;
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Alerts */
.alert {
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.alert-error {
    background-color: #fef2f2;
    color: #991b1b;
    border-left-color: var(--danger-color);
}

.alert-success {
    background-color: #f0fdf4;
    color: #166534;
    border-left-color: var(--success-color);
}

/* Cards */
.task-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.task-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary-color);
}

/* Category Cards - Colorful Variants */
.category-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom, #ffffff 0%, #fafafa 100%);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
    opacity: 0;
    transition: var(--transition);
}

.category-card:hover::before {
    opacity: 1;
}

.category-icon-wrapper {
    width: auto;
    min-width: 60px;
    height: 80px;
	padding-left: 10px;
	padding-right: 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
    position: relative;
    overflow: visible;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.category-icon-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    opacity: 0.1;
    transition: var(--transition);
}

.category-icon {
    font-size: 2.5rem;
    line-height: 1;
	width: auto;
	min-width: auto;
	max-width: none;
	position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
    transition: var(--transition);
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
}

.category-card:hover .category-icon {
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
    transform: scale(1.1);
}

/* Color Schemes for Categories */
.category-color-1 {
    border-color: #3b82f6;
    background: linear-gradient(to bottom, #ffffff 0%, #eff6ff 100%);
}

.category-color-1:hover {
    background: linear-gradient(to bottom, #eff6ff 0%, #dbeafe 100%);
}

.category-color-1 .category-icon-wrapper {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.category-color-1 .category-icon-wrapper::before {
    background: #3b82f6;
}

.category-color-1:hover {
    border-color: #2563eb;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
    transform: translateY(-6px);
}

.category-color-1::before {
    color: #3b82f6;
}

.category-color-2 {
    border-color: #f97316;
    background: linear-gradient(to bottom, #ffffff 0%, #fff7ed 100%);
}

.category-color-2:hover {
    background: linear-gradient(to bottom, #fff7ed 0%, #ffedd5 100%);
}

.category-color-2 .category-icon-wrapper {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
}

.category-color-2 .category-icon-wrapper::before {
    background: #f97316;
}

.category-color-2:hover {
    border-color: #ea580c;
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.3);
    transform: translateY(-6px);
}

.category-color-2::before {
    color: #f97316;
}

.category-color-3 {
    border-color: #10b981;
    background: linear-gradient(to bottom, #ffffff 0%, #f0fdf4 100%);
}

.category-color-3:hover {
    background: linear-gradient(to bottom, #f0fdf4 0%, #dcfce7 100%);
}

.category-color-3 .category-icon-wrapper {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.category-color-3 .category-icon-wrapper::before {
    background: #10b981;
}

.category-color-3:hover {
    border-color: #059669;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
    transform: translateY(-6px);
}

.category-color-3::before {
    color: #10b981;
}

.category-color-4 {
    border-color: #14b8a6;
    background: linear-gradient(to bottom, #ffffff 0%, #f0fdfa 100%);
}

.category-color-4:hover {
    background: linear-gradient(to bottom, #f0fdfa 0%, #ccfbf1 100%);
}

.category-color-4 .category-icon-wrapper {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    color: white;
}

.category-color-4 .category-icon-wrapper::before {
    background: #14b8a6;
}

.category-color-4:hover {
    border-color: #0d9488;
    box-shadow: 0 10px 25px rgba(20, 184, 166, 0.3);
    transform: translateY(-6px);
}

.category-color-4::before {
    color: #14b8a6;
}

.category-color-5 {
    border-color: #a855f7;
    background: linear-gradient(to bottom, #ffffff 0%, #faf5ff 100%);
}

.category-color-5:hover {
    background: linear-gradient(to bottom, #faf5ff 0%, #f3e8ff 100%);
}

.category-color-5 .category-icon-wrapper {
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
    color: white;
}

.category-color-5 .category-icon-wrapper::before {
    background: #a855f7;
}

.category-color-5:hover {
    border-color: #9333ea;
    box-shadow: 0 10px 25px rgba(168, 85, 247, 0.3);
    transform: translateY(-6px);
}

.category-color-5::before {
    color: #a855f7;
}

.category-color-6 {
    border-color: #6366f1;
    background: linear-gradient(to bottom, #ffffff 0%, #eef2ff 100%);
}

.category-color-6:hover {
    background: linear-gradient(to bottom, #eef2ff 0%, #e0e7ff 100%);
}

.category-color-6 .category-icon-wrapper {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
}

.category-color-6 .category-icon-wrapper::before {
    background: #6366f1;
}

.category-color-6:hover {
    border-color: #4f46e5;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
    transform: translateY(-6px);
}

.category-color-6::before {
    color: #6366f1;
}

.category-color-7 {
    border-color: #ec4899;
    background: linear-gradient(to bottom, #ffffff 0%, #fdf2f8 100%);
}

.category-color-7:hover {
    background: linear-gradient(to bottom, #fdf2f8 0%, #fce7f3 100%);
}

.category-color-7 .category-icon-wrapper {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    color: white;
}

.category-color-7 .category-icon-wrapper::before {
    background: #ec4899;
}

.category-color-7:hover {
    border-color: #db2777;
    box-shadow: 0 10px 25px rgba(236, 72, 153, 0.3);
    transform: translateY(-6px);
}

.category-color-7::before {
    color: #ec4899;
}

.category-color-8 {
    border-color: #f59e0b;
    background: linear-gradient(to bottom, #ffffff 0%, #fffbeb 100%);
}

.category-color-8:hover {
    background: linear-gradient(to bottom, #fffbeb 0%, #fef3c7 100%);
}

.category-color-8 .category-icon-wrapper {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.category-color-8 .category-icon-wrapper::before {
    background: #f59e0b;
}

.category-color-8:hover {
    border-color: #d97706;
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3);
    transform: translateY(-6px);
}

.category-color-8::before {
    color: #f59e0b;
}

.category-card:hover .category-icon-wrapper {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.category-icon-wrapper::after {
    content: '';
    position: absolute;
    inset: -50%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
    transform: rotate(45deg);
    transition: var(--transition);
    opacity: 0;
}

.category-card:hover .category-icon-wrapper::after {
    animation: shimmer 0.6s ease-in-out;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
        opacity: 0;
    }
}

.category-card h3 {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    display: block;
}

.category-card h3 span {
    display: block;
}

/* Desktop icon (above title) - shown on desktop only */
.category-card > .category-icon-wrapper.desktop-icon {
    display: flex;
    margin: 0 auto 1.5rem;
}

/* Mobile icon (inside h3) - hidden on desktop */
.category-card h3 .category-icon-wrapper.mobile-icon {
    display: none;
}

/* Category card h3 display - block by default for desktop */
.category-card h3 {
    display: block;
}

.category-card p {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Category card layout on mobile - icon and title side by side */
@media (max-width: 768px) {
    .category-card {
        text-align: left;
    }
    
    /* Hide desktop icon (above title) */
    .category-card > .category-icon-wrapper.desktop-icon {
        display: none !important;
    }
    
    /* Show mobile icon (inside h3) */
    .category-card h3 .category-icon-wrapper.mobile-icon {
        display: flex !important;
        width: auto !important;
        min-width: 50px !important;
        height: 50px !important;
        padding: 0 12px !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
        border-radius: 12px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: visible !important;
    }
    
    .category-card h3 {
        text-align: left !important;
        display: flex !important;
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
        gap: 1rem !important;
        align-items: center !important;
        margin-bottom: 1rem !important;
        width: 100%;
    }
    
    .category-card h3 .category-icon {
        font-size: 1.5rem !important;
        line-height: 1 !important;
        white-space: nowrap !important;
        overflow: visible !important;
        text-overflow: clip !important;
        width: auto !important;
        max-width: none !important;
        min-width: auto !important;
    }
    
    .category-card h3 span {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        font-size: 1.125rem !important;
        display: block !important;
        line-height: 1.4 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    .category-card p {
        text-align: left;
        margin-top: 0;
        margin-bottom: 1.5rem;
        padding-left: 0;
    }
    
    .category-card .category-btn {
        margin: 0 auto;
        width: 100%;
    }
}

.category-card .category-btn {
    margin: 0 auto;
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.625rem 1.5rem;
    font-weight: 600;
    transition: var(--transition);
}

.category-color-1 .category-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.category-color-2 .category-btn {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.category-color-3 .category-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.category-color-4 .category-btn {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
}

.category-color-5 .category-btn {
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
}

.category-color-6 .category-btn {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
}

.category-color-7 .category-btn {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
}

.category-color-8 .category-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.category-card:hover .category-btn {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
    filter: brightness(1.1);
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.category-badge {
    background: var(--gradient-primary);
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

.budget {
    font-weight: 700;
    color: var(--success-color);
    font-size: 1.25rem;
    white-space: nowrap;
}

.budget-large {
    font-size: 2rem;
    font-weight: 800;
    color: var(--success-color);
    line-height: 1;
}

.task-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    line-height: 1.3;
}

.task-card h3 a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.task-card h3 a:hover {
    color: var(--primary-color);
}

.task-description {
    color: var(--text-muted);
    margin-bottom: 1rem;
    flex-grow: 1;
    line-height: 1.6;
}

.task-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.task-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    gap: 1rem;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.badge-warning {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-info {
    background-color: #cffafe;
    color: #164e63;
}

.badge-primary {
    background-color: #dbeafe;
    color: #1e40af;
}

.badge-success {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Grids */
.categories-grid,
.tasks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom, #ffffff 0%, #fafafa 100%);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
    transform-origin: left;
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card:nth-child(1) {
    border-color: #3b82f6;
}

.stat-card:nth-child(1)::before {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
}

.stat-card:nth-child(1):hover {
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.2);
    border-color: #2563eb;
}

.stat-card:nth-child(2) {
    border-color: #10b981;
}

.stat-card:nth-child(2)::before {
    background: linear-gradient(90deg, #10b981, #059669);
}

.stat-card:nth-child(2):hover {
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.2);
    border-color: #059669;
}

.stat-card:nth-child(3) {
    border-color: #f59e0b;
}

.stat-card:nth-child(3)::before {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.stat-card:nth-child(3):hover {
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.2);
    border-color: #d97706;
}

.stat-card:nth-child(4) {
    border-color: #8b5cf6;
}

.stat-card:nth-child(4)::before {
    background: linear-gradient(90deg, #8b5cf6, #7c3aed);
}

.stat-card:nth-child(4):hover {
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.2);
    border-color: #7c3aed;
}

.stat-card:nth-child(5) {
    border-color: #ec4899;
}

.stat-card:nth-child(5)::before {
    background: linear-gradient(90deg, #ec4899, #db2777);
}

.stat-card:nth-child(5):hover {
    box-shadow: 0 10px 25px rgba(236, 72, 153, 0.2);
    border-color: #db2777;
}

.stat-card:nth-child(5) h3 {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card:nth-child(6) {
    border-color: #06b6d4;
}

.stat-card:nth-child(6)::before {
    background: linear-gradient(90deg, #06b6d4, #0891b2);
}

.stat-card:nth-child(6):hover {
    box-shadow: 0 10px 25px rgba(6, 182, 212, 0.2);
    border-color: #0891b2;
}

.stat-card:nth-child(6) h3 {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card:nth-child(1) h3 {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card:nth-child(2) h3 {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card:nth-child(3) h3 {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card:nth-child(4) h3 {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
    background: linear-gradient(to bottom, #ffffff 0%, #f8fafc 100%);
}

.stat-card h3 {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    line-height: 1;
    transition: var(--transition);
}

.stat-card:hover h3 {
    transform: scale(1.05);
}

.stat-card p {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
}

/* Tables */
.tasks-table {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background: white;
    box-shadow: var(--shadow-sm);
}

.tasks-table table {
    width: 100%;
    border-collapse: collapse;
}

.tasks-table th,
.tasks-table td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.tasks-table th {
    background-color: var(--light-color);
    font-weight: 700;
    color: var(--text-color);
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

.tasks-table tr:last-child td {
    border-bottom: none;
}

.tasks-table tr:hover {
    background-color: var(--light-color);
}

/* Auth Pages */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 3rem 0;
}

.auth-card {
    background: linear-gradient(to bottom, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem;
    width: 100%;
    max-width: 500px;
    box-shadow: var(--shadow-xl);
}

.auth-card h1 {
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
}

.auth-links {
    margin-top: 2rem;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.auth-links p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.auth-links a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Browse Layout */
.browse-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.filters-sidebar {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 100px;
    box-shadow: var(--shadow-sm);
}

.filters-sidebar h3 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-color);
}

.tasks-list {
    min-height: 400px;
}

@media (max-width: 968px) {
    .browse-layout {
        grid-template-columns: 1fr;
    }
    
    .filters-sidebar {
        position: static;
    }
}

/* Task Detail */
.task-detail {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.task-main {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
}

.task-header-detail {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.task-header-detail h1 {
    margin: 1rem 0;
    font-size: 2rem;
    line-height: 1.2;
}

.task-meta-detail {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    align-items: center;
}

.task-description-full {
    margin-bottom: 2rem;
}

.task-description-full h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--dark-color);
}

.task-description-full p {
    line-height: 1.8;
    color: var(--text-color);
    font-size: 1.05rem;
}

.task-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.messages-section,
.review-section {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.messages-section h3,
.review-section h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.messages-list {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 1rem;
    padding-right: 0.5rem;
}

.message {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.message-sent {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    margin-left: 2rem;
    border-bottom-right-radius: 4px;
}

.message-received {
    background: var(--light-color);
    margin-right: 2rem;
    border-bottom-left-radius: 4px;
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.message-time {
    color: var(--text-muted);
    font-weight: 400;
}

.message-body {
    color: var(--text-color);
    line-height: 1.6;
}

.message-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.message-form textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-family: inherit;
    resize: vertical;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.empty-state p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: rgba(255, 255, 255, 0.9);
    padding: 4rem 0 1.5rem;
    margin-top: 5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    margin-bottom: 1.25rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.footer-amo {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-amo strong {
    color: white;
    font-weight: 700;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: white;
    padding-left: 4px;
}

.footer-link {
    display: inline-block;
    margin-top: 0.5rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

/* Dashboard */
.dashboard-actions {
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.tasker-profile-summary {
    margin-bottom: 3rem;
}

/* Admin Dashboard Styles */
.admin-sections {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.admin-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.admin-section:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.admin-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

.admin-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    transition: var(--transition);
}

.admin-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.admin-card h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background-color: #f8fafc;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group small {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.admin-table thead {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.admin-table th {
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

.admin-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.admin-table tbody tr {
    transition: var(--transition);
}

.admin-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.05) 0%, rgba(37, 99, 235, 0.02) 100%);
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.role-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: capitalize;
}

.role-badge.role-client {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.role-badge.role-tasker {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.role-badge.role-admin {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
}

.role-badge.role-task-manager {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
}

.role-badge.role-accountant {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    color: white;
}

.status-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: capitalize;
}

.status-badge.status-active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.status-badge.status-pending {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.status-badge.status-suspended {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.table-responsive {
    overflow-x: auto;
    border-radius: 16px;
    border: 2px solid var(--border-color);
    background: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
    position: relative;
}

.table-responsive::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: 16px 16px 0 0;
}

.status-select {
    padding: 0.375rem 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    background: linear-gradient(to bottom, #ffffff 0%, #fafafa 100%);
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
}

.status-select:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
    transform: translateY(-1px);
}

.status-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.profile-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
    transition: var(--transition);
}

.profile-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
    border-color: var(--primary-color);
}

.profile-card:hover::before {
    transform: rotate(45deg);
}

.profile-card h3 {
    color: var(--dark-color);
    font-size: 1.5rem;
}

/* Admin Dashboard Styles */
.admin-sections {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.admin-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.admin-section:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.admin-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

.admin-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    transition: var(--transition);
}

.admin-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.admin-card h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background-color: #f8fafc;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group small {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.admin-table thead {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.admin-table th {
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

.admin-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.admin-table tbody tr {
    transition: var(--transition);
}

.admin-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.05) 0%, rgba(37, 99, 235, 0.02) 100%);
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.role-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: capitalize;
}

.role-badge.role-client {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.role-badge.role-tasker {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.role-badge.role-admin {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
}

.role-badge.role-task-manager {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
}

.role-badge.role-accountant {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    color: white;
}

.status-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: capitalize;
}

.status-badge.status-active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.status-badge.status-pending {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.status-badge.status-suspended {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.profile-card h3 {
    color: var(--dark-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.profile-card p {
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    color: var(--text-color);
    font-size: 1rem;
}

.profile-card strong {
    color: var(--primary-color);
    font-weight: 600;
}

.profile-card .btn {
    margin-top: 1rem;
    position: relative;
    z-index: 1;
}

.profile-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.profile-stats {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
}

.profile-stats p {
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.taskers-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.tasker-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.tasker-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    align-items: flex-start;
}

.rating-stars {
    margin-left: 0.75rem;
    font-size: 1.125rem;
}

.review-task {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.review-comment {
    margin-top: 0.75rem;
    line-height: 1.7;
    color: var(--text-color);
}

/* About AMO Page */
.about-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.about-intro h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-intro .lead {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.about-features {
    margin: 4rem 0;
}

.feature-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--dark-color);
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.7;
}

.about-content {
    margin: 4rem 0;
}

.content-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.content-row.reverse {
    direction: rtl;
}

.content-row.reverse > * {
    direction: ltr;
}

.content-text h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.content-text p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.service-list {
    list-style: none;
    padding: 0;
}

.service-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
    line-height: 1.7;
}

.service-list li:last-child {
    border-bottom: none;
}

.service-list strong {
    color: var(--text-color);
    font-weight: 600;
}

.content-image-placeholder {
    background: var(--light-color);
    border-radius: 16px;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-box {
    text-align: center;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 1.125rem;
}

.stats-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 4rem 2rem;
    border-radius: 20px;
    margin: 4rem 0;
    text-align: center;
}

.stats-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--dark-color);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 1rem;
}

.cta-section {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 20px;
    margin: 4rem 0;
}

.cta-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.cta-section p {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.content-section {
    margin: 3rem 0;
}

/* Mobile Menu Toggle */
/* Mobile menu toggle styles defined above */

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    border-radius: 3px;
    transition: var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    
    .task-detail {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .browse-layout {
        grid-template-columns: 1fr;
    }
    
    .filters-sidebar {
        position: static;
        margin-bottom: 2rem;
    }
}

@media (max-width: 968px) {
    .categories-grid,
    .tasks-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .content-row {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .content-row.reverse {
        direction: ltr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    /* Navigation Mobile */
    .mobile-menu-toggle {
        display: flex !important;
        visibility: visible !important;
        position: relative !important;
        z-index: 1002 !important;
        cursor: pointer !important;
        pointer-events: all !important;
    }
    
    /* Show auth buttons outside menu on mobile */
    .nav-auth-buttons {
        display: flex !important;
        gap: 0.5rem;
        align-items: center;
        order: 2;
        margin-left: auto;
        margin-right: 0.5rem;
        flex-shrink: 1;
        z-index: 1001;
        position: relative;
        min-width: 0;
    }
    
    .nav-auth-buttons .btn {
        padding: 0.5rem 1rem !important;
        font-size: 0.875rem !important;
        min-height: 36px !important;
        white-space: nowrap;
    }
    
    /* Ensure Sign Up button has white text on mobile */
    .nav-auth-buttons .btn-primary {
        color: white !important;
        background: var(--gradient-primary) !important;
    }
    
    .nav-auth-buttons .btn-primary:hover {
        color: white !important;
    }
    
    /* Hide auth buttons from nav menu on mobile */
    .nav-menu-auth-desktop {
        display: none !important;
    }
    
    /* Ensure navbar container doesn't wrap on mobile */
    .navbar .container {
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
    }
    
    .nav-brand {
        order: 1;
        flex: 0 1 auto !important;
        min-width: 0;
        margin-right: auto;
    }
    
    .mobile-menu-toggle {
        order: 3 !important;
        flex-shrink: 0 !important;
        position: relative !important;
        z-index: 1002 !important;
        margin-left: 0.5rem !important;
        display: flex !important;
        visibility: visible !important;
        pointer-events: all !important;
        cursor: pointer !important;
        min-width: 44px !important;
    }
    
    /* Ensure hamburger button is not covered - consolidate with above rule */
    
    .mobile-menu-toggle:active,
    .mobile-menu-toggle:focus {
        outline: 2px solid var(--primary-color) !important;
        outline-offset: 2px !important;
        background-color: rgba(37, 99, 235, 0.1) !important;
    }
    
    .mobile-menu-toggle:hover {
        background-color: rgba(0, 0, 0, 0.05) !important;
        border-radius: 8px !important;
    }
    
    /* Base nav menu styles for mobile - positioned but hidden by default */
    .nav-menu {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        width: 280px !important;
        max-width: 85vw !important;
        height: 100vh !important;
        background: white !important;
        flex-direction: column !important;
        gap: 0 !important;
        padding: 5rem 0 2rem !important;
        box-shadow: -4px 0 20px rgba(0,0,0,0.1) !important;
        overflow-y: auto !important;
        z-index: 1001 !important;
        -webkit-overflow-scrolling: touch;
        margin: 0 !important;
        list-style: none !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s, visibility 0.3s !important;
    }
    
    /* Hide nav menu by default on mobile (more specific selector) */
    .nav-menu:not(.active) {
        display: none !important;
        transform: translateX(100%) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
    
    /* Show nav menu when active on mobile - must come after :not(.active) to override */
    .nav-menu.active,
    ul.nav-menu.active,
    #navMenu.active {
        display: flex !important;
        transform: translateX(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: all !important;
    }
    
    /* Backdrop overlay */
    .nav-menu-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s;
        z-index: 1000;
        display: none;
    }
    
    .nav-menu-backdrop.active {
        opacity: 1;
        pointer-events: all;
        display: block;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-menu > li > a {
        padding: 1rem 1.5rem;
        display: block;
        width: 100%;
        margin: 0;
        border-radius: 0;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .nav-menu > li:last-child {
        border-bottom: none;
    }
    
    .nav-menu .btn {
        margin: 0.5rem 1.5rem;
        width: calc(100% - 3rem);
    }
    
    .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0;
        margin: 0;
        min-width: 100%;
        background: var(--light-color);
        animation: slideDown 0.3s ease-out;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-toggle {
        width: 100%;
        justify-content: space-between;
    }
    
    .dropdown-menu a {
        padding-left: 2.5rem;
        font-size: 0.95rem;
    }
    
    .nav-brand .brand-name {
        font-size: 1.25rem;
    }
    
    .nav-brand .brand-tagline {
        font-size: 0.65rem;
    }
    
    /* Hero Section */
    .hero {
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero .lead {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .hero-buttons {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
        padding: 0 1rem !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .hero-buttons .btn {
        width: 100% !important;
        max-width: 300px !important;
        margin: 0 auto !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .about-preview {
        margin: 2rem 1rem !important;
        padding: 2rem 1.5rem !important;
    }
    
    /* Cards */
    .categories-grid,
    .tasks-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .category-card,
    .task-card {
        padding: 1.5rem;
    }
    
    /* Category icon wrapper on mobile - handled separately in category mobile section */
    .category-card > .category-icon-wrapper.desktop-icon {
        display: none;
    }
    
    /* Page Headers */
    .page-header {
        padding: 1.5rem 0;
        margin-bottom: 2rem;
    }
    
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    .about-intro h2 {
        font-size: 2rem;
    }
    
    .about-intro .lead {
        font-size: 1.125rem;
        padding: 0 1rem;
    }
    
    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-card h3 {
        font-size: 2rem;
    }
    
    .stats-section {
        padding: 3rem 1.5rem;
        margin: 3rem 0;
    }
    
    .stats-section h2 {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    /* Forms */
    .auth-card {
        padding: 2rem 1.5rem;
        margin: 1rem;
        border-radius: 16px;
    }
    
    .auth-card h1 {
        font-size: 1.75rem;
    }
    
    .form-container {
        padding: 0 1rem;
    }
    
    .task-form {
        padding: 0;
    }
    
    /* Tables */
    .tasks-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .tasks-table table {
        min-width: 600px;
    }
    
    .tasks-table th,
    .tasks-table td {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Task Detail */
    .task-main {
        padding: 1.5rem;
    }
    
    .task-header-detail h1 {
        font-size: 1.5rem;
    }
    
    .task-meta-detail {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
    
    .budget-large {
        font-size: 1.75rem;
    }
    
    .messages-list {
        max-height: 300px;
    }
    
    .message-sent,
    .message-received {
        margin-left: 0;
        margin-right: 0;
    }
    
    /* Buttons */
    .btn {
        min-height: 44px; /* Touch target size */
        padding: 0.75rem 1.25rem;
    }
    
    .btn-sm {
        min-height: 40px;
        padding: 0.5rem 1rem;
    }
    
    .btn-lg {
        min-height: 48px;
        padding: 1rem 1.5rem;
    }
    
    /* Footer */
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-section {
        text-align: center;
    }
    
    /* Dashboard */
    .dashboard-actions {
        flex-direction: column;
    }
    
    .dashboard-actions .btn {
        width: 100%;
    }
    
    /* About Page */
    .feature-card {
        padding: 1.5rem 1rem;
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
    
    .cta-section {
        padding: 3rem 1.5rem;
        margin: 3rem 0;
    }
    
    .cta-section h2 {
        font-size: 1.75rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Category Section */
    .categories-section {
        margin: 3rem 0 !important;
    }
    
    .categories-section > div > h2 {
        font-size: 2rem !important;
        padding: 0 1rem;
    }
    
    .categories-section > div > p {
        padding: 0 1rem;
    }
    
    /* Browse Layout */
    .filters-sidebar {
        padding: 1.25rem;
    }
    
    .filters-sidebar h3 {
        font-size: 1.125rem;
        margin-bottom: 1rem;
    }
    
    /* Empty State */
    .empty-state {
        padding: 3rem 1.5rem;
    }
    
    .empty-state .btn {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero {
        padding: 2.5rem 0;
    }
    
    .hero h1 {
        font-size: 1.75rem;
        padding: 0 0.5rem;
    }
    
    .hero .lead {
        font-size: 0.95rem;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .category-card,
    .task-card {
        padding: 1.25rem;
        border-radius: 16px;
    }
    
    .category-icon-wrapper {
        width: auto !important;
        min-width: 60px !important;
        height: 60px !important;
        padding: 0 12px !important;
        overflow: visible !important;
    }
    
    .category-icon {
        font-size: 1.75rem !important;
        width: auto !important;
        max-width: none !important;
        overflow: visible !important;
        white-space: nowrap !important;
    }
    
    .auth-card {
        padding: 1.5rem 1rem;
    }
    
    .task-main {
        padding: 1.25rem;
    }
    
    .task-header-detail h1 {
        font-size: 1.375rem;
    }
    
    .budget-large {
        font-size: 1.5rem;
    }
    
    .stats-section {
        padding: 2.5rem 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .nav-menu {
        width: 100%;
        right: -100%;
    }
    
    .about-intro h2 {
        font-size: 1.75rem;
    }
    
    .cta-section h2 {
        font-size: 1.5rem;
    }
    
    /* Text adjustments */
    .task-description-full p,
    .content-text p {
        font-size: 1rem;
    }
    
    /* Smaller buttons on very small screens */
    .btn {
        font-size: 0.95rem;
        padding: 0.625rem 1rem;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .task-card:hover,
    .category-card:hover {
        transform: none;
    }
    
    .category-card:hover .category-icon-wrapper {
        transform: none;
    }
    
    /* Larger touch targets */
    a, button, input, select, textarea {
        min-height: 44px;
    }
    
    /* Remove hover styles */
    .nav-menu a:hover {
        background-color: var(--light-color);
    }
}

/* Landscape mobile */
@media (max-width: 968px) and (orientation: landscape) {
    .hero {
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .nav-menu {
        padding-top: 4rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Prevent horizontal scroll on mobile */
body {
    overflow-x: hidden;
}

/* Better text rendering on mobile */
@media (max-width: 768px) {
    body {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
    
    /* Improve touch scrolling */
    * {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    }
    
    /* Better input handling on mobile */
    input, textarea, select {
        font-size: 16px !important; /* Prevents zoom on iOS */
    }
}

/* Table responsive wrapper */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1rem 0;
}

.table-responsive table {
    min-width: 600px;
}

/* Image responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Ensure buttons and links are touch-friendly */
a, button {
    -webkit-tap-highlight-color: rgba(37, 99, 235, 0.2);
    touch-action: manipulation;
}

/* Better focus indicators for mobile */
@media (max-width: 768px) {
    *:focus-visible {
        outline: 3px solid var(--primary-color);
        outline-offset: 2px;
    }
}

/* Loading states */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Sign Up Process Steps Styling */
.signup-step-card {
    position: relative;
    transition: all 0.3s ease;
}

.signup-step-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl) !important;
}

.signup-step-card .step-icon {
    transition: transform 0.3s ease;
}

.signup-step-card:hover .step-icon {
    transform: scale(1.1) rotate(5deg);
}

@media (max-width: 768px) {
    .signup-steps {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .signup-step-card {
        padding: 1.5rem !important;
    }
}

/* How It Works Tabs Styling */
.how-it-works-tabs {
    max-width: 1200px;
    margin: 0 auto;
}

.tabs-header {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1rem;
}

.tab-button {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    bottom: -1px;
}

.tab-button:hover {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
    border-radius: 8px 8px 0 0;
}

.tab-button.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
    border-radius: 8px 8px 0 0;
}

.tab-content {
    display: none !important;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .tabs-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .tab-button {
        width: 100%;
        padding: 0.875rem 1.5rem;
        border-bottom: 2px solid var(--border-color);
        border-radius: 8px;
    }
    
    .tab-button.active {
        border-bottom-color: var(--primary-color);
        background: var(--primary-color);
        color: white;
    }
}

/* Skills Selection Styling */
.skills-selection {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
    max-height: 350px;
    overflow-y: auto;
    padding: 1.25rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 50%, #f8fafc 100%);
    border-radius: 16px;
    border: 2px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

.skill-checkbox-label {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    cursor: pointer;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid var(--border-color);
    user-select: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    width: 100%;
    gap: 0;
}

.skill-checkbox-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.skill-checkbox-label:hover::before {
    left: 100%;
}

.skill-checkbox-label:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-color: var(--primary-light);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.skill-checkbox-label:active {
    transform: translateY(0) scale(0.98);
}

.skill-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
    pointer-events: none;
    visibility: hidden;
}


.skill-checkbox:checked + .skill-name {
    color: var(--primary-color);
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(37, 99, 235, 0.1);
}

.skill-checkbox-label:has(.skill-checkbox:checked) {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 50%, #bfdbfe 100%);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15), 0 4px 12px rgba(37, 99, 235, 0.2);
    transform: translateY(-1px);
    animation: skillPulse 0.3s ease;
}

@keyframes skillPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.skill-name {
    font-size: 0.9375rem;
    color: var(--text-color);
    transition: all 0.2s ease;
    line-height: 1.2;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    display: inline-block;
    flex: 0 1 auto;
}

.skills-help-text {
    margin-top: 0.75rem;
    display: block;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-style: italic;
}

/* Skills selection scrollbar styling */
.skills-selection::-webkit-scrollbar {
    width: 8px;
}

.skills-selection::-webkit-scrollbar-track {
    background: var(--light-color);
    border-radius: 4px;
}

.skills-selection::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.skills-selection::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Mobile responsive for skills */
@media (max-width: 768px) {
    .skills-selection {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.5rem;
        padding: 1rem;
    }
    
    .skill-checkbox-label {
        padding: 0.5rem 0.75rem;
        gap: 0.375rem;
    }
    
    .skill-checkbox {
        width: 16px;
        height: 16px;
    }
    
    .skill-name {
        font-size: 0.875rem;
    }
}
