/* Enhanced Color Palette and Variables */
:root {
    --primary-color: #0ea5e9; /* Light blue */
    --secondary-color: #0c4a6e; /* Darker blue for depth */
    --accent-color: #38bdf8; /* Lighter blue for accents */
    --text-color: #020427; /* Near black for text */
    --background-color: #f8f9fa;
    --card-shadow: 0 8px 16px rgba(0,0,0,0.1);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*   {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    line-height: 1.8;
}
  
.tabs button {
    border-color: var(--primary-color);
    color: var(--primary-color);
}
  
.tabs button.active, .tabs button:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Enhanced Header */
header {
    background: linear-gradient(to right, #ffffff, #f8fafc);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 0.5rem 0;
}
  
header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}
  
header p {
    font-size: 1.2rem;
}
  
/* Tabs Section */
.tabs {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}
  
.tabs button {
    padding: 0.8rem 2rem;
    margin: 0 0.5rem;
    font-size: 1rem;
    border: 2px solid #0d6efd;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
}
  
.tabs button.active, .tabs button:hover {
    background: #0d6efd;
    color: #fff;
}
  
/* Card Section */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
}
  
.card {
    background: rgba(214, 207, 207, 0.3);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    align-self: center;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s;
}
  
.card:hover {
    transform: translateY(-5px);
}
  
.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
  
.card h3 {
    font-size: 1.5rem;
    margin: 1rem;
}
  
.card p {
    margin: 0 1rem 1rem;
    color: #555;
}
  
.card .btn {
    display: inline-block;
    margin: 1rem;
    padding: 0.6rem 1.5rem;
    color: #fff;
    background: #0d6efd;
    border-radius: 25px;
    text-decoration: none;
    font-size: 1rem;
}
  
.card .btn:hover {
    background: #0056b3;
}

.navbar {
    padding: 1rem 0;
    color: #020427;
}

.navbar-brand {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-color) !important;
    letter-spacing: -0.5px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-container img {
    transition: var(--transition-smooth);
    filter: drop-shadow(0 4px 6px rgba(14, 165, 233, 0.15));
}

.logo-container img:hover {
    transform: scale(1.02);
}

.modern-navbar {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.navbar-user-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.user-profile-mini {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 50px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.user-profile-mini:hover {
    background: #e9ecef;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.user-name {
    font-weight: 600;
    color: #2c3e50;
}

.wallet-balance {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #0a74df;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 500;
}

.category-dropdown:hover .dropdown-menu {
    display: block;
}

.notifications-dropdown {
    max-height: 300px;
    overflow-y: auto;
    width: 300px;
}

.notification-badge {
    background: red;
    color: white;
    border-radius: 50%;
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(50%, -50%);
}


.nav-link {
    color: var(--text-color) !important;
    font-weight: 500;
    padding: 0.7rem 1.2rem !important;
    margin: 0 0.3rem;
    border-radius: 8px;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-link:hover {
    background-color: rgba(14, 165, 233, 0.1);
    transform: translateY(-1px);
}

.nav-link i {
    margin-right: 0.5rem;
    font-size: 0.9em;
    color: var(--primary-color);
}

.nav-item {
    display: flex;
    align-items: center;
}

.wallet-link {
    background-color: rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 0.5rem 1rem !important;
}

.wallet-link i {
    margin-right: 0.5rem;
}

@media (max-width: 991px) {
    .navbar-collapse {
        background-color: rgba(44, 62, 80, 0.95);
        padding: 1rem;
        border-radius: 10px;
        margin-top: 1rem;
    }
    
    .nav-link {
        padding: 0.7rem 1rem !important;
    }
}
@media (max-width: 576px) {
    .tabs {
        flex-direction: column;
    }
    .card-container {
        grid-template-columns: 1fr;
    }
    .navbar-collapse {
        padding: 0.5rem;
    }
}

.profile-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: var(--card-shadow);
}

.account-img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border: 4px solid white;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
}


.account-img:hover {
    transform: scale(1.05);
}

.nav-tabs .nav-link {
    color: var(--text-color);
    background-color: transparent;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 0;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
}

.nav-tabs .nav-link:hover {
    color: var(--primary-color);
    border-color: transparent;
    background: rgba(14, 165, 233, 0.05);
}


/* Enhanced Cards */
.card {
    background: white;
    border: none;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 20px rgba(14, 165, 233, 0.15);
}

.card-body {
    padding: 1.8rem;
}


.social-links a {
    margin-right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-2px);
}

