/* Color Variables */
:root {
    --bg-dark: #1b1e24;
    --bg-card: #232730;
    --bg-input: #2a2f3a;
    --text-primary: #ffffff;
    --text-secondary: #9ba3b5;
    --accent-orange: #f59e0b;
    --accent-orange-hover: #d97706;
    --border-color: #333945;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
}

/* Typography */
h1, h2, h3, h4 { margin: 0; color: var(--text-primary); }
p { color: var(--text-secondary); line-height: 1.6; }

/* Navigation */
nav {
    background-color: var(--bg-dark);
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px; 
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
}

.checkbox-container input[type="checkbox"] {
    width: auto; 
    margin: 0;
    padding: 0;
    cursor: pointer;
}

/* --- MODAL UI --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    animation: fadeIn 0.2s ease-out;
}




.specializations-box {
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1rem;
    height: 180px; 
    overflow-y: auto;
}

.specializations-box label {
    color: var(--text-primary);
    cursor: pointer;
}





/* --- ADMIN TABS UI --- */
.admin-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.admin-tab {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    padding: 10px 15px;
    font-weight: 600;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
}

.admin-tab:hover {
    color: var(--text-primary);
}

.admin-tab.active {
    color: var(--accent-orange);
    border-bottom: 3px solid var(--accent-orange);
}




/* --- ALERT BANNER UI --- */
.alert-banner {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
    animation: fadeIn 0.3s ease-in-out;
}

.alert-error {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    color: #fca5a5;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid #10b981;
    color: #6ee7b7;
}

.alert-contact-info {
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 10px;
    margin-top: 10px;
    color: var(--text-secondary);
}

.alert-contact-info a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.alert-contact-info a:hover {
    color: var(--accent-orange);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.nav-links { display: flex; gap: 1.5rem; align-items: center; }

.nav-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    font-weight: 500;
}

.nav-btn:hover { color: var(--accent-orange); }

/* Main Container */
.main-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Buttons */
.btn-primary {
    background-color: var(--accent-orange);
    color: #000;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}
.btn-primary:hover { background-color: var(--accent-orange-hover); }

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}
.btn-outline:hover { background-color: var(--bg-input); }

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 4rem;
    margin-top: 2rem;
}

.hero-content { flex: 1; }
.hero-content h1 { font-size: 3rem; margin-bottom: 1rem; line-height: 1.2; }
.hero-content p { font-size: 1.1rem; margin-bottom: 2rem; max-width: 90%; }
.hero-buttons { display: flex; gap: 1rem; }

.hero-image { 
    flex: 1; 
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 100%;
    max-width: 650px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    object-fit: contain; /* Ensures your custom banner text isn't cut off */
    height: auto;
}

/* Section Containers */
.section-container { margin-bottom: 3rem; }
.section-title { font-size: 1.2rem; margin-bottom: 1rem; font-weight: 600; }

/* Trade Chips */
.trade-chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.trade-chip {
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}
.trade-chip.active {
    border-color: var(--text-secondary);
    color: var(--text-primary);
}
.trade-chip:hover { border-color: var(--accent-orange); color: var(--text-primary); }

/* Search Bar */
.search-bar-container {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-end;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.search-group { display: flex; flex-direction: column; flex: 1; min-width: 200px;}
.search-group label { font-size: 12px; color: var(--text-secondary); margin-bottom: 6px; font-weight: 600; }

input, select, textarea {
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-orange);
}

.slider-group { flex: 0.5; }
.search-btn { height: 40px; padding: 0 30px; }

/* Providers Grid */
.providers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.provider-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.provider-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.provider-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #84cc16; /* The green glow */
    display: flex;
    justify-content: center;
    align-items: flex-end;
    overflow: hidden;
}

.provider-avatar img { width: 90%; height: 90%; object-fit: cover; border-radius: 50%; }

.provider-info { flex: 1; }
.provider-info h4 { font-size: 16px; margin-bottom: 4px; }
.provider-info span { font-size: 12px; color: var(--text-secondary); }

.provider-rating {
    background-color: var(--accent-orange);
    color: #000;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 4px;
}

.provider-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}
.provider-meta span { display: flex; align-items: center; gap: 6px; }

.btn-full-profile {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    width: 100%;
}
.btn-full-profile:hover { border-color: var(--text-secondary); }

