@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #2e7d32;
    --primary-light: #e8f5e9;
    --primary-hover: #1b5e20;
    --primary-glow: rgba(46, 125, 50, 0.15);
    
    --secondary-color: #81c784;
    --accent-color: #ffb300;
    --accent-light: #fff8e1;
    
    --text-main: #2d3748;
    --text-muted: #718096;
    --text-light: #ffffff;
    
    --bg-main: #fcfdfe;
    --bg-card: #ffffff;
    --bg-light: #f4f8f4;
    
    --border-color: #e2e8f0;
    --border-focus: #81c784;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.02);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.04), 0 4px 6px -2px rgba(0,0,0,0.02);
    --shadow-lg: 0 20px 25px -5px rgba(46, 125, 50, 0.05), 0 10px 10px -5px rgba(0,0,0,0.02);
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Base Layout & Grid */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Navigation */
header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition-normal);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-weight: 800;
    font-size: 24px;
    color: var(--primary-color);
    gap: 8px;
}

.logo-dot {
    width: 12px;
    height: 12px;
    background-color: var(--accent-color);
    border-radius: var(--radius-full);
    display: inline-block;
}

nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 15px;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-normal);
    border: 2px solid transparent;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--primary-glow);
}

.btn-secondary {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: #d4edd6;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

.btn-accent {
    background-color: var(--accent-color);
    color: #1a202c;
}

.btn-accent:hover {
    background-color: #e59e00;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    padding: 80px 0 60px 0;
    background: radial-gradient(circle at top right, var(--primary-light), transparent 45%);
    text-align: center;
}

.hero-tag {
    display: inline-block;
    padding: 6px 14px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    color: #1b5e20;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 30px auto;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* Main Content area */
main {
    flex-grow: 1;
    padding-bottom: 80px;
}

/* Alerts and Messages */
.alert {
    padding: 16px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success {
    background-color: var(--primary-light);
    color: #1b5e20;
    border-left: 4px solid var(--primary-color);
}

.alert-danger {
    background-color: #ffebee;
    color: #c62828;
    border-left: 4px solid #e53e3e;
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-hover);
}

/* Category Filter Bar */
.category-bar {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 8px 0;
    margin-bottom: 30px;
    scrollbar-width: none;
}

.category-bar::-webkit-scrollbar {
    display: none;
}

.category-chip {
    padding: 8px 18px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    background-color: var(--bg-card);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    white-space: nowrap;
    transition: var(--transition-fast);
}

.category-chip:hover, .category-chip.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Jobs Grid & Cards */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.job-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 24px;
    transition: var(--transition-normal);
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.job-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.job-card-category {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.job-card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a202c;
}

.job-card-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
}

.job-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.job-owner {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Details and forms */
.card-detail {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

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

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

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-family: inherit;
    font-size: 15px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    outline: none;
    transition: var(--transition-fast);
    background-color: #fafbfa;
}

.form-control:focus {
    border-color: var(--border-focus);
    background-color: var(--bg-card);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Dashboard Columns */
.dashboard-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    margin-top: 30px;
}

.sidebar-card {
    background-color: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border-color);
}

.user-profile-info {
    text-align: center;
    margin-bottom: 24px;
}

.avatar-placeholder {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    color: white;
    font-size: 32px;
    font-weight: bold;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
}

.wallet-widget {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.wallet-balance-title {
    font-size: 12px;
    text-transform: uppercase;
    opacity: 0.8;
    letter-spacing: 0.5px;
}

.wallet-balance-val {
    font-size: 32px;
    font-weight: 800;
    margin: 8px 0;
}

/* Offer List */
.offer-item {
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    background-color: var(--bg-card);
    transition: var(--transition-fast);
}

.offer-item:hover {
    border-color: var(--primary-color);
}

.offer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.badge {
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-pending { background-color: #fef3c7; color: #d97706; }
.badge-accepted { background-color: var(--primary-light); color: #166534; }
.badge-declined { background-color: #fee2e2; color: #991b1b; }

.paynow-loader {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    border: 3px solid var(--secondary-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: paynow-spin 0.8s linear infinite;
}

.paynow-loader.is-hidden { display: none; }

@keyframes paynow-spin {
    to { transform: rotate(360deg); }
}

/* Ratings */
.stars {
    display: inline-flex;
    gap: 4px;
    color: var(--accent-color);
    font-size: 20px;
}

/* Footer */
footer {
    background-color: #fafbfa;
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    margin-top: auto;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

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

.animate-fade-in {
    animation: fadeInUp 0.5s ease forwards;
}

/* Micro-animations */
.hover-scale {
    transition: transform var(--transition-fast);
}
.hover-scale:hover {
    transform: scale(1.02);
}