.skill-item {
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.portfolio-card {
    transition: transform 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-5px);
}

.portfolio-image {
    height: 200px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: normal;
}

.stats-container {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.stat-item i {
    color: #2196F3;
}

.edit-profile-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    padding: 8px 20px;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 2px solid #2196F3;
    color: #2196F3;
    transition: all 0.3s ease;
}

.edit-profile-btn:hover {
    background-color: #2196F3;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
/* CHAT NOTIFICATIONS */

/* Enhanced Notifications */
.notifications-dropdown {
    min-width: 320px;
    border-radius: 12px;
    border: none;
    box-shadow: var(--card-shadow);
}

.notification-badge {
    background-color: var(--primary-color);
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: 600;
}

.notification-item {
    padding: 1rem;
    transition: var(--transition-smooth);
    border-left: 3px solid transparent;
}

.notification-item:hover {
    background-color: rgba(14, 165, 233, 0.05);
    border-left: 3px solid var(--primary-color);
}


.notification-content {
    color: #212529;
    margin-bottom: 5px;
}

.notification-meta {
    font-size: 0.8rem;
    color: #6c757d;
}

.star {
    font-size: 2rem;
    cursor: pointer;
    color: gray;
}

.star:hover {
    color: gold;
}

/* Add this to your CSS file */

.rating {
    display: inline-block;
    font-size: 1.5rem;
    color: #f8c100;
    cursor: pointer;
}

.rating input {
    display: none;
}

.rating label {
    font-size: 1.5rem;
}

.rating input:checked ~ label {
    color: #f8c100;
}

.rating label:hover,
.rating label:hover ~ label {
    color: #f8c100;
}


.proposal-card .card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease-in-out;
}

.project-meta .list-group-item {
    border-left: none;
    border-right: none;
}

.project-meta .list-group-item:first-child {
    border-top: none;
}

.project-meta .list-group-item:last-child {
    border-bottom: none;
}

.job_container {
    padding-top: 20px;
}

.project-details {
    padding: 10px;
}

.detail-header {
    color: #495057;
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: 600;
}

.project-details p {
    margin-bottom: 12px;
}

.project-details ul {
    margin-bottom: 12px;
}

/* Enhanced Buttons */
.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition-smooth);
    text-transform: capitalize;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: var(--primary-color);
    border: none;
    box-shadow: 0 4px 6px rgba(14, 165, 233, 0.2);
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: 0 6px 8px rgba(14, 165, 233, 0.3);
}

/* Responsive Enhancements */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: white;
        padding: 1.5rem;
        border-radius: 12px;
        box-shadow: var(--card-shadow);
    }
  
    .nav-link {
        padding: 1rem !important;
    }
}

@media (max-width: 576px) {
    .card-container {
        padding: 1rem;
    }
    
    .profile-header {
        padding: 1.5rem;
    }
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.fee-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.highlight-box {
    border-left: 4px solid var(--primary-color);
}

.pricing-item {
    transition: transform 0.3s ease;
}

.pricing-item:hover {
    transform: translateY(-5px);
}

.section-header h2 {
    font-size: 1.75rem;
    color: var(--text-color);
}


.modal {
    display: none;
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    position: relative;
    z-index: 1001; /* Higher than modal’s 1000 */
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    max-width: 500px;
    width: 90%;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Force consistent navbar spacing */
.navbar-user-section {
    display: flex;
    align-items: center;
    gap: 1.5rem !important; /* override Bootstrap gap */
}

.navbar .nav-link {
    padding: 0.75rem 1.25rem !important; /* normalize padding */
}

/* Fix collapsed menu inconsistencies */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: white !important;
        padding: 1.5rem !important;
        border-radius: 12px;
        box-shadow: var(--card-shadow);
    }
}