/* --- AUTH & REGISTRATION STYLES --- */
        .auth-header {
            text-align: center;
            max-width: 600px;
            margin: 0 auto 2rem auto;
            color: var(--text-muted);
            line-height: 1.5;
        }

        .auth-card-main {
            background-color: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 2.5rem;
            max-width: 650px;
            margin: 0 auto 2rem auto;
            box-shadow: 0 10px 25px rgba(0,0,0,0.2);
        }

        .form-group {
            margin-bottom: 1.5rem;
            display: flex;
            flex-direction: column;
        }

        .form-group label {
            font-size: 0.9rem;
            font-weight: 600;
            margin-bottom: 8px;
            color: var(--text-main);
        }

        .form-group input, .form-group select {
            background-color: var(--bg-input);
            border: 1px solid var(--border-color);
            color: var(--text-main);
            padding: 14px;
            border-radius: 6px;
            font-size: 1rem;
            outline: none;
            transition: border-color 0.2s;
        }

        .form-group input:focus, .form-group select:focus {
            border-color: var(--accent-orange);
        }

        .field-hint {
            font-size: 0.8rem;
            color: var(--text-muted);
            margin-top: 6px;
        }

        /* Custom Radio Buttons - FIXED ALIGNMENT */
        .role-group { margin-bottom: 2rem; }
        
        .radio-options {
            display: flex;
            flex-direction: column;
            gap: 14px; /* Slightly more breathing room */
        }

        .radio-container {
            display: flex;
            align-items: center;
            position: relative;
            padding-left: 36px;
            cursor: pointer;
            font-size: 1rem;
            user-select: none;
            min-height: 24px; /* Ensures the row is tall enough */
        }

        .radio-container input {
            position: absolute;
            opacity: 0;
            cursor: pointer;
        }

        .checkmark {
            position: absolute;
            top: 50%;
            left: 0;
            transform: translateY(-50%); /* Perfectly centers the outer ring with the text */
            height: 22px;
            width: 22px;
            background-color: transparent;
            border: 2px solid var(--border-color);
            border-radius: 50%;
            transition: border-color 0.2s ease;
        }

        .radio-container:hover input ~ .checkmark { 
            border-color: var(--accent-orange); 
        }

        .radio-container input:checked ~ .checkmark {
            border-color: var(--accent-orange);
        }

        .checkmark:after {
            content: "";
            position: absolute;
            display: none;
            
            /* The magic centering trick */
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%); 
            
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background-color: #ffffff;
        }

        .radio-container input:checked ~ .checkmark:after { 
            display: block; 
        }

        /* Codename Box */
        .codename-box {
            background-color: var(--bg-input);
            border-radius: 8px;
            padding: 1.5rem;
            margin-bottom: 2rem;
            border-left: 4px solid var(--accent-orange);
        }

        .codename-header {
            display: flex;
            align-items: center;
            gap: 10px;
            font-weight: 700;
            margin-bottom: 15px;
        }

        .codename-header i { color: var(--accent-orange); font-size: 1.2rem; }

        .codename-box h3 {
            color: var(--accent-orange);
            font-size: 1.5rem;
            margin-bottom: 10px;
            letter-spacing: 0.5px;
        }

        .codename-box p {
            font-size: 0.85rem;
            color: var(--text-muted);
            line-height: 1.4;
        }

        .btn-submit { width: 100%; padding: 15px; font-size: 1.1rem; margin-bottom: 1.5rem; }

        .auth-footer-link { text-align: left; color: var(--accent-orange); cursor: pointer; font-size: 0.95rem; }
        .auth-footer-link:hover { text-decoration: underline; }

        /* Feature Cards Row */
        .features-row {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1.5rem;
            max-width: 800px;
            margin: 0 auto;
        }

        .feature-box {
            background-color: transparent;
            border: 1px solid var(--border-color);
            border-radius: 10px;
            padding: 1.5rem;
        }

        .feature-box i {
            color: var(--accent-orange);
            font-size: 1.5rem;
            margin-bottom: 1rem;
        }
        
        
        
        
        
        
        
        
        
        
        
        
        
        /* --- DASHBOARD SPECIFIC UI --- */
.profile-header {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background-color: var(--bg-input);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: var(--text-muted);
    border: 2px solid var(--border-color);
}

.profile-details { flex: 1; }
.profile-details h2 { margin-bottom: 5px; font-size: 1.8rem; }
.profile-details p { font-size: 1rem; color: var(--text-secondary); }

.profile-rating {
    text-align: right;
    background: var(--bg-input);
    padding: 15px 20px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.profile-rating span { display: block; font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 5px; }
.rating-badge { font-size: 1.5rem; font-weight: bold; color: var(--accent-orange); }

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Tables for Job History */
.table-container { overflow-x: auto; }
.job-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.job-table th {
    text-align: left;
    padding: 12px;
    background-color: var(--bg-input);
    color: var(--text-muted);
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
}
.job-table td {
    padding: 15px 12px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

/* Status Badges */
.status-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}
.status-pending { background-color: rgba(245, 158, 11, 0.2); color: #fcd34d; }
.status-accepted { background-color: rgba(59, 130, 246, 0.2); color: #93c5fd; }
.status-completed { background-color: rgba(16, 185, 129, 0.2); color: #6ee7b7; }
        
        
        
        
        
        
        
        
        
        
        
        
        
        

        .feature-box h4 { margin-bottom: 10px; font-size: 1rem; }
        .feature-box p { font-size: 0.85rem; color: var(--text-muted); }

/* Utilities */
.hidden { display: none !important; }