/* Work Log Form Redesign */
.log-form-container {
    max-width: 1000px;
    margin: 0 auto;
}

.form-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
}

.log-date-picker {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--color-white);
    padding: 8px 16px;
    border: 1px solid var(--color-slate-200);
    border-radius: 8px;
    font-weight: 600;
}

.log-date-picker input {
    border: none;
    font-weight: 700;
    color: var(--color-slate-900);
    font-size: 16px;
    outline: none;
    background: transparent;
    cursor: pointer;
}

.log-section-card {
    background: var(--color-white);
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
    border: 1px solid var(--color-slate-100);
}

.log-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-slate-800);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.work-item-card {
    background: var(--color-slate-50);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid var(--color-slate-200);
    position: relative;
}

.work-item-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 32px;
}

@media (max-width: 768px) {
    .work-item-grid {
        grid-template-columns: 1fr;
    }
}

.work-item-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.work-item-remove {
    position: absolute;
    top: 15px;
    right: 15px;
    color: var(--color-slate-400);
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: all 0.2s;
}

.work-item-remove:hover {
    background: #fee2e2;
    color: #ef4444;
}

/* Custom Form Controls for Log */
.log-input,
.log-textarea,
.log-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-slate-200);
    border-radius: 10px;
    font-size: 15px;
    background: var(--color-white);
    transition: all 0.2s;
    font-family: inherit;
}

.log-input:focus,
.log-textarea:focus,
.log-select:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
    outline: none;
}

.hours-input-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hours-input-group input {
    width: 200px;
}

/* OT Checkbox Styling */
.ot-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--color-slate-600);
    padding: 10px 16px;
    border: 1px solid var(--color-slate-200);
    border-radius: 10px;
    background: white;
    cursor: pointer;
    user-select: none;
    font-weight: 500;
}

.ot-checkbox-wrapper input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Floating Summary Box */
.log-summary-box {
    background: #0f172a;
    border-radius: 24px;
    padding: 48px 32px;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    position: sticky;
    top: 24px;
}

.total-hours-display {
    text-align: center;
}

.total-hours-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-slate-400);
    margin-bottom: 12px;
    font-weight: 600;
}

.total-hours-value {
    font-size: 72px;
    font-weight: 800;
    line-height: 1;
}

.total-hours-unit {
    font-size: 28px;
    margin-left: 4px;
    color: #8b5cf6;
}

.btn-submit-log {
    width: 100%;
    background: #6366f1;
    color: white;
    padding: 16px;
    border: none;
    border-radius: 14px;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.5);
    transition: all 0.2s;
}

.btn-submit-log:hover {
    background: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(99, 102, 241, 0.6);
}

.log-footer-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: start;
}

.btn-add-item {
    background: var(--color-white);
    border: 1px solid var(--color-slate-200);
    color: #6366f1;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add-item:hover {
    background: #f5f3ff;
    border-color: #8b5cf6;
}

.log-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-slate-600);
    margin-bottom: 8px;
}

.required-star {
    color: #ef4444;
    margin-left: 4px;
}

@media (max-width: 1024px) {
    .log-footer-grid {
        grid-template-columns: 1fr;
    }

    .log-summary-box {
        position: static;
        margin-top: 24px;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .form-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .log-date-picker {
        width: 100%;
        justify-content: space-between;
    }
}