#view-gig-job {
    height: calc(100vh - 80px);
    overflow: hidden;
}

.gig-container {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100%;
    /* Fill #view-gig-job */
    overflow: hidden;
}

/* Calendar Styles */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.month-year {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.calendar-nav-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--accent-primary);
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.calendar-nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 255, 170, 0.2);
    border-color: var(--accent-primary);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    /* Slightly larger gap */
    text-align: center;
    flex: 1;
    grid-template-rows: auto repeat(6, 1fr);
    padding-bottom: 5px;
}

.day-name {
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calendar-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    font-size: 0.9rem;
    overflow: hidden;
}

.calendar-day:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.calendar-day.empty {
    background: transparent;
    border: none;
    cursor: default;
    box-shadow: none;
}

.calendar-day.today {
    border: 1px solid var(--accent-primary);
    background: rgba(0, 255, 170, 0.05);
    box-shadow: 0 0 15px rgba(0, 255, 170, 0.3);
}

.day-earnings {
    margin-top: 4px;
    font-size: 0.65rem;
    color: #fff;
    background: var(--accent-primary);
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.day-earnings.zero {
    display: none;
}

/* Gig Modal List */
.gig-list {
    margin-top: 20px;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 5px;
    /* For scrollbar space */
}

/* Custom Scrollbar for list */
.gig-list::-webkit-scrollbar {
    width: 4px;
}

.gig-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.gig-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    margin-bottom: 8px;
    transition: background 0.2s;
}

.gig-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.gig-item:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    /* Keep border for consistency */
    margin-bottom: 0;
}

.gig-actions {
    display: flex;
    gap: 8px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.gig-item:hover .gig-actions {
    opacity: 1;
}

.gig-action-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
}

.gig-action-btn.edit {
    color: #4dc4ff;
}

.gig-action-btn.edit:hover {
    background: rgba(77, 196, 255, 0.1);
    text-shadow: 0 0 5px #4dc4ff;
}

.gig-action-btn.delete {
    color: #ff4d4d;
}

.gig-action-btn.delete:hover {
    background: rgba(255, 77, 77, 0.1);
    text-shadow: 0 0 5px #ff4d4d;
}


.total-display {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin: 15px 0;
    text-shadow: 0 0 15px var(--accent-primary);
}

/* Expected Salary Card */
.salary-card {
    background: rgba(20, 20, 25, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 12px 20px;
    margin-bottom: 15px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Active Neon Border Animation */
.salary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-primary), #00d4ff);
    box-shadow: 0 0 15px var(--accent-primary);
}

.salary-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.salary-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.salary-amount {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.salary-period {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.toggle-view-btn {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    min-width: 140px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.toggle-view-btn:hover,
.toggle-view-btn.active {
    background: var(--accent-primary);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 0 15px rgba(0, 255, 170, 0.4);
    border-color: transparent;
}

/* New CSS Classes for Salary Card Refactoring */
.goal-progress-wrapper {
    margin-bottom: 8px;
}

.goal-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.progress-track {
    background: rgba(255, 255, 255, 0.1);
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #00d4ff, #00ff9d);
    transition: width 0.5s ease;
}

.salary-meta-item {
    font-size: 0.8rem;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.salary-meta-item.hours {
    color: var(--accent-primary);
}

.salary-meta-item.growth {
    color: #00d4ff;
    opacity: 0.8;
}

.salary-meta-item.deductions {
    color: #ff6b6b;
    margin-top: 2px;
}

.salary-chart-container {
    flex: 1;
    height: 100%;
    min-width: 150px;
    max-width: 400px;
    margin: 0 15px;
    display: flex;
    align-items: center;
}

.salary-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    height: 100%;
}

.actions-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gig-title {
    text-align: right;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.9;
}

.gig-title i {
    font-size: 1.5rem;
}

.neon-title-text {
    font-size: 0.8rem;
    letter-spacing: 2px;
}

/* --- RESPONSIVE GIG LAYOUT --- */

@media screen and (max-width: 900px) {
    #view-gig-job {
        height: auto;
        overflow: visible;
    }

    .gig-container {
        height: auto;
        overflow: visible;
        padding: 12px;
    }

    .salary-card {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        height: auto;
        padding: 10px 16px;
        margin-bottom: 12px;
    }

    .salary-chart-container {
        margin: 0;
        height: 120px;
        max-width: none;
        order: 2;
    }

    .salary-left {
        order: 1;
    }

    .salary-actions {
        order: 3;
        flex-direction: row;
        align-items: center;
        width: 100%;
        height: auto;
        padding-top: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        justify-content: space-between;
    }

    .actions-top {
        flex-direction: row-reverse;
    }

    .gig-title {
        text-align: left;
    }
}

@media screen and (max-width: 600px) {
    .calendar-grid {
        gap: 4px;
    }

    .calendar-day {
        font-size: 0.75rem;
        padding: 2px;
        min-height: 45px;
    }

    .day-earnings {
        font-size: 0.55rem;
        padding: 1px 4px;
    }

    .salary-amount {
        font-size: 1.4rem;
    }

    .toggle-view-btn {
        padding: 8px 15px;
        min-width: 120px;
        font-size: 0.85rem;
    }
}

/* Rest of the file */
.form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--accent-primary);
}

input:focus+.slider {
    box-shadow: 0 0 1px var(--accent-primary);
}

input:checked+.slider:before {
    transform: translateX(18px);
}

/* Deduction Breakdown Pills */
.deduction-breakdown {
    display: flex;
    gap: 6px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.deduction-pill {
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.deduction-pill.epf {
    border-color: rgba(217, 70, 239, 0.5);
    color: #e879f9;
    background: rgba(217, 70, 239, 0.1);
}

.deduction-pill.socso {
    border-color: rgba(244, 63, 94, 0.5);
    color: #fb7185;
    background: rgba(244, 63, 94, 0.1);
}

.deduction-pill.eis {
    border-color: rgba(6, 182, 212, 0.5);
    color: #22d3ee;
    background: rgba(6, 182, 212, 0.1);
}

/* Fix for Modal Overflow */
.modal {
    max-height: 85vh;
    overflow-y: auto;
}

/* Custom Scrollbar for Modal */
.modal::-webkit-scrollbar {
    width: 4px;
}

.modal::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}