/* Custom Style for Md Maruf Hossain - Upwork CV & Fiverr Hybrid Theme */

:root {
    --upwork-green: #14a800;
    --upwork-green-hover: #108a00;
    --upwork-badge-pink: #f1367a;
    --upwork-badge-bg: #fdf2f6;
    --fiverr-green: #1dbf73;
    --primary-color: #14a800;
    --primary-hover: #118d02;
    --accent-blue: #0d6efd;
    --bg-main: #f7f9fa;
    --bg-card: #ffffff;
    --bg-sidebar: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --badge-bg: #e8f7e8;
    --badge-color: #14a800;
    --table-header-bg: #f1f5f9;
    --input-bg: #ffffff;
    --input-text: #1e293b;
}

[data-theme="dark"] {
    --upwork-green: #14a800;
    --upwork-green-hover: #1dbf73;
    --upwork-badge-pink: #f86d9c;
    --upwork-badge-bg: #2b1722;
    --fiverr-green: #1dbf73;
    --primary-color: #22c55e;
    --primary-hover: #16a34a;
    --accent-blue: #38bdf8;
    --bg-main: #0c110d;
    --bg-card: #162118;
    --bg-sidebar: #121c14;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --border-color: #27372c;
    --card-shadow: 0 6px 25px rgba(0, 0, 0, 0.45);
    --badge-bg: #1c2b20;
    --badge-color: #4ade80;
    --table-header-bg: #1f2d22;
    --input-bg: #111a13;
    --input-text: #f8fafc;
}

body {
    background-color: var(--bg-main) !important;
    color: var(--text-primary) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

/* Fix Bootstrap dark mode text clashes */
[data-theme="dark"] .text-dark,
[data-theme="dark"] .table-light,
[data-theme="dark"] .bg-light,
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select,
[data-theme="dark"] .modal-content,
[data-theme="dark"] .card {
    background-color: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .table {
    --bs-table-bg: transparent;
    --bs-table-color: #f8fafc !important;
    border-color: var(--border-color);
    color: #f8fafc !important;
}

[data-theme="dark"] .table th,
[data-theme="dark"] .table td {
    color: #f8fafc !important;
    background-color: transparent;
}

[data-theme="dark"] .table-striped>tbody>tr:nth-of-type(odd)>* {
    --bs-table-accent-bg: rgba(255, 255, 255, 0.03);
    color: #f8fafc !important;
}

[data-theme="dark"] .table thead.table-light th,
[data-theme="dark"] .table thead.table-light tr,
[data-theme="dark"] thead.table-light {
    background-color: #1f2d22 !important;
    color: #f8fafc !important;
    --bs-table-bg: #1f2d22 !important;
    --bs-table-color: #f8fafc !important;
}

[data-theme="dark"] .table thead th {
    background-color: #1f2d22 !important;
    color: #f8fafc !important;
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
    background-color: var(--input-bg);
    color: var(--text-primary);
    border-color: var(--primary-color);
}

[data-theme="dark"] .form-control::placeholder {
    color: #64748b;
}

/* Glass & Card styles */
.cv-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.cv-card:hover {
    border-color: rgba(20, 168, 0, 0.4);
}

/* Sidebar Styles */
.desktop-sidebar {
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    min-height: 100vh;
    position: sticky;
    top: 0;
    transition: all 0.3s ease;
}

.sidebar-nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}

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

/* Upwork Profile Elements */
.profile-avatar-wrap {
    position: relative;
    width: 130px;
    height: 130px;
    display: inline-block;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--bg-card);
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}

.online-dot {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 18px;
    height: 18px;
    background-color: #14a800;
    border: 3px solid var(--bg-card);
    border-radius: 50%;
}

.pulse-badge {
    animation: badge-pulse 2s infinite;
}

@keyframes badge-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.top-rated-pill {
    background-color: var(--upwork-badge-bg);
    color: var(--upwork-badge-pink);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.5px;
    padding: 6px 14px;
    border-radius: 50rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(241, 54, 122, 0.2);
}

.stat-box {
    border-right: 1px solid var(--border-color);
    padding: 0 16px;
}
.stat-box:last-child {
    border-right: none;
}

.stat-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Fiverr Gig Card Styles */
.fiverr-gig-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.fiverr-gig-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--fiverr-green);
}

.fiverr-gig-thumb {
    position: relative;
    width: 100%;
    height: 190px;
    overflow: hidden;
    background: #e9ecef;
}

.fiverr-gig-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.fiverr-gig-card:hover .fiverr-gig-thumb img {
    transform: scale(1.05);
}

.gig-author {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px 8px;
}

.gig-author-img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.gig-body {
    padding: 8px 16px 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.gig-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
}

.gig-title:hover {
    color: var(--primary-color);
}

.gig-rating {
    font-size: 0.85rem;
    color: #ffb33e;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.gig-footer {
    border-top: 1px solid var(--border-color);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.02);
}

.gig-price-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    display: block;
}

.gig-price-value {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
}

/* Upwork Work History Block */
.work-item {
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
}
.work-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Badge tags */
.skill-badge {
    background-color: var(--badge-bg);
    color: var(--badge-color);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 50rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(20, 168, 0, 0.15);
    transition: all 0.2s ease;
}

.skill-badge:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

/* Buttons */
.btn-upwork {
    background-color: var(--upwork-green);
    border-color: var(--upwork-green);
    color: #ffffff !important;
    font-weight: 600;
    border-radius: 50rem;
    padding: 10px 24px;
    transition: all 0.2s ease;
}

.btn-upwork:hover {
    background-color: var(--upwork-green-hover);
    border-color: var(--upwork-green-hover);
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(20, 168, 0, 0.35);
}

.btn-upwork-outline {
    background-color: transparent;
    border: 2px solid var(--upwork-green);
    color: var(--upwork-green) !important;
    font-weight: 600;
    border-radius: 50rem;
    padding: 8px 22px;
    transition: all 0.2s ease;
}

.btn-upwork-outline:hover {
    background-color: var(--upwork-green);
    color: #ffffff !important;
}

/* Floating Quick Message button */
.floating-msg-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    background: linear-gradient(135deg, #0088cc, #00b4d8);
    color: #ffffff;
    border-radius: 50rem;
    padding: 12px 22px;
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.floating-msg-btn:hover {
    transform: translateY(-3px) scale(1.03);
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 136, 204, 0.55);
}

/* Swiper custom styles */
.swiper-button-next, .swiper-button-prev {
    color: var(--primary-color) !important;
    background: var(--bg-card);
    width: 38px !important;
    height: 38px !important;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 16px !important;
    font-weight: bold;
}
